dashboard: add rank on the side

This commit is contained in:
nemunaire 2019-01-23 01:02:45 +01:00
parent c1bc86d3c9
commit fa2d514bbc
3 changed files with 70 additions and 0 deletions

View file

@ -247,6 +247,27 @@
<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 class="form-group row" ng-if="scene.type == 'rank'">
<label for="rtype" class="col-sm-4 col-form-label col-form-label-sm">Sorte</label>
<div class="col-sm-8">
<select class="custom-select custom-select-sm" id="rtype" ng-model="scene.params.which" ng-options="k as v for (k, v) in rank_types_side"></select>
</div>
</div>
<div class="form-group row" ng-if="scene.type == 'rank' && scene.params.which == 'general'">
<label for="rlimit" class="col-sm-4 col-form-label col-form-label-sm">Nb lign</label>
<div class="col-sm-8">
<input type="text" id="rlimit" ng-model="scene.params.limit" class="form-control form-control-sm" integer>
</div>
</div>
<div class="form-group row" ng-if="scene.type == 'rank' && scene.params.which == 'general'">
<label for="begin" class="col-sm-4 col-form-label col-form-label-sm">Début</label>
<div class="col-sm-8">
<input type="text" id="rbegin" ng-model="scene.params.begin" class="form-control form-control-sm" integer>
</div>
</div>
</div>
</div>