admin/ui: Split settings page into sync and settings pages

This commit is contained in:
nemunaire 2022-05-19 21:15:25 +02:00
commit 9fe66c563b
6 changed files with 210 additions and 163 deletions

View file

@ -1,7 +1,13 @@
<h2>Exercices
<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>
<small style="height: 0px;">
<div class="btn-group btn-group-toggle float-right mr-2">
<div class="d-flex justify-content-between">
<h2>Exercices</h2>
<div class="align-self-center">
<a
href="files"
class="btn btn-sm btn-info"
>
<span class="glyphicon glyphicon-file" aria-hidden="true"></span> Voir les fichiers
</a>
<div class="btn-group btn-group-toggle ml-2 mr-1">
<label class="btn btn-sm btn-secondary" ng-class="{active: syncFiles, 'btn-warning': syncFiles}">
<input type="checkbox" ng-model="syncFiles"> Fichiers
</label>
@ -12,8 +18,16 @@
<input type="checkbox" ng-model="syncFlags"> Flags
</label>
</div>
</small>
</h2>
<button
type="button"
ng-click="syncFull()"
ng-class="{'disabled': inSync}"
class="btn btn-sm btn-secondary"
>
<span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Synchroniser
</button>
</div>
</div>
<div class="progress" ng-if="inSync">
<div class="progress-bar" style="width: {{ done * 100 / total }}%;"></div>