This commit is contained in:
nemunaire 2016-01-21 05:00:15 +01:00
commit 3aafb15f19
4 changed files with 50 additions and 4 deletions

View file

@ -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",

View 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>