Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

custom_profile_fields: Add form ID to add new custom profile field form.

yogesh sirsatf885535a7ce4
diff --git a/static/js/settings_profile_fields.js b/static/js/settings_profile_fields.js
index eaa5f576fab..1bdcb7f6167 100644
--- a/static/js/settings_profile_fields.js
+++ b/static/js/settings_profile_fields.js
@@ -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,
diff --git a/static/templates/settings/add_new_custom_profile_field_form.hbs b/static/templates/settings/add_new_custom_profile_field_form.hbs
index e88e3d1ece9..918e907a452 100644
--- a/static/templates/settings/add_new_custom_profile_field_form.hbs
+++ b/static/templates/settings/add_new_custom_profile_field_form.hbs
@@ -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>