public front: can choose levels to display in levels table

This commit is contained in:
nemunaire 2018-01-23 03:52:24 +01:00
commit 233286a0fe
3 changed files with 10 additions and 2 deletions

View file

@ -606,7 +606,7 @@ angular.module("FICApp")
$scope.scenes = [
{
type: "table",
params: { kind: "levels", themes: $scope.themes.map(function(z, i) { return z.id; }), total: true },
params: { kind: "levels", levels: [1,2,3,4,5,6,7,8,9,10], themes: $scope.themes.map(function(z, i) { return z.id; }), total: true },
},
{
type: "rank",

View file

@ -137,6 +137,14 @@
</div>
</div>
<div class="form-group row" ng-if="scene.type == 'table' && scene.params.kind == 'levels'">
<label for="ttheme" class="col-sm-2 col-form-label col-form-label-sm">Niveaux à afficher</label>
<div class="col-sm-10">
<select class="custom-select custom-select-sm" id="tlevels" multiple="1" ng-model="scene.params.levels" ng-options="lvl for lvl in [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]">
</select>
</div>
</div>
<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">