backend: use a new team field 'active', to avoid some team generation

This commit is contained in:
nemunaire 2019-01-21 02:35:03 +01:00
parent bf426d2ed2
commit 48fcfec0d0
5 changed files with 31 additions and 12 deletions

View file

@ -15,9 +15,17 @@
<form ng-submit="saveTeam()">
<div class="row" ng-if="team.id">
<label for="idTeam" class="col-sm-2 col-form-label-sm">Identifiant</label>
<div class="col-sm-10">
<div class="col-sm-auto">
<input type="text" readonly class="form-control-sm form-control-plaintext" ng-model="team.id">
</div>
<div class="col-sm">
<div class="form-check">
<label class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox" ng-model="team.active">
<span class="custom-control-label">Équipe active (inclure lors des générations)</span>
</label>
</div>
</div>
</div>
<div class="row" ng-repeat="field in fields">
<label for="{{ field }}" class="col-sm-2 col-form-label-sm">{{ field | capitalize }}</label>

View file

@ -15,7 +15,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="team in teams | filter: query" ng-click="show(team.id)">
<tr ng-repeat="team in teams | filter: query" ng-click="show(team.id)" ng-class="{'bg-warning': !team.active}">
<td ng-repeat="field in fields">
{{ team[field] }}
</td>