admin: Improve public interface
This commit is contained in:
parent
d25462177e
commit
99024ee5ce
@ -1,7 +1,7 @@
|
||||
<form ng-submit="saveScenes()" class="form-horizontal">
|
||||
<h2>
|
||||
Interface publique
|
||||
<select class="custom-select" id="screenid" ng-model="screenid" ng-options="k as 'Écran ' + v for (k, v) in screens" ng-change="chScreen()"></select>
|
||||
<select class="custom-select" style="width: auto" id="screenid" ng-model="screenid" ng-options="k as 'Écran ' + v for (k, v) in screens" ng-change="chScreen()"></select>
|
||||
<div class="float-right dropdown">
|
||||
<button type="button" class="btn btn-secondary dropdown-toggle mr-sm-2" type="button" data-toggle="dropdown">
|
||||
Charger scène
|
||||
@ -29,7 +29,7 @@
|
||||
<strong ng-if="someUpdt">Aucun contenu à afficher.</strong>
|
||||
</div>
|
||||
|
||||
<div class="card" ng-repeat="scene in scenes">
|
||||
<div class="card mb-2" ng-repeat="scene in scenes" ng-class="{'bg-secondary': !scene.params.hide, 'bg-light': scene.params.hide}">
|
||||
<div class="card-body">
|
||||
|
||||
<div class="form-group row">
|
||||
@ -41,8 +41,7 @@
|
||||
<div class="form-check mb-2 mr-sm-2 mb-sm-0">
|
||||
<label class="custom-control custom-checkbox">
|
||||
<input class="custom-control-input" type="checkbox" ng-model="scene.params.hide">
|
||||
<span class="custom-control-indicator"></span>
|
||||
<span class="custom-control-description">Masquer</span>
|
||||
<span class="custom-control-label">Masquer</span>
|
||||
</label>
|
||||
</div>
|
||||
<button type="button" ng-click="upScene(scene)" class="btn btn-sm btn-light mb-2 mr-sm-2 mb-sm-0"><span class="glyphicon glyphicon-chevron-up" aria-hidden="true"></span></button>
|
||||
@ -91,7 +90,7 @@
|
||||
<div class="form-group row" ng-if="scene.type == 'exercice'">
|
||||
<label for="eex" class="col-sm-2 col-form-label col-form-label-sm">Exercice</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select custom-select-sm" id="eex" ng-model="scene.params.exercice" ng-options="ex.id as ex.title for ex in exercices">
|
||||
<select class="custom-select custom-select-sm" id="eex" ng-model="scene.params.exercice" ng-options="ex.id as ex.title group by ex.path.split('/')[0] for ex in exercices">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -151,7 +150,7 @@
|
||||
<div class="form-group row" ng-if="scene.type == 'table' && scene.params.kind == 'teams'">
|
||||
<label for="tteams" class="col-sm-2 col-form-label col-form-label-sm">Équipes à afficher</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select custom-select-sm" id="tteams" multiple="1" ng-model="scene.params.teams" ng-options="t.id as (t.rank + 'e - ' + t.name) for t in teams">
|
||||
<select class="custom-select custom-select-sm" id="tteams" multiple="1" ng-model="scene.params.teams" ng-options="tid as (t.rank + 'e - ' + t.name) for (tid,t) in teams">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -162,8 +161,7 @@
|
||||
<div class="form-check">
|
||||
<label class="custom-control custom-checkbox">
|
||||
<input class="custom-control-input" type="checkbox" ng-model="scene.params.total">
|
||||
<span class="custom-control-indicator"></span>
|
||||
<span class="custom-control-description">Ligne de total</span>
|
||||
<span class="custom-control-label">Ligne de total</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@ -175,8 +173,7 @@
|
||||
<div class="form-check">
|
||||
<label class="custom-control custom-checkbox">
|
||||
<input class="custom-control-input" type="checkbox" ng-model="scene.params.notitle">
|
||||
<span class="custom-control-indicator"></span>
|
||||
<span class="custom-control-description">Masquer le titre</span>
|
||||
<span class="custom-control-label">Masquer le titre</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user