2013-11-15 20:34:23 +01:00
|
|
|
{{#with user}}
|
2017-03-16 12:31:03 +01:00
|
|
|
<tr class="user_row{{#unless is_active}} deactivated_user{{/unless}}" data-user-id="{{user_id}}" data-email="{{email}}">
|
2014-01-17 20:42:28 +01:00
|
|
|
<td>
|
2017-04-26 04:49:12 +02:00
|
|
|
<span class="user_name">{{full_name}}</span>
|
2014-01-17 20:42:28 +01:00
|
|
|
</td>
|
2017-04-26 04:49:12 +02:00
|
|
|
<td>
|
|
|
|
<span class="email">{{email}}</span>
|
|
|
|
</td>
|
|
|
|
{{#if is_bot}}
|
|
|
|
<td>
|
|
|
|
<span class="owner">{{bot_owner}}</span>
|
|
|
|
</td>
|
2017-06-10 15:29:01 +02:00
|
|
|
<td>
|
|
|
|
<span class="bot type">{{bot_type}}</span>
|
|
|
|
</td>
|
2017-05-05 23:10:58 +02:00
|
|
|
{{else if is_active}}
|
2017-03-26 15:39:12 +02:00
|
|
|
<td class="last_active">
|
|
|
|
</td>
|
2017-04-26 04:49:12 +02:00
|
|
|
{{/if}}
|
|
|
|
{{#if ../can_modify}}
|
2017-04-10 23:25:11 +02:00
|
|
|
<td>
|
2017-04-26 04:49:12 +02:00
|
|
|
<span class="user-status-settings">
|
|
|
|
{{#if is_active}}
|
2017-06-06 01:57:22 +02:00
|
|
|
<button class="button rounded small deactivate btn-danger">
|
2017-04-26 04:49:12 +02:00
|
|
|
{{t "Deactivate" }}
|
2017-04-10 23:25:11 +02:00
|
|
|
</button>
|
2017-04-26 04:49:12 +02:00
|
|
|
{{else}}
|
2017-06-06 01:57:22 +02:00
|
|
|
<button class="button rounded small reactivate btn-warning">
|
2017-04-26 04:49:12 +02:00
|
|
|
{{t "Reactivate" }}
|
2017-04-10 23:25:11 +02:00
|
|
|
</button>
|
2017-04-26 04:49:12 +02:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
<span class="user-admin-settings">
|
|
|
|
{{#if is_active_human}}
|
|
|
|
{{#if is_admin}}
|
2017-06-06 01:57:22 +02:00
|
|
|
<button class="button rounded small remove-admin btn-danger">
|
2017-04-26 04:49:12 +02:00
|
|
|
{{t "Remove admin" }}
|
|
|
|
</button>
|
|
|
|
{{else}}
|
2017-06-06 01:57:22 +02:00
|
|
|
<button class="button rounded small make-admin btn-warning">
|
2017-04-26 04:49:12 +02:00
|
|
|
{{t "Make admin" }}
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
2017-06-06 01:57:22 +02:00
|
|
|
<button class="button rounded small btn-warning open-user-form{{#unless is_active}} display-none{{/unless}}" title="{{t 'Edit user' }}" data-user-id="{{user_id}}">
|
2017-04-26 04:49:12 +02:00
|
|
|
<i class="icon-vector-pencil"></i>
|
|
|
|
</button>
|
2017-04-10 23:25:11 +02:00
|
|
|
</td>
|
2017-04-26 04:49:12 +02:00
|
|
|
{{/if}}
|
2013-08-12 23:31:23 +02:00
|
|
|
</tr>
|
2017-02-15 00:45:38 +01:00
|
|
|
<tr class="user-name-form display-none" data-user-id="{{user_id}}">
|
2017-04-26 04:49:12 +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" />
|
|
|
|
<div class="input-group name_change_container">
|
|
|
|
<label for="full_name">{{t "Full name" }}</label>
|
|
|
|
<input type="text" 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>
|
|
|
|
{{/if}}
|
|
|
|
<div class="input-group">
|
2018-02-04 07:19:19 +01:00
|
|
|
<button type="submit" class="button rounded sea-green submit_name_changes">
|
2017-04-26 04:49:12 +02:00
|
|
|
{{t 'Save changes' }}
|
|
|
|
</button>
|
2018-03-02 14:53:53 +01:00
|
|
|
<button type="button" class="button rounded reset_edit_user">{{t 'Cancel' }}</button>
|
2017-04-26 04:49:12 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</td>
|
2016-09-27 14:25:52 +02:00
|
|
|
</tr>
|
2013-08-12 23:31:23 +02:00
|
|
|
{{/with}}
|