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>
|
<h2>
|
||||||
Équipes
|
É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('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>
|
</h2>
|
||||||
|
|
||||||
<p><input type="search" class="form-control" placeholder="Search" ng-model="query"></p>
|
<p><input type="search" class="form-control" placeholder="Search" ng-model="query"></p>
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,11 @@
|
||||||
<table class="table table-hover table-bordered">
|
<table class="table table-hover table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th ng-repeat="field in fields">
|
<th>
|
||||||
{{ field }}
|
ID
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
Nom d'équipe
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
members
|
members
|
||||||
|
|
@ -15,8 +18,12 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<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)">
|
||||||
<td ng-repeat="field in fields">
|
<td>
|
||||||
{{ team[field] }}
|
{{ team.id }}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{{ team.name }}
|
||||||
|
<div ng-if="team.name != team.initialName">{{ team.initialName }}</div>
|
||||||
</td>
|
</td>
|
||||||
<td ng-controller="TeamMembersController" style="padding: 0;">
|
<td ng-controller="TeamMembersController" style="padding: 0;">
|
||||||
<table class="table table-hover table-condensed" style="margin: 0;">
|
<table class="table table-hover table-condensed" style="margin: 0;">
|
||||||
|
|
|
||||||
Reference in a new issue