admin: List all existing association between users and teams
This commit is contained in:
parent
e44cac32ac
commit
3881385c9e
3 changed files with 37 additions and 3 deletions
|
@ -55,3 +55,32 @@
|
|||
</ng-repeat>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="mb-4" ng-controller="AllTeamAssociationsController">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<h3>
|
||||
Association utilisateurs et équipes
|
||||
</h3>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="table table-sm table-hover" ng-controller="TeamsListController" >
|
||||
<tr>
|
||||
<th class="text-right">Utilisateur</th>
|
||||
<th></th>
|
||||
<th>Équipe</th>
|
||||
</tr>
|
||||
<tr ng-repeat="association in allAssociations">
|
||||
<td class="text-right">{{ association.association }}</td>
|
||||
<td class="text-center">⬌</td>
|
||||
<td ng-repeat="team in teams" ng-if="team.id == association.team_id">
|
||||
<a ng-href="teams/{{ team.id }}">
|
||||
{{ team.name }}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -323,7 +323,7 @@
|
|||
<form class="row" ng-controller="AllTeamAssociationsController" ng-submit="addDelegatedQA()">
|
||||
<div class="col">
|
||||
<select class="form-control form-control-sm" ng-model="newdqa">
|
||||
<option ng-selected="newdqa == m" ng-repeat="(i,m) in allAssociations" ng-value="m">{{ m }}</option>
|
||||
<option ng-selected="newdqa == m.association" ng-repeat="(i,m) in allAssociations" ng-value="m.association">{{ m.association }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col input-group">
|
||||
|
|
Reference in a new issue