2015-04-05 22:16:11 +02:00
<!-- edit details of an Event -->
2015-03-22 17:17:51 +01:00
< div class = "container" >
2015-05-05 21:48:25 +02:00
< div class = "panel panel-primary table-striped top5" >
< div class = "panel-heading" >
< h1 >
2016-07-09 15:09:28 +02:00
{{event.title}}
< span ng-if = "hasPermission('event|create') && !event._id" > {{'New event' | translate}}< / span >
2016-07-09 17:41:16 +02:00
< button ng-if = "event._id && hasPermission('event:tickets-all|read')" ng-click = "$state.go('event.tickets', {id: event._id})" class = "btn btn-success" >
2016-06-19 16:58:38 +02:00
< span class = "fa fa-ticket vcenter" > < / span >
{{'Tickets' | translate}}
2015-05-05 21:48:25 +02:00
< / button >
2016-08-01 14:40:29 +02:00
< button ng-if = "event._id && hasPermission('event:tickets-all|create')" ng-click = "$state.go('event.ticket.new', {id: event._id})" ng-class = "{btn: true, 'btn-success': true, disabled: event.no_tickets_for_sale}" >
2016-06-26 13:48:01 +02:00
< span class = "fa fa-user-plus vcenter" > < / span >
2016-07-03 14:13:27 +02:00
{{'Join this event' | translate}}
2016-06-26 13:48:01 +02:00
< / button >
2015-05-05 21:48:25 +02:00
< / h1 >
2015-04-05 20:12:54 +02:00
< / div >
2015-05-05 21:48:25 +02:00
< div class = "panel-body" >
< form name = "eventForm" ng-model = "eventdetails" ng-submit = "save()" >
2016-06-24 23:11:57 +02:00
< fieldset ng-disabled = "eventFormDisabled" >
< div ng-if = "!eventFormDisabled" ng-class = "{clearfix: true, alert: true, 'alert-success': !eventForm.$dirty, 'alert-danger': eventForm.$dirty}" >
< button type = "button" class = "btn btn-default pull-right" ng-click = "save($event)" ng-disabled = "!eventForm.$dirty" >
< span class = "fa fa-floppy-o vcenter" > < / span >
{{'save' | translate}}
< / button >
< / div >
2015-03-21 15:33:17 +01:00
2016-07-31 23:25:05 +02:00
< div class = "input-group input-group" >
2016-06-24 23:11:57 +02:00
< span class = "input-group-addon min100" > {{'Title' | translate}}< / span >
2016-07-09 20:24:45 +02:00
< input type = "text" class = "form-control" placeholder = "{{'Title' | translate}}" ng-model = "event.title" ng-required = "true" >
2015-05-05 21:48:25 +02:00
< / div >
2016-07-31 23:25:05 +02:00
< div class = "input-group input-group top5" >
2016-06-24 23:11:57 +02:00
< span class = "input-group-addon min100" > {{'Tagline' | translate}}< / span >
< input type = "text" class = "form-control" placeholder = "{{'Tagline' | translate}}" ng-model = "event.tagline" >
< / div >
2016-07-31 23:25:05 +02:00
< div class = "input-group input-group top5" >
2016-06-24 23:11:57 +02:00
< span class = "input-group-addon min100" > {{'Short summary' | translate}}< / span >
< input type = "text" class = "form-control" placeholder = "{{'Short summary' | translate}}" ng-model = "event.summary" >
< / div >
< div class = "input-group top5" >
< span class = "input-group-addon min100" > {{'Long description' | translate}}< / span >
< textarea class = "form-control" placeholder = "{{'Long description' | translate}}" ng-model = "event.description" rows = "5" > < / textarea >
2015-05-05 21:48:25 +02:00
< / div >
2015-03-15 23:05:59 +01:00
2016-06-24 23:11:57 +02:00
< div class = "input-group top5 well form-horizontal" ng-controller = "DatetimePickerCtrl" >
< div class = "form-group" >
2017-04-04 21:59:38 +02:00
< label for = "begin-date" class = "col-sm-3 control-label" > {{'begin date:' | translate}}< / label >
2016-08-01 14:40:29 +02:00
< div id = "begin-date" class = "input-group col-sm-6" >
2017-04-04 21:59:38 +02:00
< input type = "text" class = "form-control" uib-datepicker-popup = "dd-MMMM-yyyy" ng-model = "event.begin_date" is-open = "opened" / >
2016-06-24 23:11:57 +02:00
< span class = "input-group-btn" >
2017-04-04 21:59:38 +02:00
< button type = "button" class = "btn btn-default" ng-click = "open()" > < i class = "fa fa-calendar" > < / i > < / button >
2016-06-24 23:11:57 +02:00
< / span >
< / div >
< / div >
< div class = "form-group" >
2017-04-04 21:59:38 +02:00
< label for = "begin-time" class = "col-sm-3 control-label" > {{'begin time:' | translate}}< / label >
< div uib-timepicker id = "begin-time" class = "input-group" ng-model = "event.begin_time" show-meridian = "false" > < / div >
2015-05-05 21:48:25 +02:00
< / div >
< / div >
2016-06-24 23:11:57 +02:00
< div class = "input-group top5 well form-horizontal" ng-controller = "DatetimePickerCtrl" >
< div class = "form-group" >
2017-04-04 21:59:38 +02:00
< label for = "end-date" class = "col-sm-3 control-label" > {{'end date:' | translate}}< / label >
2016-08-01 14:40:29 +02:00
< div id = "end-date" class = "input-group col-sm-6" >
2017-04-04 21:59:38 +02:00
< input type = "text" class = "form-control" uib-datepicker-popup = "dd-MMMM-yyyy" ng-model = "event.end_date" is-open = "opened" / >
2016-06-24 23:11:57 +02:00
< span class = "input-group-btn" >
2017-04-04 21:59:38 +02:00
< button type = "button" class = "btn btn-default" ng-click = "open()" > < i class = "fa fa-calendar" > < / i > < / button >
2016-06-24 23:11:57 +02:00
< / span >
< / div >
< / div >
< div class = "form-group" >
2017-04-04 21:59:38 +02:00
< label for = "end-time" class = "col-sm-3 control-label" > {{'end time:' | translate}}< / label >
< div uib-timepicker id = "end-time" class = "input-group" ng-model = "event.end_time" show-meridian = "false" > < / div >
2016-06-24 23:11:57 +02:00
< / div >
2015-05-05 21:48:25 +02:00
< / div >
2015-03-28 17:42:27 +01:00
2016-07-31 23:25:05 +02:00
< div class = "input-group input-group top5" >
2016-06-24 23:11:57 +02:00
< span class = "input-group-addon min100" > {{'Where' | translate}}< / span >
< input type = "text" class = "form-control" placeholder = "{{'Where' | translate}}" ng-model = "event.where" >
< / div >
2017-12-02 16:54:03 +01:00
< div ng-if = "!eventFormDisabled" class = "input-group input-group top5" >
2016-07-03 14:13:27 +02:00
< span class = "input-group-addon min100" > {{'Group ID' | translate}}< / span >
< input type = "text" class = "form-control" placeholder = "{{'Used to share persons amongst multiple events. Must be hard to guess (if empty, will be autogenerated)' | translate}}" ng-model = "event.group_id" >
< / div >
2016-06-18 20:01:17 +02:00
2016-08-01 14:40:29 +02:00
< div class = "panel panel-default table-striped top30" >
2016-07-31 23:25:05 +02:00
< div class = "panel-heading" >
2017-04-04 21:59:38 +02:00
< h3 > {{'Ticket limits' | translate}}< / h3 >
2016-07-31 23:25:05 +02:00
< / div >
< div class = "panel-body" >
< div class = "input-group input-group top5" >
< span class = "input-group-addon min100" > {{'Number of tickets' | translate}}< / span >
< input type = "number" min = "0" class = "form-control" placeholder = "{{'Number of tickets (0 or empty means unlimited)' | translate}}" ng-model = "event.number_of_tickets" >
< / div >
2016-08-01 14:40:29 +02:00
< div class = "input-group top5 well form-horizontal" ng-controller = "DatetimePickerCtrl" >
< div class = "form-group" >
< label for = "sales-begin-date" class = "col-sm-6 control-label" > {{'ticket sales begin date:' | translate}}< / label >
< div id = "sales-begin-date" class = "input-group col-sm-6" >
2017-04-04 21:59:38 +02:00
< input type = "text" class = "form-control" uib-datepicker-popup = "dd-MMMM-yyyy" ng-model = "event.ticket_sales_begin_date" is-open = "opened" / >
2016-08-01 14:40:29 +02:00
< span class = "input-group-btn" >
2017-04-04 21:59:38 +02:00
< button type = "button" class = "btn btn-default" ng-click = "open()" > < i class = "fa fa-calendar" > < / i > < / button >
2016-08-01 14:40:29 +02:00
< / span >
< / div >
< / div >
< div class = "form-group" >
< label for = "sales-begin-time" class = "col-sm-6 control-label" > {{'ticket sales begin time:' | translate}}< / label >
2017-04-04 21:59:38 +02:00
< div uib-timepicker id = "sales-begin-time" class = "input-group" ng-model = "event.ticket_sales_begin_time" show-meridian = "false" > < / div >
2016-08-01 14:40:29 +02:00
< / div >
< / div >
< div class = "input-group top5 well form-horizontal" ng-controller = "DatetimePickerCtrl" >
< div class = "form-group" >
< label for = "sales-end-date" class = "col-sm-6 control-label" > {{'ticket sales end date:' | translate}}< / label >
< div id = "sales-end-date" class = "input-group col-sm-6" >
2017-04-04 21:59:38 +02:00
< input type = "text" class = "form-control" uib-datepicker-popup = "dd-MMMM-yyyy" ng-model = "event.ticket_sales_end_date" is-open = "opened" / >
2016-08-01 14:40:29 +02:00
< span class = "input-group-btn" >
2017-04-04 21:59:38 +02:00
< button type = "button" class = "btn btn-default" ng-click = "open()" > < i class = "fa fa-calendar" > < / i > < / button >
2016-08-01 14:40:29 +02:00
< / span >
< / div >
< / div >
< div class = "form-group" >
< label for = "sales-end-time" class = "col-sm-6 control-label" > {{'ticket sales end time:' | translate}}< / label >
2017-04-04 21:59:38 +02:00
< div uib-timepicker id = "sales-end-time" class = "input-group" ng-model = "event.ticket_sales_end_time" show-meridian = "false" > < / div >
2016-08-01 14:40:29 +02:00
< / div >
< / div >
2016-07-31 23:25:05 +02:00
< / div >
< / div >
2016-06-18 20:01:17 +02:00
2016-07-31 23:25:05 +02:00
< input type = "submit" class = "outside-screen" / >
< div ng-if = "!eventFormDisabled" ng-class = "{clearfix: true, alert: true, 'alert-success': !eventForm.$dirty, 'alert-danger': eventForm.$dirty}" >
< button type = "button" class = "btn btn-default pull-right" ng-click = "save($event)" ng-disabled = "!eventForm.$dirty" >
< span class = "fa fa-floppy-o vcenter" > < / span >
{{'save' | translate}}
< / button >
< / div >
< / fieldset >
2015-05-05 21:48:25 +02:00
< / form >
< / div >
< / div >
2016-06-19 15:12:40 +02:00
2016-06-24 23:11:57 +02:00
< div class = "panel panel-primary top10" ng-if = "!eventFormDisabled" >
2016-06-19 15:12:40 +02:00
< div class = "panel-heading" >
< h1 > {{'Registration form' | translate}}< / h1 >
< / div >
< div class = "panel-body" >
< eda-step-way-easy-form-gen eda-easy-form-generator-model = "event.formSchema" eda-save-form-event = "saveForm(edaEasyFormGeneratorModel)" > < / eda-step-way-easy-form-gen >
< / div >
< / div >
2015-03-21 13:21:47 +01:00
< / div >