2017-10-05 17:12:22 +02:00
|
|
|
<div class="m-t-lg m-b">
|
|
|
|
<button type="button" class="btn btn-warning" ng-click="addGroup()">
|
|
|
|
<i class="fa fa-plus m-r"></i>
|
2019-12-17 12:40:36 +01:00
|
|
|
<span translate>{{ 'app.admin.members.group_form.add_a_group' }}</span>
|
2017-10-05 17:12:22 +02:00
|
|
|
</button>
|
|
|
|
<div class="form-group pull-right">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-filter"></i></span>
|
|
|
|
<select ng-model="groupFiltering" class="form-control">
|
2019-12-17 12:40:36 +01:00
|
|
|
<option ng-repeat="status in filterDisabled" value="{{status}}" translate>{{ 'app.admin.members.group_form.status_'+status }}</option>
|
2017-10-05 17:12:22 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-03-23 18:39:41 +01:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-12-17 12:40:36 +01:00
|
|
|
<th style="width: 75%;" translate>{{ 'app.admin.members.group_form.group_name' }}</th>
|
2017-10-05 17:12:22 +02:00
|
|
|
<th style="width: 25%"></th>
|
2016-03-23 18:39:41 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2017-10-05 17:12:22 +02:00
|
|
|
<tr ng-repeat="group in groups | filterDisabled:groupFiltering" ng-class="{'disabled-line' : group.disabled && groupFiltering === 'all'}">
|
2016-03-23 18:39:41 +01:00
|
|
|
<td>
|
|
|
|
<span editable-text="group.name" e-cols="200" e-name="name" e-form="rowform" e-required>
|
|
|
|
{{group.name}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<!-- form -->
|
|
|
|
<form editable-form name="rowform" onbeforesave="saveGroup($data, group.id)" ng-show="rowform.$visible" class="form-buttons form-inline" shown="inserted == group">
|
|
|
|
<button type="submit" ng-disabled="rowform.$waiting" class="btn btn-warning">
|
|
|
|
<i class="fa fa-check"></i>
|
|
|
|
</button>
|
|
|
|
<button type="button" ng-disabled="rowform.$waiting" ng-click="cancelGroup(rowform, $index)" class="btn btn-default">
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
</button>
|
|
|
|
</form>
|
2017-10-10 15:44:17 +02:00
|
|
|
<div class="buttons" ng-hide="rowform.$visible || group.slug === 'admins'">
|
2016-03-23 18:39:41 +01:00
|
|
|
<button class="btn btn-default" ng-click="rowform.$show()">
|
2019-12-17 12:40:36 +01:00
|
|
|
<i class="fa fa-edit"></i> <span class="hidden-xs hidden-sm" translate>{{ 'app.shared.buttons.edit' }}</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
</button>
|
2022-08-24 12:18:42 +02:00
|
|
|
<button class="btn btn-default" ng-click="toggleDisableGroup(group.id)">
|
2019-12-17 12:40:36 +01:00
|
|
|
<span ng-hide="group.disabled"><i class="fa fa-eye-slash"></i> <span translate>{{ 'app.admin.members.group_form.disable' }}</span></span>
|
|
|
|
<span ng-show="group.disabled"><i class="fa fa-eye"></i> <span translate>{{ 'app.admin.members.group_form.enable' }}</span></span>
|
2017-10-05 16:48:18 +02:00
|
|
|
</button>
|
2022-08-24 12:18:42 +02:00
|
|
|
<button class="btn btn-danger" ng-click="removeGroup(group.id)">
|
2016-03-23 18:39:41 +01:00
|
|
|
<i class="fa fa-trash-o"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|