2017-12-17 14:39:20 +00:00
|
|
|
<h2>Exercices
|
2017-12-17 15:07:04 +00:00
|
|
|
<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;">
|
2017-12-17 15:07:04 +00:00
|
|
|
<div class="checkbox float-right"><label><input type="checkbox" ng-model="syncFiles"> Fichiers</label></div>
|
|
|
|
<div class="checkbox float-right"><label><input type="checkbox" ng-model="syncHints"> Indices</label></div>
|
|
|
|
<div class="checkbox float-right"><label><input type="checkbox" ng-model="syncKeys"> Flags</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>
|
|
|
|
<p><input type="search" class="form-control" placeholder="Search" ng-model="query"></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>
|