admin: improve team-print view
This commit is contained in:
parent
5085e1c517
commit
7fa490aadf
2 changed files with 12 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
<h2>
|
||||
Équipes
|
||||
<a ng-click="show('new')" class="pull-right btn btn-primary"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Ajouter une équipe</a>
|
||||
<a ng-click="show('print')" class="pull-right btn btn-default"><span class="glyphicon glyphicon-print" aria-hidden="true"></span> Imprimer les équipes</a>
|
||||
<a ng-click="show('print')" class="pull-right btn btn-default" style="margin-right: 10px;"><span class="glyphicon glyphicon-print" aria-hidden="true"></span> Imprimer les équipes</a>
|
||||
</h2>
|
||||
|
||||
<p><input type="search" class="form-control" placeholder="Search" ng-model="query"></p>
|
||||
|
|
|
@ -5,8 +5,11 @@
|
|||
<table class="table table-hover table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th ng-repeat="field in fields">
|
||||
{{ field }}
|
||||
<th>
|
||||
ID
|
||||
</th>
|
||||
<th>
|
||||
Nom d'équipe
|
||||
</th>
|
||||
<th>
|
||||
members
|
||||
|
@ -15,8 +18,12 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="team in teams | filter: query" ng-click="show(team.id)">
|
||||
<td ng-repeat="field in fields">
|
||||
{{ team[field] }}
|
||||
<td>
|
||||
{{ team.id }}
|
||||
</td>
|
||||
<td>
|
||||
{{ team.name }}
|
||||
<div ng-if="team.name != team.initialName">{{ team.initialName }}</div>
|
||||
</td>
|
||||
<td ng-controller="TeamMembersController" style="padding: 0;">
|
||||
<table class="table table-hover table-condensed" style="margin: 0;">
|
||||
|
|
Reference in a new issue