admin: Add a page to list teams and members
This commit is contained in:
parent
f1fb33aa4d
commit
ce901fbfed
4 changed files with 76 additions and 24 deletions
32
admin/static/views/team-print.html
Normal file
32
admin/static/views/team-print.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<h2 ng-controller="SettingsController">{{ config.title }} – Équipes</h2>
|
||||
|
||||
<p class="hidden-print"><input type="search" class="form-control" placeholder="Search" ng-model="query"></p>
|
||||
|
||||
<table class="table table-hover table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th ng-repeat="field in fields">
|
||||
{{ field }}
|
||||
</th>
|
||||
<th>
|
||||
members
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="team in teams | filter: query" ng-click="show(team.id)">
|
||||
<td ng-repeat="field in fields">
|
||||
{{ team[field] }}
|
||||
</td>
|
||||
<td ng-controller="TeamMembersController" style="padding: 0;">
|
||||
<table class="table table-hover table-condensed" style="margin: 0;">
|
||||
<tr class="row" ng-repeat="member in members">
|
||||
<td class="col-sm-3" ng-repeat="field in fields">
|
||||
{{ member[field] }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in a new issue