2018-07-14 12:43:04 +02:00
|
|
|
<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>
|
2019-01-06 19:22:32 +01:00
|
|
|
{{#if is_bot}}
|
|
|
|
<h3 id="user-info-form-modal-label">{{t "Change bot info and owner" }}</h3>
|
|
|
|
{{else}}
|
2018-07-14 12:43:04 +02:00
|
|
|
<h3 id="user-info-form-modal-label">{{t "Change user info and roles" }}</h3>
|
2019-01-06 19:22:32 +01:00
|
|
|
{{/if}}
|
2018-07-14 12:43:04 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2018-08-01 16:27:13 +02:00
|
|
|
<div id="user-name-form" data-user-id="{{user_id}}">
|
2018-07-14 12:43:04 +02:00
|
|
|
<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>
|
2018-08-01 16:27:13 +02:00
|
|
|
{{else}}
|
2018-08-02 17:34:20 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<label class="input-label" for="user-role-select">{{t 'User role' }}</label>
|
|
|
|
<select name="user-role-select" id="user-role-select">
|
2018-10-19 12:29:46 +02:00
|
|
|
<option value="guest" {{#if is_guest}}selected{{/if}}>{{t 'Guest'}}</option>
|
2018-10-30 07:02:38 +01:00
|
|
|
<option value="regular" {{#if is_member}}selected{{/if}}>{{t 'Member' }}</option>
|
|
|
|
<option value="admin" {{#if is_admin}}selected{{/if}}>{{t 'Administrator' }}</option>
|
2018-08-02 17:34:20 +02:00
|
|
|
</select>
|
2018-08-01 16:27:13 +02:00
|
|
|
</div>
|
2018-09-05 21:25:05 +02:00
|
|
|
<div class="custom-profile-field-form"></div>
|
2018-07-14 12:43:04 +02:00
|
|
|
{{/if}}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2018-08-02 17:33:49 +02:00
|
|
|
<button type="submit" class="button rounded sea-green submit_user_info_change">{{t 'Save changes' }}</button>
|
2018-07-14 12:43:04 +02:00
|
|
|
<button type="button" class="button rounded reset_edit_user" data-dismiss="modal">{{t "Cancel" }}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|