eventman/angular_app/events-list.html

56 lines
3 KiB
HTML
Raw Normal View History

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">
<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>
<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
<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 class="hcenter"><strong>{{'Attendees / Registered' | translate}}</strong></th>
2015-04-19 21:52:41 +02:00
<th><strong>{{'Delete' | translate}}</strong></th>
2015-04-05 18:54:51 +02:00
</tr>
</thead>
<tbody>
<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>
<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>
<td 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>
</td>
2015-04-05 18:54:51 +02:00
<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>