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>
|
2016-04-17 12:59:51 +02:00
|
|
|
<input eventman-focus type="text" id="query-events" class="form-control" placeholder="{{'Event title' | translate}}" ng-model="query" ng-model-options="{debounce: 600}">
|
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>
|
2016-04-25 13:40:03 +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>
|
2016-06-02 16:06:12 +02:00
|
|
|
<th ng-if="hasPermission('event|update')" class="hcenter"><strong>{{'Attendees / Registered' | translate}}</strong></th>
|
|
|
|
<th ng-if="hasPermission('event|update')"><strong>{{'Actions' | 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>
|
2016-06-02 16:06:12 +02:00
|
|
|
<span><strong>{{event.title}}</strong></span>
|
2016-05-13 23:30:15 +02:00
|
|
|
<p>{{'Begins:' | translate}} {{event['begin-date'] | date:'fullDate'}} {{event['begin-time'] | date:'HH:mm'}}<br/>
|
2016-04-25 14:24:45 +02:00
|
|
|
{{'Ends:' | translate}} {{event['end-date'] | date:'fullDate' }} {{event['end-time'] | date:'HH:mm'}}</p>
|
2015-04-05 18:54:51 +02:00
|
|
|
</td>
|
2016-06-02 16:06:12 +02:00
|
|
|
<td ng-if="hasPermission('persons|read')" class="hcenter">
|
2016-05-14 22:06:15 +02:00
|
|
|
<p><span ng-init="attendeesNr = (event.persons | attendeesFilter).length">{{attendeesNr}}</span> / {{event.persons.length || 0}} ({{((attendeesNr / (event.persons.length || 0) * 100) || 0).toFixed()}}%)</p>
|
2016-05-13 23:30:15 +02:00
|
|
|
</td>
|
2016-06-02 16:06:12 +02:00
|
|
|
<td ng-if="hasPermission('event|update')">
|
2016-06-02 21:46:26 +02:00
|
|
|
<button ng-if="hasPermission('ticket|create')" ng-click="$state.go('event.ticket.new', {id: event._id})" class="btn btn-link fa fa-user-plus" type="button" title="{{'Register' | translate}}"></button>
|
2016-06-02 16:06:12 +02:00
|
|
|
<button ng-if="hasPermission('persons|update')" ng-click="$state.go('event.info', {id: event._id})" class="btn btn-link fa fa-list" type="button" title="{{'Manage attendees' | translate}}"></button>
|
|
|
|
<button ng-if="hasPermission('event|delete')" ng-click="remove(event._id)" type="button" class="btn btn-link fa fa-trash fa-lg" title="{{'Delete' | translate}}"></button>
|
2015-04-05 18:54:51 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-22 09:08:38 +01:00
|
|
|
</div>
|