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

41 lines
1.5 KiB
HTML
Raw Normal View History

2017-12-17 14:39:20 +00:00
<h2>Exercices
2018-11-18 20:34:08 +00:00
<button type="button" ng-click="syncFull()" ng-class="{'disabled': inSync}" class="float-right btn btn-sm btn-secondary"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Synchroniser</button>
2017-12-17 14:39:20 +00:00
<small style="height: 0px;">
2018-02-04 21:15:40 +00:00
<div class="btn-group btn-group-toggle float-right mr-2">
<label class="btn btn-sm btn-secondary" ng-class="{active: syncFiles, 'btn-warning': syncFiles}">
<input type="checkbox" ng-model="syncFiles"> Fichiers
</label>
<label class="btn btn-sm btn-secondary" ng-class="{active: syncHints, 'btn-warning': syncHints}" ng-show="whoami">
<input type="checkbox" ng-model="syncHints"> Indices
</label>
2018-09-24 08:00:17 +00:00
<label class="btn btn-sm btn-secondary" ng-class="{active: syncFlags, 'btn-warning': syncFlags}">
<input type="checkbox" ng-model="syncFlags"> Flags
2018-02-04 21:15:40 +00:00
</label>
</div>
2017-12-17 14:39:20 +00:00
</small>
</h2>
<div class="progress" ng-if="inSync">
<div class="progress-bar" style="width: {{ done * 100 / total }}%;"></div>
</div>
2016-12-26 00:23:31 +00:00
<div>
2018-01-07 23:41:23 +00:00
<p><input type="search" class="form-control" placeholder="Search" ng-model="query" 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-12-26 00:23:31 +00:00
<tr>
<th ng-repeat="field in fields">
{{ field }}
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="exercice in exercices | filter: query" ng-click="show(exercice.id)">
<td ng-repeat="field in fields">
{{ exercice[field] }}
</td>
</tr>
</tbody>
</table>
</div>