2016-06-02 21:46:26 +02:00
|
|
|
<!-- show details of an Event -->
|
|
|
|
<div class="container">
|
|
|
|
<div eventman-message="eventman-message" control="message"></div>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-7 col-xs-7 vcenter">
|
2016-06-26 16:54:08 +02:00
|
|
|
<h1><a ui-sref="event.view({id: event._id})" ng-if="event._id">{{event.title}}</a> - {{'new ticket' | translate}}</h1>
|
2016-06-02 21:46:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-06-26 16:54:08 +02:00
|
|
|
<div class="container" ng-if="ticket._id && !ticket.cancelled">
|
2016-06-02 21:46:26 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="panel panel-info table-striped top5">
|
2016-06-26 16:54:08 +02:00
|
|
|
<div class="panel-heading">{{'Join this event' | translate}}</div>
|
2016-06-02 21:46:26 +02:00
|
|
|
<div class="panel-body">
|
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">
|
2016-06-26 16:54:08 +02:00
|
|
|
<span><strong>{{'Save this URL if you want to modify your order later:'}} <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">
|
|
|
|
<button ng-click="dangerousActionsEnabled = !dangerousActionsEnabled" class="btn btn-warning">
|
|
|
|
<span class="fa fa-exclamation-triangle vcenter"></span>
|
|
|
|
{{'Toggle dangerous actions' | translate}}
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button ng-disabled="!dangerousActionsEnabled" ng-click="toggleTicket({id: ticket._id})" class="btn btn-danger">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-02 21:46:26 +02:00
|
|
|
</div>
|