Add rank
This commit is contained in:
parent
0247c89b02
commit
3aafb15f19
4 changed files with 50 additions and 4 deletions
|
|
@ -6,8 +6,8 @@ angular.module("FICApp", ["ngRoute"])
|
|||
templateUrl: "views/team-edit.html"
|
||||
})
|
||||
.when("/rank", {
|
||||
controller: "TeamListController",
|
||||
templateUrl: "views/team-list.html"
|
||||
controller: "RankController",
|
||||
templateUrl: "views/rank.html"
|
||||
})
|
||||
.when("/:theme", {
|
||||
controller: "ExerciceController",
|
||||
|
|
|
|||
18
frontend/static/views/rank.html
Normal file
18
frontend/static/views/rank.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<p><input type="search" class="form-control" placeholder="Rechercher" ng-model="query"></p>
|
||||
<table class="table table-hover table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th ng-repeat="field in fields" ng-click="order(field)">
|
||||
{{ field }}
|
||||
<span class="glyphicon" ng-show="rankOrder === field" ng-class="{'glyphicon-up': !reverse, 'glyphicon-down': reverse}"></span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="team in rank | filter: query | orderBy:rankOrder:reverse" ng-click="show(team.id)" ng-show="team.rank">
|
||||
<td ng-repeat="field in fields">
|
||||
{{ team[field] }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in a new issue