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>
|
2019-05-16 10:36:20 +02:00
|
|
|
<i class="fa fa-ban deactivated-user-icon" title="{{t 'User is deactivated' }}" {{#if is_active}}style="display: none;"{{/if}}></i>
|
2014-01-17 20:42:28 +01:00
|
|
|
</td>
|
2019-06-20 14:58:28 +02:00
|
|
|
{{#if ../show_email}}
|
2017-04-26 04:49:12 +02:00
|
|
|
<td>
|
2018-08-08 23:21:14 +02:00
|
|
|
{{#if ../can_modify}}
|
|
|
|
<span class="email">{{delivery_email}}</span>
|
|
|
|
{{else}}
|
2017-04-26 04:49:12 +02:00
|
|
|
<span class="email">{{email}}</span>
|
2018-08-08 23:21:14 +02:00
|
|
|
{{/if}}
|
2017-04-26 04:49:12 +02:00
|
|
|
</td>
|
2019-06-20 14:58:28 +02:00
|
|
|
{{/if}}
|
2018-10-30 07:16:45 +01:00
|
|
|
{{#unless is_bot}}
|
2018-10-01 14:05:54 +02:00
|
|
|
<td>
|
|
|
|
<span class="user_role">
|
|
|
|
{{#if is_admin}}
|
|
|
|
{{t "Administrator" }}
|
2018-10-19 12:29:46 +02:00
|
|
|
{{else if is_guest}}
|
|
|
|
{{t "Guest" }}
|
2018-10-01 14:05:54 +02:00
|
|
|
{{else}}
|
|
|
|
{{t "Member" }}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
</td>
|
2018-10-30 07:16:45 +01:00
|
|
|
{{/unless}}
|
2017-04-26 04:49:12 +02:00
|
|
|
{{#if is_bot}}
|
|
|
|
<td>
|
2018-08-08 23:21:14 +02:00
|
|
|
{{#if ../can_modify}}
|
|
|
|
<span class="owner">{{bot_owner_delivery_email}}</span>
|
|
|
|
{{else}}
|
2017-04-26 04:49:12 +02:00
|
|
|
<span class="owner">{{bot_owner}}</span>
|
2018-08-08 23:21:14 +02:00
|
|
|
{{/if}}
|
2017-04-26 04:49:12 +02:00
|
|
|
</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}}
|
2019-03-18 07:26:12 +01:00
|
|
|
<button class="button rounded small deactivate btn-danger" {{#if ../is_current_user}}disabled="disabled"{{/if}}>
|
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>
|
2019-05-08 07:44:37 +02:00
|
|
|
<button class="button rounded small btn-warning open-user-form" {{#unless is_active}}style="display: none;"{{/unless}} title="{{t 'Edit user' }}" data-user-id="{{user_id}}">
|
2018-07-03 01:39:22 +02:00
|
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
2017-04-26 04:49:12 +02:00
|
|
|
</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>
|
|
|
|
{{/with}}
|