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

56 lines
2.6 KiB
HTML
Raw Normal View History

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>
<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">
<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>
<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>
<div class="buttons" ng-hide="rowform.$visible">
2016-03-23 18:39:41 +01:00
<button class="btn btn-default" ng-click="rowform.$show()">
<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>
<button class="btn btn-default" ng-click="toggleDisableGroup(group.id)">
<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>
<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>