2015-04-05 22:16:11 +02:00
|
|
|
<!-- show the list of Events -->
|
2015-03-22 17:08:25 +01:00
|
|
|
<div class="container">
|
2015-04-05 18:54:51 +02:00
|
|
|
<h1>{{'Events' | translate}}
|
|
|
|
<button ng-click="$state.go('event.new')" class="btn btn-success">
|
2015-05-04 23:09:34 +02:00
|
|
|
<span class="fa fa-plus-circle vcenter"></span>
|
2015-04-05 18:54:51 +02:00
|
|
|
{{'Add event' | translate}}
|
|
|
|
</button>
|
|
|
|
</h1>
|
|
|
|
<div class="panel panel-primary table-striped top5">
|
|
|
|
<div class="panel-heading">{{'Events' | translate}}</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<form class="form-inline">
|
|
|
|
<div class="form-group">
|
2015-04-06 12:48:41 +02:00
|
|
|
<label for="query-events">{{'Search:' | translate}}</label>
|
2015-04-18 15:49:28 +02:00
|
|
|
<input eventman-focus type="text" id="query-events" class="form-control" placeholder="{{'Event title' | translate}}" ng-model="query">
|
2015-04-05 18:54:51 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="events-order">Sort by:</label>
|
2015-04-06 12:48:41 +02:00
|
|
|
<select id="events-order" class="form-control" ng-model="eventsOrderProp">
|
|
|
|
<option value="title">{{'Title' | translate}}</option>
|
|
|
|
<option value="-title">{{'Title (descending)' | translate}}</option>
|
2015-04-12 21:59:30 +02:00
|
|
|
<option value="'begin-date'">{{'Date' | translate}}</option>
|
|
|
|
<option value="'-begin-date'">{{'Date (descending)' | translate}}</option>
|
2015-04-05 18:54:51 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</form>
|
2015-03-15 22:13:06 +01:00
|
|
|
|
2015-05-03 17:33:52 +02:00
|
|
|
<div ng-include=" 'modal-confirm-action.html' " class="hidden"></div>
|
2015-04-05 18:54:51 +02:00
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2015-04-19 21:52:41 +02:00
|
|
|
<th><strong>{{'Event' | translate}}</strong></th>
|
|
|
|
<th><strong>{{'Delete' | translate}}</strong></th>
|
2015-04-05 18:54:51 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2015-04-06 12:48:41 +02:00
|
|
|
<tr ng-repeat="event in events | splittedFilter:query | orderBy:eventsOrderProp">
|
2015-04-05 18:54:51 +02:00
|
|
|
<td>
|
|
|
|
<span><strong><a ui-sref="event.info({id: event._id})">{{event.title}}</a></strong></span>
|
2015-05-17 10:33:19 +02:00
|
|
|
<p>{{'Begins:' | translate}} {{event['begin-date'] | date:'fullDate' }} {{event['begin-time'] | date:'hh:mm' }}<br/>
|
|
|
|
{{'Ends:' | translate}} {{event['end-date'] | date:'fullDate' }} {{event['end-time'] | date:'hh:mm'}}</p>
|
2015-04-05 18:54:51 +02:00
|
|
|
</td>
|
|
|
|
<td>
|
2015-05-04 23:09:34 +02:00
|
|
|
<button ng-click="remove(event._id)" type="button" class="btn btn-link fa fa-trash fa-lg"></button>
|
2015-04-05 18:54:51 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-22 09:08:38 +01:00
|
|
|
</div>
|