mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
custom_profile_fields: Add form ID to add new custom profile field form.
This makes it easy to support submitting this form when pressing enter by passing the `form_id` parameter to `dialog_widget.launch()`.
This commit is contained in:
committed by
Tim Abbott
parent
526b55c6fc
commit
f885535a7c
@@ -233,6 +233,7 @@ function open_custom_profile_field_form_modal() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dialog_widget.launch({
|
dialog_widget.launch({
|
||||||
|
form_id: "add-new-custom-profile-field-form",
|
||||||
help_link: "/help/add-custom-profile-fields",
|
help_link: "/help/add-custom-profile-fields",
|
||||||
html_heading: $t_html({defaultMessage: "Add a new custom profile field"}),
|
html_heading: $t_html({defaultMessage: "Add a new custom profile field"}),
|
||||||
html_body,
|
html_body,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<form class="form-horizontal admin-profile-field-form new-style">
|
<form class="form-horizontal admin-profile-field-form new-style" id="add-new-custom-profile-field-form">
|
||||||
<div class="new-profile-field-form wrapper">
|
<div class="new-profile-field-form wrapper">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<label for="profile_field_type" >{{t "Type" }}</label>
|
<label for="profile_field_type" >{{t "Type" }}</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user