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

56 lines
2.5 KiB
Plaintext
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>{{ 'group_form.add_a_group' }}</span>
</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>{{ 'group_form.status_'+status }}</option>
</select>
</div>
</div>
</div>
2016-03-23 18:39:41 +01:00
<table class="table">
<thead>
<tr>
2017-10-05 17:12:22 +02:00
<th style="width: 75%;" translate>{{ 'group_form.group_name' }}</th>
<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()">
<i class="fa fa-edit"></i> <span class="hidden-xs hidden-sm" translate>{{ 'edit' }}</span>
</button>
2017-10-05 16:48:18 +02:00
<button class="btn btn-default" ng-click="toggleDisableGroup($index)">
2017-10-05 17:12:22 +02:00
<span ng-hide="group.disabled"><i class="fa fa-eye-slash"></i> <span translate>{{ 'group_form.disable' }}</span></span>
<span ng-show="group.disabled"><i class="fa fa-eye"></i> <span translate>{{ 'group_form.enable' }}</span></span>
2017-10-05 16:48:18 +02:00
</button>
2016-03-23 18:39:41 +01:00
<button class="btn btn-danger" ng-click="removeGroup($index)">
<i class="fa fa-trash-o"></i>
</button>
</div>
</td>
</tr>
</tbody>
</table>