2015-03-22 09:08:38 +01:00
<!-- show details of a single Event (editing also take place here) -->
2015-03-22 17:17:51 +01:00
< div class = "container" >
2015-03-28 17:42:27 +01:00
< form name = "eventForm" ng-model = "eventdetails" ng-submit = "save()" >
< alert > < button type = "button" class = "btn btn-default" ng-click = "save($event)" ng-disabled = "!eventForm.$dirty" > save< / button > < / alert >
2015-03-21 15:45:40 +01:00
< div class = "input-group input-group-lg" >
2015-03-23 23:06:44 +01:00
< span class = "input-group-addon" > Title< / span >
< input type = "text" class = "form-control" placeholder = "Title" value = "{{event.title}}" ng-model = "event.title" ng-required = "1" >
2015-03-21 15:45:40 +01:00
< / div >
2015-03-21 15:33:17 +01:00
2015-03-21 15:45:40 +01:00
< div class = "input-group top5" >
2015-03-23 23:06:44 +01:00
< span class = "input-group-addon" > Short description< / span >
< input type = "text" class = "form-control" placeholder = "The event in one sentence" value = "{{event['short-description']}}" ng-model = "event['short-description']" >
2015-03-21 15:45:40 +01:00
< / div >
2015-03-15 23:05:59 +01:00
2015-03-28 17:42:27 +01:00
< div class = "input-group top5" ng-controller = "DatetimePickerCtrl" >
< div class = "input-group" >
< input type = "text" class = "form-control" datepicker-popup = "dd-MMMM-yyyy" ng-model = "event['begin-date']" is-open = "opened" ng-required = "true" / >
< span class = "input-group-btn" >
< button type = "button" class = "btn btn-default" ng-click = "open($event)" > < i class = "glyphicon glyphicon-calendar" > < / i > < / button >
< / span >
< / div >
< timepicker ng-model = "event['begin-time']" show-meridian = "false" > < / timepicker >
2015-03-21 15:45:40 +01:00
< / div >
2015-03-15 23:05:59 +01:00
2015-03-28 17:42:27 +01:00
< div class = "input-group top5" ng-controller = "DatetimePickerCtrl" >
< div class = "input-group" >
< input type = "text" class = "form-control" datepicker-popup = "dd-MMMM-yyyy" ng-model = "event['end-date']" is-open = "opened" ng-required = "true" / >
< span class = "input-group-btn" >
< button type = "button" class = "btn btn-default" ng-click = "open($event)" > < i class = "glyphicon glyphicon-calendar" > < / i > < / button >
< / span >
< / div >
< timepicker ng-model = "event['end-time']" show-meridian = "false" > < / timepicker >
2015-03-21 15:45:40 +01:00
< / div >
2015-03-28 17:42:27 +01:00
2015-03-21 15:45:40 +01:00
< input type = "submit" style = "position: absolute; left: -9999px; width: 1px; height: 1px;" / >
< / form >
2015-03-21 13:21:47 +01:00
< / div >