1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/app/frontend/templates/admin/members/managers.html

49 lines
2.6 KiB
HTML
Raw Normal View History

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">
2020-04-28 13:20:12 +02:00
<button type="button" class="btn btn-warning m-t m-b" ui-sref="app.admin.managers_new" ng-show="isAuthorized('admin')" translate>
{{ 'app.admin.members.add_a_new_manager' }}
</button>
2020-04-21 16:47:35 +02:00
<table class="table">
<thead>
<tr>
2020-04-22 10:09:16 +02:00
<th style="width:15%"><a href="" 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
2020-04-22 10:09:16 +02:00
<th style="width:15%"><a href="" 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
2020-04-21 17:24:22 +02:00
<th style="width:15%"><a href="" 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
2020-04-22 10:09:16 +02:00
<th style="width:10%"><a href="" 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">
2020-04-22 10:09:16 +02:00
<td class="text-c">{{ manager.last_name }}</td>
<td class="text-c">{{ manager.first_name }}</td>
2020-04-21 17:24:22 +02:00
<td>{{ manager.email }}</td>
2020-04-22 10:09:16 +02:00
<td>{{ manager.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>