2020-04-29 16:30:39 +02:00
|
|
|
<p class="alert alert-info m-t-lg" translate>
|
|
|
|
{{ 'app.admin.members.managers_info' }}
|
|
|
|
</p>
|
|
|
|
|
2020-04-21 16:47:35 +02:00
|
|
|
<div class="col-md-5 m-t-lg">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-filter"></i></span>
|
2020-04-21 17:24:22 +02:00
|
|
|
<input type="text" ng-model="searchFilter" class="form-control" placeholder="{{ 'app.admin.members.search_for_a_manager' | translate }}">
|
2020-04-21 16:47:35 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
2023-11-27 16:21:07 +01:00
|
|
|
<button type="button" class="fab-button is-secondary m-t m-b" ui-sref="app.admin.managers_new" ng-show="isAuthorized('admin')" translate>
|
2020-04-28 13:20:12 +02:00
|
|
|
{{ 'app.admin.members.add_a_new_manager' }}
|
|
|
|
</button>
|
2020-04-21 16:47:35 +02:00
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2022-01-11 11:03:27 +01:00
|
|
|
<th style="width:15%"><a ng-click="setOrderManager('last_name')">{{ 'app.admin.members.surname' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-alpha-asc': orderAdmin =='last_name', 'fa fa-sort-alpha-desc': orderAdmin =='-last_name', 'fa fa-arrows-v': orderAdmin }"></i></a></th>
|
2020-04-21 16:47:35 +02:00
|
|
|
|
2022-01-11 11:03:27 +01:00
|
|
|
<th style="width:15%"><a ng-click="setOrderManager('first_name')">{{ 'app.admin.members.first_name' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-alpha-asc': orderAdmin =='first_name', 'fa fa-sort-alpha-desc': orderAdmin =='-first_name', 'fa fa-arrows-v': orderAdmin }"></i></a></th>
|
2020-04-21 16:47:35 +02:00
|
|
|
|
2022-01-11 11:03:27 +01:00
|
|
|
<th style="width:15%"><a ng-click="setOrderManager('email')">{{ 'app.admin.members.email' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-alpha-asc': orderAdmin =='email', 'fa fa-sort-alpha-desc': orderAdmin =='-email', 'fa fa-arrows-v': orderAdmin }"></i></a></th>
|
2020-04-21 16:47:35 +02:00
|
|
|
|
2022-01-11 11:03:27 +01:00
|
|
|
<th style="width:10%"><a ng-click="setOrderManager('phone')">{{ 'app.admin.members.phone' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-numeric-asc': orderAdmin =='profile_attributes.phone', 'fa fa-sort-numeric-desc': orderAdmin =='-profile_attributes.phone', 'fa fa-arrows-v': orderAdmin }"></i></a></th>
|
2020-04-21 16:47:35 +02:00
|
|
|
<th style="width:10%"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2020-04-21 17:24:22 +02:00
|
|
|
<tr ng-repeat="manager in managers | filter:searchFilter | orderBy: orderManager">
|
2022-11-14 17:54:14 +01:00
|
|
|
<td class="text-c">{{ manager.profile_attributes.last_name }}</td>
|
|
|
|
<td class="text-c">{{ manager.profile_attributes.first_name }}</td>
|
2020-04-21 17:24:22 +02:00
|
|
|
<td>{{ manager.email }}</td>
|
2022-11-14 17:54:14 +01:00
|
|
|
<td>{{ manager.profile_attributes.phone }}</td>
|
2020-04-21 16:47:35 +02:00
|
|
|
<td>
|
2020-04-22 10:09:16 +02:00
|
|
|
<button class="btn btn-default edit-member" ui-sref="app.admin.members_edit({id: manager.id})">
|
|
|
|
<i class="fa fa-edit"></i>
|
|
|
|
</button>
|
2020-04-28 13:20:12 +02:00
|
|
|
<button class="btn btn-danger" ng-if="isAuthorized('admin')" ng-click="destroyManager(managers, manager)">
|
2020-04-21 16:47:35 +02:00
|
|
|
<i class="fa fa-trash-o"></i>
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|