[admin] Add exercices related pages
This commit is contained in:
parent
f9c053397a
commit
f0f39e4905
3 changed files with 233 additions and 9 deletions
21
admin/static/views/exercice-list.html
Normal file
21
admin/static/views/exercice-list.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<h2>Exercices</h2>
|
||||
|
||||
<div>
|
||||
<p><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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="exercice in exercices | filter: query" ng-click="show(exercice.id)">
|
||||
<td ng-repeat="field in fields">
|
||||
{{ exercice[field] }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
Reference in a new issue