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:
yogesh sirsat
2022-07-20 20:51:40 +05:30
committed by Tim Abbott
parent 526b55c6fc
commit f885535a7c
2 changed files with 2 additions and 1 deletions

View File

@@ -233,6 +233,7 @@ function open_custom_profile_field_form_modal() {
}
dialog_widget.launch({
form_id: "add-new-custom-profile-field-form",
help_link: "/help/add-custom-profile-fields",
html_heading: $t_html({defaultMessage: "Add a new custom profile field"}),
html_body,

View File

@@ -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="input-group">
<label for="profile_field_type" >{{t "Type" }}</label>