2016-06-02 21:46:26 +02:00
<!-- show details of an Event -->
< div class = "container" >
2016-06-26 22:00:20 +02:00
<!-- FIXME: ideally, here we would have put a ng - if="!ticket.cancelled" directive, but for some
odd reason, any kind ng-if directive will prevent the form being populated with the formData model.
-->
< div class = "container" >
2016-06-02 21:46:26 +02:00
< div class = "row" >
< div class = "col-md-12" >
2016-07-09 15:09:28 +02:00
< div class = "panel panel-primary table-striped top5" >
< div class = "panel-heading" >
< h1 >
{{event.title}}< span ng-if = "!ticket._id" > - {{'join this event' | translate}}< / span > < span ng-if = "ticket._id" > - {{'your ticket' | translate}}< / span >
< button ng-click = "$state.go('event.view', {id: event._id})" class = "btn btn-success" ng-if = "event._id && !hasPermission('event|update')" >
< span class = "fa fa-calendar vcenter" > < / span >
{{'Event details' | translate}}
< / button >
< button ng-click = "$state.go('event.edit', {id: event._id})" class = "btn btn-success" ng-if = "event._id && hasPermission('event|update')" >
2016-07-10 09:35:55 +02:00
< span class = "fa fa-gear vcenter" > < / span >
2016-07-09 15:09:28 +02:00
{{'Edit event' | translate}}
< / button >
2016-07-09 17:41:16 +02:00
< button ng-click = "$state.go('event.tickets', {id: event._id})" class = "btn btn-success" ng-if = "event._id && hasPermission('event:tickets-all|read')" >
2016-07-09 15:09:28 +02:00
< span class = "fa fa-ticket vcenter" > < / span >
{{'Tickets' | translate}}
< / button >
< / h1 >
< / div >
2016-06-02 21:46:26 +02:00
< div class = "panel-body" >
2016-06-26 22:00:20 +02:00
< div ng-if = "ticket.cancelled" class = "clearfix alert alert-danger" >
{{'Your ticket has been cancelled; you can join again this event using the commands below' | translate}}
< / div >
2016-06-19 15:12:40 +02:00
< eda-easy-form-viewer
eda-easy-form-viewer-data-model="formData"
eda-easy-form-viewer-easy-form-generator-fields-model="formSchema"
2016-06-02 21:46:26 +02:00
2016-06-19 15:12:40 +02:00
eda-easy-form-viewer-submit-form-event="submitForm(dataModelSubmitted)"
eda-easy-form-viewer-cancel-form-event="cancelForm()">
< / eda-easy-form-viewer >
2016-06-19 22:27:18 +02:00
< div ng-if = "ticket._id" >
< div ng-controller = "NavigationCtrl" >
2017-04-04 21:59:38 +02:00
< span > < strong > {{'Save this URL if you want to modify your order later:' | translate}} < a ng-href = "{{getLocation()}}" > {{getLocation()}}< / a > < / strong > < / span >
2016-06-19 22:27:18 +02:00
< / div >
< / div >
2016-06-02 21:46:26 +02:00
< / div >
< / div >
< / div >
< / div >
< / div >
2016-06-26 16:54:08 +02:00
< div class = "container" ng-if = "ticket._id" >
< div class = "row" >
< div class = "col-md-12" >
< div class = "panel panel-danger table-striped top5" >
< div class = "panel-heading" > {{'Dangerous stuff' | translate}}< / div >
< div class = "panel-body" >
2016-07-02 19:05:28 +02:00
< button ng-click = "guiOptions.dangerousActionsEnabled = !guiOptions.dangerousActionsEnabled" class = "btn btn-warning" >
< span class = "fa fa-exclamation-triangle vcenter" > < / span >
{{'Toggle dangerous actions' | translate}}
< / button >
2016-07-03 00:39:07 +02:00
< button ng-disabled = "!guiOptions.dangerousActionsEnabled" ng-click = "toggleCancelledTicket({id: ticket._id})" class = "btn btn-danger" >
2016-07-02 19:05:28 +02:00
< span ng-class = "{fa: true, 'fa-sign-out': !ticket.cancelled, 'fa-sign-in': ticket.cancelled, vcenter: true}" > < / span >
< span ng-if = "!ticket.cancelled" > {{'Leave this event' | translate}}< / span >
< span ng-if = "ticket.cancelled" > {{'Join again this event' | translate}}< / span >
< / button >
2016-06-26 16:54:08 +02:00
< / div >
< / div >
< / div >
< / div >
< / div >
2016-06-02 21:46:26 +02:00
< / div >