2015-04-05 22:16:11 +02:00
<!-- show the list of Events -->
2015-03-22 17:08:25 +01:00
< div class = "container" >
2015-04-05 18:54:51 +02:00
< h1 > {{'Events' | translate}}
< button ng-click = "$state.go('event.new')" class = "btn btn-success" >
2015-05-04 23:09:34 +02:00
< span class = "fa fa-plus-circle vcenter" > < / span >
2015-04-05 18:54:51 +02:00
{{'Add event' | translate}}
< / button >
< / h1 >
< div class = "panel panel-primary table-striped top5" >
< div class = "panel-heading" > {{'Events' | translate}}< / div >
< div class = "panel-body" >
< form class = "form-inline" >
< div class = "form-group" >
2015-04-06 12:48:41 +02:00
< label for = "query-events" > {{'Search:' | translate}}< / label >
2016-04-17 12:59:51 +02:00
< input eventman-focus type = "text" id = "query-events" class = "form-control" placeholder = "{{'Event title' | translate}}" ng-model = "query" ng-model-options = "{debounce: 600}" >
2015-04-05 18:54:51 +02:00
< / div >
< div class = "form-group" >
< label for = "events-order" > Sort by:< / label >
2015-04-06 12:48:41 +02:00
< 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 18:54:51 +02:00
< / select >
< / div >
< / form >
2015-03-15 22:13:06 +01:00
2015-05-03 17:33:52 +02:00
< div ng-include = " 'modal-confirm-action.html' " class = "hidden" > < / div >
2015-04-05 18:54:51 +02:00
< table class = "table table-striped" >
< thead >
< tr >
2015-04-19 21:52:41 +02:00
< th > < strong > {{'Event' | translate}}< / strong > < / th >
2016-06-02 16:06:12 +02:00
< th ng-if = "hasPermission('event|update')" class = "hcenter" > < strong > {{'Attendees / Registered' | translate}}< / strong > < / th >
2016-06-06 21:44:04 +02:00
< th > < strong > {{'Actions' | translate}}< / strong > < / th >
2015-04-05 18:54:51 +02:00
< / tr >
< / thead >
< tbody >
2016-06-06 21:44:04 +02:00
< tr ng-repeat = "event in events | splittedFilter:query | orderBy:eventsOrderProp" >
< td >
2016-06-24 23:11:57 +02:00
< span >
< strong >
< a ui-sref = "event.edit({id: event._id})" ng-if = "hasPermission('event|update')" > {{event.title}}< / a >
< a ui-sref = "event.view({id: event._id})" ng-if = "!hasPermission('event|update')" > {{event.title}}< / a >
< / strong >
< / span >
2016-06-06 21:44:04 +02:00
< p > {{'Begins:' | translate}} {{event['begin-date'] | date:'fullDate'}} {{event['begin-time'] | date:'HH:mm'}}< br / >
{{'Ends:' | translate}} {{event['end-date'] | date:'fullDate' }} {{event['end-time'] | date:'HH:mm'}}< / p >
< / td >
< td ng-if = "hasPermission('persons|read')" class = "hcenter" >
2016-06-26 16:54:08 +02:00
< p > < span ng-init = "attendeesNr = ((event.persons || []) | attendeesFilter).length" > {{attendeesNr}}< / span > / {{((event.persons || []) | registeredFilter).length}} ({{((attendeesNr / ((event.persons || []) | registeredFilter).length * 100) || 0).toFixed()}}%)< / p >
2016-06-06 21:44:04 +02:00
< / td >
< td >
2016-06-26 16:54:08 +02:00
< button ng-if = "hasPermission('event:tickets|create')" ng-click = "$state.go('event.ticket.new', {id: event._id})" class = "btn btn-link fa fa-user-plus" type = "button" title = "{{'Join this event' | translate}}" > < / button >
2016-06-19 16:58:38 +02:00
< button ng-if = "hasPermission('persons|update')" ng-click = "$state.go('event.tickets', {id: event._id})" class = "btn btn-link fa fa-list" type = "button" title = "{{'Manage attendees' | translate}}" > < / button >
< button ng-if = "hasPermission('event|update')" ng-click = "$state.go('event.edit', {id: event._id})" type = "button" class = "btn btn-link fa fa-cog fa-lg" title = "{{'Edit' | translate}}" > < / button >
2016-06-06 21:44:04 +02:00
< button ng-if = "hasPermission('event|delete')" ng-click = "remove(event._id)" type = "button" class = "btn btn-link fa fa-trash fa-lg" title = "{{'Delete' | translate}}" > < / button >
< / td >
< / tr >
2015-04-05 18:54:51 +02:00
< / tbody >
< / table >
< / div >
< / div >
2015-03-22 09:08:38 +01:00
< / div >