server/admin/static/views/team-list.html

33 lines
1.8 KiB
HTML
Raw Normal View History

<h2>
&Eacute;quipes
2018-11-18 20:34:08 +00:00
<button type="button" ng-click="show('new')" class="float-right btn btn-sm btn-primary"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Ajouter une équipe</button>
<button type="button" ng-click="show('print')" class="float-right btn btn-sm btn-secondary mr-2"><span class="glyphicon glyphicon-print" aria-hidden="true"></span> Imprimer les équipes</button>
<button type="button" ng-click="show('export')" class="float-right btn btn-sm btn-secondary mr-2"><span class="glyphicon glyphicon-export" aria-hidden="true"></span> Statistiques générales</button>
<button type="button" ng-click="desactiveTeams()" class="float-right btn btn-sm btn-danger mr-2" title="Cliquer pour marquer les équipes sans certificat comme inactives (et ainsi éviter que ses fichiers ne soient générés)"><span class="glyphicon glyphicon-leaf" aria-hidden="true"></span> Désactiver les équipes inactives</button>
2021-09-09 09:20:45 +00:00
<button type="button" ng-click="genDexCfg()" class="float-right btn btn-sm btn-success mr-2"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> DexIdP</button>
</h2>
2016-12-26 00:20:06 +00:00
<p><input type="search" class="form-control" placeholder="Search" ng-model="query" ng-keypress="validateSearch($event)" autofocus></p>
2017-12-17 15:07:04 +00:00
<table class="table table-hover table-bordered table-striped table-sm">
<thead class="thead-dark">
2016-01-13 00:22:54 +00:00
<tr>
<th ng-repeat="field in fields">
{{ field }}
</th>
<th>
color
</th>
2016-01-13 00:22:54 +00:00
</tr>
</thead>
<tbody>
<tr ng-repeat="team in teams | filter: query" ng-click="show(team.id)" ng-class="{'bg-warning': !team.active}">
2016-01-13 00:22:54 +00:00
<td ng-repeat="field in fields">
{{ team[field] }}
</td>
<td style="background-color: {{ team['color'] | toColor }}" class="text-center">
{{ team['color'] | toColor }}
</td>
2016-01-13 00:22:54 +00:00
</tr>
</tbody>
</table>