2015-04-05 22:16:11 +02:00
|
|
|
<!-- show details of an Event -->
|
2015-04-05 16:57:21 +02:00
|
|
|
<div class="container">
|
|
|
|
<h1>{{event.title}}
|
|
|
|
<button ng-if="event._id" ng-click="$state.go('event.edit', {id: event._id})" class="btn btn-success">
|
2015-04-06 11:58:44 +02:00
|
|
|
<span class="glyphicon glyphicon-edit"></span>
|
2015-04-05 16:57:21 +02:00
|
|
|
{{'Edit' | translate}}
|
|
|
|
</button>
|
|
|
|
</h1>
|
|
|
|
<div class="panel panel-primary table-striped top5">
|
|
|
|
<div class="panel-heading">{{'Persons' | translate}}</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<form class="form-inline">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="query-persons">{{'Search:' | translate}}</label>
|
2015-04-05 17:58:39 +02:00
|
|
|
<input type="text" id="query-persons" class="form-control" placeholder="{{'Name or email' | translate}}" ng-model="query">
|
2015-04-05 16:57:21 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="persons-order">{{'Sort by:' | translate}}</label>
|
2015-04-06 12:48:41 +02:00
|
|
|
<select id="persons-order" class="form-control" ng-model="personsOrderProp">
|
|
|
|
<option value="name" ng-selected="selected">{{'Name' | translate}}</option>
|
|
|
|
<option value="-name" ng-selected="selected">{{'Name (descending)' | translate}}</option>
|
|
|
|
<option value="surname" ng-selected="selected">{{'Surname' | translate}}</option>
|
|
|
|
<option value="-surname" ng-selected="selected">{{'Surname (descending)' | translate}}</option>
|
2015-04-05 16:57:21 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{'Person' | translate}}</th>
|
|
|
|
<th>{{'Attended' | translate}}</th>
|
|
|
|
<th>{{'Actions' | translate}}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2015-04-06 12:48:41 +02:00
|
|
|
<tr ng-repeat="person in event.persons | splittedFilter:query | orderBy:personsOrderProp">
|
2015-04-05 17:58:39 +02:00
|
|
|
<td><strong><a ui-sref="person.info({id: person.person_id})">{{person.name}} {{person.surname}}</a></strong></td>
|
2015-04-05 16:57:21 +02:00
|
|
|
<td>
|
|
|
|
<button class="btn btn-link" name="switch-attended" ng-click="updateAttendee(person, !person.attended)"><span class="glyphicon {{(person.attended) && 'glyphicon-ok-sign text-success' || 'glyphicon-remove-sign text-danger'}}"></span></button>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<button ng-click="removeAttendee(person)" type="button" class="btn btn-link glyphicon glyphicon-trash"></button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|