mirror of https://github.com/zulip/zulip.git
39 lines
1.9 KiB
Handlebars
39 lines
1.9 KiB
Handlebars
<div id="user-info-form-modal" class="modal modal-bg hide fade" tabindex="-1" role="dialog" aria-labelledby="user-info-form-modal-label" aria-hidden="true">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="{{t 'Close' }}"><span aria-hidden="true">×</span></button>
|
|
<h3 id="user-info-form-modal-label">{{t "Change user info and roles" }}</h3>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div id="user-name-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">
|
|
<label for="full_name">{{t "Full name" }}</label>
|
|
<input type="text" autocomplete="off" name="full_name" value="{{ full_name }}" />
|
|
</div>
|
|
{{#if is_bot}}
|
|
<div class="input-group edit_bot_owner_container">
|
|
<label for="bot_owner_select">{{t "Owner" }}</label>
|
|
</div>
|
|
{{else if is_admin}}
|
|
<div class="user-admin-settings">
|
|
<button class="button rounded small remove-admin btn-danger">
|
|
{{t "Remove admin" }}
|
|
</button>
|
|
</div>
|
|
{{else}}
|
|
<div class="user-admin-settings">
|
|
<button class="button rounded small make-admin btn-warning">
|
|
{{t "Make admin" }}
|
|
</button>
|
|
</div>
|
|
{{/if}}
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="submit" class="button rounded sea-green submit_name_changes">{{t 'Save changes' }}</button>
|
|
<button type="button" class="button rounded reset_edit_user" data-dismiss="modal">{{t "Cancel" }}</button>
|
|
</div>
|
|
</div>
|