eventman/angular_app/events-list.html

45 lines
1.6 KiB
HTML
Raw Normal View History

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-04-05 16:57:21 +02:00
<form class="form-inline">
<div class="form-group">
<label for="query-events">Search:</label>
<input type="text" id="query-events" class="form-control" placeholder="Event title" ng-model="query">
2015-03-22 09:08:38 +01:00
</div>
2015-04-05 16:57:21 +02:00
<div class="form-group">
<label for="events-order">Sort by:</label>
<select id="events-order" class="form-control" ng-model="orderProp">
<option value="title">Alphabetical</option>
<option value="begin-datetime">Date</option>
</select>
</div>
<div class="form-group">
<button ng-click="$state.go('event.new')" class="btn btn-success">
<span class="glyphicon glyphicon-plus-sign"></span>
New event
</button>
</div>
</form>
2015-03-15 22:13:06 +01:00
2015-04-05 09:28:08 +02:00
<table class="table table-striped">
2015-03-22 17:08:25 +01:00
<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>
2015-04-05 16:57:21 +02:00
<span><strong><a ui-sref="event.info({id: event._id})">{{event.title}}</a></strong></span>
2015-03-22 17:08:25 +01:00
<p>Begins: {{event['begin-datetime']}}<br/>
Ends: {{event['end-datetime']}}</p>
</td>
<td>
2015-04-05 11:20:57 +02:00
<button ng-click="remove(event._id)" type="button" class="btn btn-link glyphicon glyphicon-trash"></button>
2015-03-22 17:08:25 +01:00
</td>
</tr>
</tbody>
</table>
2015-03-22 09:08:38 +01:00
</div>
2015-03-15 18:00:08 +01:00