2013-11-15 20:34:23 +01:00
|
|
|
{{#with user}}
|
2017-02-15 00:45:38 +01:00
|
|
|
<tr class="user_row" data-user-id="{{user_id}}" data-email="{{email}}">
|
2013-08-12 23:31:23 +02:00
|
|
|
<td>
|
2014-01-17 20:42:28 +01:00
|
|
|
<span class="user_name">{{full_name}}</span>
|
2013-08-12 23:31:23 +02:00
|
|
|
</td>
|
|
|
|
<td>
|
2014-01-17 20:42:28 +01:00
|
|
|
<span class="email">{{email}}</span>
|
2013-08-12 23:31:23 +02:00
|
|
|
</td>
|
2013-11-16 16:37:07 +01:00
|
|
|
{{#if is_bot}}
|
2014-01-17 20:42:28 +01:00
|
|
|
<td>
|
2015-10-28 17:40:30 +01:00
|
|
|
<span class="owner">{{bot_owner}}</span>
|
2014-01-17 20:42:28 +01:00
|
|
|
</td>
|
2013-11-16 16:37:07 +01:00
|
|
|
{{/if}}
|
2013-08-12 23:31:23 +02:00
|
|
|
<td>
|
2014-01-17 20:42:28 +01:00
|
|
|
{{#if is_active}}
|
2016-09-14 02:20:13 +02:00
|
|
|
<button class="button deactivate btn-danger">
|
2016-05-12 13:53:41 +02:00
|
|
|
{{t "Deactivate" }}
|
2013-08-12 23:31:23 +02:00
|
|
|
</button>
|
2014-01-17 20:42:28 +01:00
|
|
|
{{else}}
|
2016-09-14 02:20:13 +02:00
|
|
|
<button class="button reactivate btn-warning">
|
2016-05-12 13:53:41 +02:00
|
|
|
{{t "Reactivate" }}
|
2013-11-16 17:07:55 +01:00
|
|
|
</button>
|
2014-01-17 20:42:28 +01:00
|
|
|
{{/if}}
|
2014-01-17 20:53:14 +01:00
|
|
|
<span class="user-admin-settings">
|
|
|
|
{{#if is_active_human}}
|
|
|
|
{{#if is_admin}}
|
2016-09-14 02:20:13 +02:00
|
|
|
<button class="button remove-admin btn-danger">
|
2016-05-12 13:53:41 +02:00
|
|
|
{{t "Remove admin" }}
|
2014-01-17 20:53:14 +01:00
|
|
|
</button>
|
|
|
|
{{else}}
|
2016-09-14 02:20:13 +02:00
|
|
|
<button class="button make-admin btn-warning">
|
2016-05-12 13:53:41 +02:00
|
|
|
{{t "Make admin" }}
|
2014-01-17 20:53:14 +01:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
2014-01-17 20:42:28 +01:00
|
|
|
{{/if}}
|
2014-01-17 20:53:14 +01:00
|
|
|
</span>
|
2016-09-27 14:25:52 +02:00
|
|
|
{{#if is_active}}
|
2017-02-15 00:45:38 +01:00
|
|
|
<button class="button btn-primary open-user-form" title="{{t 'Edit User' }}" data-user-id="{{user_id}}">
|
2016-09-27 14:25:52 +02:00
|
|
|
<i class="icon-vector-pencil"></i>
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
2014-01-17 20:42:28 +01:00
|
|
|
<div class='admin-user-status'>
|
|
|
|
</div>
|
2013-08-12 23:31:23 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2016-09-27 14:25:52 +02:00
|
|
|
{{#if is_active}}
|
2017-02-15 00:45:38 +01:00
|
|
|
<tr class="user-name-form display-none" data-user-id="{{user_id}}">
|
2016-09-27 14:25:52 +02:00
|
|
|
<td colspan="{{#if is_bot}}4{{else}}3{{/if}}">
|
|
|
|
<form class="form-horizontal name-setting">
|
|
|
|
<input type="hidden" name="is_full_name" value="true" />
|
2016-12-29 22:06:10 +01:00
|
|
|
<div class="input-group name_change_container">
|
2016-09-27 14:25:52 +02:00
|
|
|
<label for="full_name">{{t "Full name" }}</label>
|
2016-12-29 23:20:25 +01:00
|
|
|
<input type="text" name="full_name" value="{{ full_name }}" />
|
2016-09-27 14:25:52 +02:00
|
|
|
</div>
|
2017-02-25 08:49:12 +01:00
|
|
|
{{#if is_bot}}
|
|
|
|
<div class="input-group edit_bot_owner_container">
|
|
|
|
<label for="bot_owner_select">{{t "Owner" }}</label>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2016-09-27 14:25:52 +02:00
|
|
|
<div class="input-group">
|
2017-01-15 20:27:13 +01:00
|
|
|
<input type="button" class="btn btn-primary submit_name_changes" value="{{t 'Save changes' }}" />
|
2016-12-30 18:51:52 +01:00
|
|
|
<button type="button" class="btn btn-default reset_edit_user">{{t 'Cancel' }}</button>
|
2016-09-27 14:25:52 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/if}}
|
2013-08-12 23:31:23 +02:00
|
|
|
{{/with}}
|