20 lines
793 B
HTML
20 lines
793 B
HTML
<h2>Événements<a ng-click="clearEvents()" class="pull-right btn btn-danger"><span class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span> Vider la liste</a><a ng-click="show('new')" class="pull-right btn btn-primary" style="margin-right: 10px"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Ajouter un événement</a></h2>
|
|
|
|
<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="event in events | filter: query" ng-click="show(event.id)">
|
|
<td ng-repeat="field in fields">
|
|
{{ event[field] }}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|