2015-03-22 09:08:38 +01:00
|
|
|
<!-- show a list of Events -->
|
2015-03-22 17:08:25 +01:00
|
|
|
<div class="container">
|
2015-03-15 18:00:08 +01:00
|
|
|
<div class="row">
|
2015-03-22 17:08:25 +01:00
|
|
|
<div class="col-lg-12">
|
2015-03-22 09:08:38 +01:00
|
|
|
Search: <input ng-model="query">
|
|
|
|
Sort by:
|
|
|
|
<select ng-model="orderProp">
|
|
|
|
<option value="title">Alphabetical</option>
|
|
|
|
<option value="begin-datetime">Date</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2015-03-15 22:13:06 +01:00
|
|
|
</div>
|
2015-03-22 17:08:25 +01:00
|
|
|
</div>
|
2015-03-15 22:13:06 +01:00
|
|
|
|
2015-03-22 17:08:25 +01:00
|
|
|
<div class="container">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td><strong>Event</strong></td>
|
|
|
|
<td><strong>Actions</strong></td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="event in events | filter:query | orderBy:orderProp">
|
|
|
|
<td>
|
|
|
|
<span><strong><a href="/#/events/{{event._id}}">{{event.title}}</a></strong></span>
|
|
|
|
<p>Begins: {{event['begin-datetime']}}<br/>
|
|
|
|
Ends: {{event['end-datetime']}}</p>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<button ng-click="remove(event._id)" type="button" class="btn btn-link glyphicon glyphicon-trash" aria-hidden="true"></button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-03-22 09:08:38 +01:00
|
|
|
</div>
|
2015-03-15 18:00:08 +01:00
|
|
|
|