2015-04-05 22:16:11 +02:00
<!-- show details of an Event -->
2015-04-05 16:57:21 +02:00
< div class = "container" >
2015-04-08 21:55:23 +02:00
< div class = "container" >
< div class = "row" >
2016-07-10 09:35:55 +02:00
< div class = "col-md-8" >
< div class = "panel panel-primary table-striped top5" >
< div class = "panel-heading" >
< h1 > {{event.title}} - {{'tickets' | translate}}
2015-04-08 21:55:23 +02:00
< button ng-if = "event._id" ng-click = "$state.go('event.edit', {id: event._id})" class = "btn btn-success" >
2016-07-10 09:35:55 +02:00
< span class = "fa fa-gear vcenter" > < / span >
{{'Edit event' | translate}}
2015-04-08 21:55:23 +02:00
< / button >
2016-07-02 00:05:50 +02:00
< button ng-if = "event._id" ng-click = "openQuickAddTicket()" class = "btn btn-success" >
< span class = "fa fa-user-plus vcenter" > < / span >
{{'Quick add ticket' | translate}}
< / button >
2016-07-10 09:35:55 +02:00
< span >
< span class = "label label-info vcenter pull-right" > {{'Attendees:' | translate}} {{countAttendees}}< / span >
2017-04-02 18:24:18 +02:00
< span class = "label label-warning vcenter pull-right registered-counter" > {{'Registered:' | translate}} {{((event.tickets || []) | registeredFilter).length}}< / span >
2016-07-10 09:35:55 +02:00
< / span >
2015-04-08 21:55:23 +02:00
< / h1 >
2015-04-08 22:06:11 +02:00
< / div >
2015-04-07 22:43:54 +02:00
< div class = "panel-body" >
2017-04-29 17:00:06 +02:00
< div >
< div style = "float:left;" >
< form class = "form-inline" >
< div class = "form-group" >
< label for = "query-tickets" > {{'Search:' | translate}}< / label >
2017-05-03 20:17:33 +02:00
< input eventman-focus type = "text" id = "query-tickets" class = "form-control query-input" placeholder = "{{'Name or email or key:value' | translate}}" ng-model = "query" ng-model-options = "{debounce: 350}" esc-key = "resetInput()" >
2017-04-29 17:00:06 +02:00
< / div > < label > < input type = "checkbox" ng-model = "registeredFilterOptions.all" / > {{'Show cancelled tickets' | translate}}< / label >
< / form >
< / div >
< div style = "float:right;" >
< span style = "color:#9e9e9e;" > ({{filteredLength}} {{'filtered item/s' | translate}})< / span >
< a download = "eventman.csv" ng-href = "{{downloadURL}}" class = "btn btn-primary" ng-class = "{disabled: !filteredLength}" > < span class = "fa fa-download" > < / span > {{'export CSV' | translate}}< / a >
< / div >
< / div >
< div class = "clearfix" > < / div >
< 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-07 22:43:54 +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-03 14:13:27 +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 > < / th >
2016-04-17 16:52:45 +02:00
< th class = "text-center nowrap" > < a ng-click = "updateOrded('-attended')" href = "" > < i class = "fa fa-caret-up" > < / i > < / a > {{'Attended' | translate}}< a ng-click = "updateOrded('attended')" href = "" > < i class = "fa fa-caret-down" > < / i > < / a > < / th >
< th class = "text-center nowrap" ng-repeat = "col in customFields" >
2015-05-01 22:47:21 +02:00
< a ng-click = "updateOrded(col.key)" href = "" > < i class = "fa fa-caret-up" > < / i > < / a > {{col.label | translate}}< a ng-click = "updateOrded('-' + col.key)" href = "" > < i class = "fa fa-caret-down" > < / i > < / a >
2015-04-19 21:50:28 +02:00
< / th >
2016-04-17 16:52:45 +02:00
< th class = "text-center nowrap" > {{'Delete' | translate}}< / th >
2015-04-07 22:43:54 +02:00
< / tr >
< / thead >
< tbody >
2017-04-02 00:35:12 +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-12 21:11:14 +02:00
< td >
2016-07-07 22:18:30 +02:00
< span >
< strong >
2016-07-09 14:20:48 +02:00
< a ui-sref = "event.ticket.edit({id: event._id, ticket_id: ticket._id})" > < span > {{ticket.name}}< / span > < span > {{ticket.surname}}< / span > < / a >
2016-07-07 22:18:30 +02:00
< / strong >
< / span >
2016-07-10 13:10:00 +02:00
< span ng-if = "ticket.email" > < {{ticket.email}}> < / span > < span ng-if = "ticket.cancelled" > ({{'cancelled' | translate}})< / 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-12 21:11:14 +02:00
< / td >
2015-05-01 23:05:50 +02:00
< td class = "text-center" >
2016-07-17 11:44:04 +02:00
< button class = "btn btn-link" reset-focus name = "switch-attended" ng-click = "setTicketAttributeAndRefocus(ticket, 'attended', !ticket.attended)" > < span class = "fa {{(ticket.attended) && 'fa-check-circle text-success' || 'fa-times-circle text-danger'}}" > < / span > < / button >
2015-04-19 20:27:49 +02:00
< / td >
2015-05-01 23:05:50 +02:00
< td class = "text-center" ng-repeat = "col in customFields" >
2015-04-19 20:27:49 +02:00
< span ng-if = "col.type == 'boolean'" >
2016-07-17 11:44:04 +02:00
< button class = "btn btn-link" ng-click = "setTicketAttribute(ticket, col.key, !ticket[col.key])" > < span class = "fa {{(ticket[col.key]) && 'fa-check-circle text-success' || 'fa-times-circle text-danger'}}" > < / span > < / button >
2015-04-19 20:27:49 +02:00
< / span >
< span ng-if = "col.type != 'boolean'" >
2016-07-09 14:20:48 +02:00
{{ticket[col.key]}}
2015-04-19 20:27:49 +02:00
< / span >
2015-04-07 22:43:54 +02:00
< / td >
2015-05-01 23:05:50 +02:00
< td class = "text-center" >
2016-07-17 11:44:04 +02:00
< button ng-click = "deleteTicket(ticket)" type = "button" class = "btn btn-link fa fa-trash" > < / button >
2015-04-07 22:43:54 +02:00
< / td >
< / tr >
< / tbody >
< / table >
2017-04-29 17:00:06 +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-07 22:43:54 +02:00
< / div >
2015-04-05 16:57:21 +02:00
< / div >
2015-04-07 22:43:54 +02:00
< / div >
< div class = "col-md-4" >
2015-05-10 10:27:57 +02:00
< div class = "panel panel-info top5" >
2016-07-10 09:35:55 +02:00
< div class = "panel-heading" > < h1 > {{'Unregistered persons' | translate}}< / h1 > < / div >
2015-05-10 10:27:57 +02:00
< div class = "panel-body small-table" >
2015-04-07 22:43:54 +02:00
< table class = "table table-striped table-condensed" >
< thead >
< tr >
< th > {{'Person' | translate}}< / th >
2015-05-02 09:58:53 +02:00
< th class = "text-left" > {{'Add' | translate}}< / th >
2015-04-07 22:43:54 +02:00
< / tr >
< / thead >
< tbody >
2017-04-02 14:22:51 +02:00
< tr ng-repeat = "person in (query ? allPersons : []) | splittedFilter:query | personRegistered:{event: event, present: false} | limitTo:maxAllPersons" >
2015-04-07 22:43:54 +02:00
< td >
2016-07-07 22:18:30 +02:00
< strong > {{person.name}} {{person.surname}}< / strong >
2015-04-07 22:43:54 +02:00
< br / >
{{person.email}}
< / td >
2015-05-02 09:58:53 +02:00
< td class = "text-left" >
2016-07-17 11:44:04 +02:00
< button reset-focus ng-click = "addTicket(person)" type = "button" class = "btn btn-link fa fa-user-plus vcenter" > < / button >
2015-04-07 22:43:54 +02:00
< / td >
< / tr >
< / tbody >
< / table >
< / div >
< / div >
< / div >
2015-04-05 16:57:21 +02:00
< / div >
< / div >
< / div >