zulip/web/templates/settings/admin_human_form.hbs

35 lines
1.8 KiB
Handlebars
Raw Normal View History

<div id="edit-user-form" data-user-id="{{user_id}}">
<form class="name-setting">
<div class="alert" id="edit-user-form-error"></div>
<input type="hidden" name="is_full_name" value="true" />
<div class="input-group name_change_container">
<label for="edit_user_full_name">{{t "Full name" }}</label>
<input type="text" autocomplete="off" name="full_name" id="edit_user_full_name" class="modal_text_input" value="{{ full_name }}" />
</div>
{{#if email}}
<div class="input-group email_change_container">
<label for="email">{{t "Email" }}</label>
<input type="text" autocomplete="off" name="email" class="modal_text_input" value="{{ email }}" readonly/>
</div>
{{/if}}
<div class="input-group user_id_container">
<label for="user_id">{{t "User ID" }}</label>
<input type="text" autocomplete="off" name="user_id" class="modal_text_input" value="{{ user_id }}" readonly/>
</div>
<div class="input-group">
<label class="input-label" for="user-role-select">{{t 'User role' }}
{{> ../help_link_widget link="/help/roles-and-permissions" }}
</label>
<select name="user-role-select" class="bootstrap-focus-style modal_select" id="user-role-select" data-setting-widget-type="number" {{#if disable_role_dropdown}}disabled{{/if}}>
{{> dropdown_options_widget option_values=user_role_values}}
</select>
</div>
<div class="custom-profile-field-form"></div>
</form>
<div class="input-group new-style">
<button class="button rounded btn-danger deactivate_user_button">
{{t 'Deactivate user' }}
</button>
</div>
</div>