settings_users: Rename user-name-form to edit-user-form.

This commit renames user-name-form to edit-user-form as
the modal for which this id is used, is used to edit all
the user properties, not only name.
This commit is contained in:
sahil839 2021-06-28 17:18:38 +05:30 committed by Tim Abbott
parent f0b167e5a8
commit 1cb72c77fe
3 changed files with 5 additions and 5 deletions

View File

@ -392,7 +392,7 @@ function get_human_profile_data(fields_user_pills) {
the settings_account.js logic.
*/
const new_profile_data = [];
$("#user-name-form .custom_user_field_value").each(function () {
$("#edit-user-form .custom_user_field_value").each(function () {
// Remove duplicate datepicker input element generated flatpicker library
if (!$(this).hasClass("form-control")) {
new_profile_data.push({
@ -546,7 +546,7 @@ function handle_human_form(tbody, status_field) {
.hide();
}
const element = "#user-name-form .custom-profile-field-form";
const element = "#edit-user-form .custom-profile-field-form";
$(element).html("");
settings_account.append_custom_profile_fields(element, user_id);
settings_account.initialize_custom_date_type_fields(element);
@ -560,7 +560,7 @@ function handle_human_form(tbody, status_field) {
function submit_user_details() {
const role = Number.parseInt($("#user-role-select").val().trim(), 10);
const full_name = $("#user-name-form").find("input[name='full_name']");
const full_name = $("#edit-user-form").find("input[name='full_name']");
const profile_data = get_human_profile_data(fields_user_pills);
const url = "/json/users/" + encodeURIComponent(user_id);

View File

@ -1520,7 +1520,7 @@ input[type="checkbox"] {
}
#account-settings,
#user-name-form {
#edit-user-form {
.user-role button {
cursor: default;
}

View File

@ -1,4 +1,4 @@
<div id="user-name-form" data-user-id="{{user_id}}">
<div id="edit-user-form" data-user-id="{{user_id}}">
<form class="form-horizontal name-setting">
<input type="hidden" name="is_full_name" value="true" />
<div class="input-group name_change_container">