<h2>
  &Eacute;vénements
  <button type="button" ng-click="clearEvents()" class="float-right btn btn-sm btn-danger"><span class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span> Vider la liste</button>
  <button type="button" ng-click="show('new')" class="float-right btn btn-sm btn-primary mr-2"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Ajouter un événement</button>
</h2>

<p><input type="search" class="form-control" placeholder="Search" ng-model="query" autofocus></p>
<table class="table table-hover table-bordered table-striped table-sm">
  <thead class="thead-dark">
    <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>
