2015-04-05 22:16:11 +02:00
|
|
|
<!-- show details of a Person -->
|
2015-03-22 17:17:51 +01:00
|
|
|
<div class="container">
|
2015-04-05 17:36:29 +02:00
|
|
|
<h1>{{person.name}} {{person.surname}}
|
|
|
|
<button ng-if="person._id" ng-click="$state.go('person.edit', {id: person._id})" class="btn btn-success">
|
2015-05-04 23:09:34 +02:00
|
|
|
<span class="fa fa-pencil-square-o vcenter"></span>
|
2015-04-05 17:36:29 +02:00
|
|
|
{{'Edit' | translate}}
|
|
|
|
</button>
|
|
|
|
</h1>
|
2015-03-31 23:35:56 +02:00
|
|
|
<div class="panel panel-primary table-striped top5">
|
2015-04-04 13:01:33 +02:00
|
|
|
<div class="panel-heading">Events</div>
|
2015-04-05 00:55:59 +02:00
|
|
|
<div class="panel-body">
|
|
|
|
<form class="form-inline">
|
|
|
|
<div class="form-group">
|
2015-04-06 12:48:41 +02:00
|
|
|
<label for="query-persons">{{'Search:' | translate}}</label>
|
2016-04-17 12:59:51 +02:00
|
|
|
<input eventman-focus type="text" id="query-persons" class="form-control" placeholder="{{'Name or email' | translate}}" ng-model="query" ng-model-options="{debounce: 600}">
|
2015-04-05 00:55:59 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2015-04-06 12:48:41 +02:00
|
|
|
<label for="events-order">{{'Sort by:' | translate}}</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 00:55:59 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2015-04-06 12:48:41 +02:00
|
|
|
<th>{{'Event' | translate}}</th>
|
2015-05-04 23:09:34 +02:00
|
|
|
<th class="text-center">{{'Registered' | translate}}</th>
|
|
|
|
<th class="text-center">{{'Attended' | translate}}</th>
|
2015-04-05 00:55:59 +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 17:36:29 +02:00
|
|
|
<td><strong><a ui-sref="event.info({id: event._id})">{{event.title}}</a></strong></td>
|
2015-05-04 23:09:34 +02:00
|
|
|
<td class="text-center">
|
|
|
|
<button class="btn btn-link" name="switch-registered" ng-click="switchRegistered(event, person, !event.person_data.person_id)"><span class="fa fa-lg {{(event.person_data.person_id) && 'fa-check-circle text-success' || 'fa-times-circle text-danger'}}"></span></button>
|
2015-04-06 17:19:20 +02:00
|
|
|
</td>
|
2015-05-04 23:09:34 +02:00
|
|
|
<td class="text-center">
|
|
|
|
<button ng-disabled="!event.person_data.person_id" class="btn btn-link" name="switch-attended" ng-click="setPersonAttributeAtEvent(event, 'attended', !event.person_data.attended)"><span class="fa fa-lg {{(event.person_data.attended) && 'fa-check-circle text-success' || 'fa-times-circle text-danger'}}"></span></button>
|
2015-04-05 00:55:59 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2015-03-31 23:35:56 +02:00
|
|
|
</div>
|
2015-03-21 16:48:00 +01:00
|
|
|
</div>
|
2015-03-31 23:35:56 +02:00
|
|
|
|