eventman/angular_app/events-list.html

44 lines
1.7 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>
2015-04-05 17:58:39 +02:00
<input type="text" id="query-events" class="form-control" placeholder="{{'Event title' | translate}}" 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>
2015-04-05 17:58:39 +02:00
<td><strong>{{'Event' | translate}}</strong></td>
<td><strong>{{'Actions' | translate}}</strong></td>
2015-03-22 17:08:25 +01:00
</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-04-05 17:58:39 +02:00
<p>{{'Begins:' | translate}} {{event['begin-date']}}<br/>
{{'Ends:' | translate}} {{event['end-date']}}</p>
2015-03-22 17:08:25 +01:00
</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>