22 lines
482 B
HTML
22 lines
482 B
HTML
<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>
|