2016-07-07 22:18:30 +02:00
|
|
|
<!-- show the list of Tickets -->
|
2015-03-22 17:08:25 +01:00
|
|
|
<div class="container">
|
2015-04-05 18:54:51 +02:00
|
|
|
<div class="panel panel-primary table-striped top5">
|
2016-07-09 15:09:28 +02:00
|
|
|
<div class="panel-heading">
|
|
|
|
<h1>
|
|
|
|
{{'All Tickets' | translate}}
|
|
|
|
<div class="label label-info vcenter">{{'Tickets:' | translate}} {{tickets.length || 0}}</div>
|
|
|
|
</h1>
|
|
|
|
</div>
|
2015-04-05 18:54:51 +02:00
|
|
|
<div class="panel-body">
|
|
|
|
<form class="form-inline">
|
|
|
|
<div class="form-group">
|
2016-07-07 22:18:30 +02:00
|
|
|
<label for="query-tickets">{{'Search:' | translate}}</label>
|
2017-05-29 18:02:55 +02:00
|
|
|
<input eventman-focus type="text" id="query-tickets" class="form-control" placeholder="{{'Name or email' | translate}}" ng-model="query" ng-model-options="{debounce: 350}"> <label> <input type="checkbox" ng-model="groupByEmail" /> {{'group by email' | translate}}</label>
|
2015-04-05 18:54:51 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
2015-03-14 17:32:16 +01:00
|
|
|
|
2017-04-02 17:39:33 +02:00
|
|
|
<uib-pagination ng-model="currentPage" total-items="filteredLength" items-per-page="itemsPerPage"
|
2017-04-02 13:59:45 +02:00
|
|
|
direction-links="false" boundary-links="true" boundary-link-numbers="true" max-size="maxPaginationSize">
|
2017-04-02 17:39:33 +02:00
|
|
|
</uib-pagination>
|
2015-04-05 18:54:51 +02:00
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2016-04-17 16:52:45 +02:00
|
|
|
<th class="text-right nowrap">#</th>
|
2016-07-07 22:18:30 +02:00
|
|
|
<th class="nowrap"><a ng-click="updateOrded('name')" href=""><i class="fa fa-caret-up"></i></a>{{'Name' | translate}}<a ng-click="updateOrded('-name')" href=""><i class="fa fa-caret-down"></i></a> <a ng-click="updateOrded('surname')" href=""><i class="fa fa-caret-up"></i></a>{{'Surname' | translate}}<a ng-click="updateOrded('-surname')" href=""><i class="fa fa-caret-down"></i></a> <a ng-click="updateOrded('email')" href=""><i class="fa fa-caret-up"></i></a>{{'Email' | translate}}<a ng-click="updateOrded('-email')" href=""><i class="fa fa-caret-down"></i></a></th>
|
2017-05-29 18:02:55 +02:00
|
|
|
<th class="text-center nowrap"><strong>{{'Ticket' | translate}}</strong></th>
|
2016-07-07 22:18:30 +02:00
|
|
|
<th class="text-center nowrap"><strong>{{'Attended' | translate}}</strong></th>
|
2015-04-05 18:54:51 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2017-04-02 12:48:24 +02:00
|
|
|
<tr ng-repeat="ticket in shownItems">
|
2017-09-16 20:35:40 +02:00
|
|
|
<td class="text-right">{{$index + 1 + ((currentPage-1)*itemsPerPage)}}</td>
|
2015-04-05 18:54:51 +02:00
|
|
|
<td>
|
2017-05-29 18:02:55 +02:00
|
|
|
<span><strong><span>{{ticket.name}}</span> <span>{{ticket.surname}}</span></strong></span><span ng-if="ticket.email"> <{{ticket.email}}></span>
|
2016-10-16 19:39:55 +02:00
|
|
|
<p ng-if="ticket.company || ticket['job title']"><i ng-if="ticket['job title']">{{ticket['job title']}}</i><span ng-if="ticket.company && ticket['job title']"> @ </span><i ng-if="ticket.company">{{ticket.company}}</i></p>
|
2015-04-05 18:54:51 +02:00
|
|
|
</td>
|
2016-07-07 22:18:30 +02:00
|
|
|
<td class="text-center">
|
2017-05-29 18:02:55 +02:00
|
|
|
<a ng-if="!ticket.tickets" ui-sref="event.ticket.edit({id: ticket.event_id, ticket_id: ticket._id})">{{ticket.event_title}}</a>
|
|
|
|
<div ng-if="ticket.tickets" ng-repeat="t in ticket.tickets">
|
|
|
|
<a ui-sref="event.ticket.edit({id: t.event_id, ticket_id: t._id})">{{t.event_title}}</a>
|
|
|
|
</div>
|
2015-04-18 17:33:42 +02:00
|
|
|
</td>
|
2015-05-02 09:58:53 +02:00
|
|
|
<td class="text-center">
|
2017-05-29 18:02:55 +02:00
|
|
|
<span ng-if="!ticket.tickets" class="fa {{(ticket.attended) && 'fa-check-circle text-success' || 'fa-times-circle text-danger'}}"></span>
|
|
|
|
<div ng-if="ticket.tickets" ng-repeat="t in ticket.tickets">
|
|
|
|
<span class="fa {{(t.attended) && 'fa-check-circle text-success' || 'fa-times-circle text-danger'}}"></span>
|
|
|
|
</div>
|
2015-04-05 18:54:51 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-04-02 17:39:33 +02:00
|
|
|
<uib-pagination ng-model="currentPage" total-items="filteredLength" items-per-page="itemsPerPage"
|
2017-04-02 13:59:45 +02:00
|
|
|
direction-links="false" boundary-links="true" boundary-link-numbers="true" max-size="maxPaginationSize">
|
2017-04-02 17:39:33 +02:00
|
|
|
</uib-pagination>
|
2015-04-05 18:54:51 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-22 17:08:25 +01:00
|
|
|
</div>
|