eventman/angular_app/tickets-list.html

46 lines
3 KiB
HTML
Raw Normal View History

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>
<input eventman-focus type="text" id="query-tickets" class="form-control" placeholder="{{'Name or email' | translate}}" ng-model="query" ng-model-options="{debounce: 600}">
2015-04-05 18:54:51 +02:00
</div>
</form>
2015-03-14 17:32:16 +01:00
2015-04-05 18:54:51 +02:00
<table class="table table-striped">
<thead>
<tr>
<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>
<th class="text-center nowrap"><strong>{{'Event' | translate}}</strong></th>
<th class="text-center nowrap"><strong>{{'Attended' | translate}}</strong></th>
2015-04-05 18:54:51 +02:00
</tr>
</thead>
<tbody>
2016-07-07 22:18:30 +02:00
<tr ng-repeat="ticket in tickets | splittedFilter:query | orderBy:ticketsOrderProp">
2015-05-02 09:58:53 +02:00
<td class="text-right">{{$index+1}}</td>
2015-04-05 18:54:51 +02:00
<td>
2016-07-07 22:18:30 +02:00
<span><strong><a ui-sref="event.ticket.edit({id: ticket.event_id, ticket_id: ticket._id})"><span>{{ticket.name}}</span>&nbsp;<span>{{ticket.surname}}</span></a></strong></span><span ng-if="ticket.email">&nbsp;&lt;{{ticket.email}}&gt;</span>
<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">&nbsp;@&nbsp;</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">
<a ui-sref="event.view({id: ticket.event_id})">{{ticket.event_title}}</a>
2015-04-18 17:33:42 +02:00
</td>
2015-05-02 09:58:53 +02:00
<td class="text-center">
2016-07-07 22:18:30 +02:00
<span class="fa fa-lg {{(ticket.attended) && 'fa-check-circle text-success' || 'fa-times-circle text-danger'}}"></span>
2015-04-05 18:54:51 +02:00
</td>
</tr>
</tbody>
</table>
</div>
</div>
2015-03-22 17:08:25 +01:00
</div>