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>
|
|
|
|
<button ng-if="event._id" ng-click="$state.go('event.info', {id: event._id})" class="btn btn-success">
|
|
|
|
<span class="fa fa-info-circle vcenter"></span>
|
|
|
|
{{'Info' | translate}}
|
|
|
|
</button>
|
|
|
|
<span ng-if="!event.title">{{'New event' | translate}}</span>{{event.title}}
|
|
|
|
</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()">
|
|
|
|
<div 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-28 17:42:27 +01:00
|
|
|
|
2015-05-05 21:48:25 +02:00
|
|
|
<div class="input-group input-group-lg">
|
|
|
|
<span class="input-group-addon min100">{{'Title' | translate}}</span>
|
|
|
|
<input type="text" class="form-control" placeholder="{{'Title' | translate}}" ng-model="event.title" ng-required="1">
|
|
|
|
</div>
|
2015-03-21 15:33:17 +01:00
|
|
|
|
2015-05-05 21:48:25 +02:00
|
|
|
<div class="input-group top5 well form-horizontal" ng-controller="DatetimePickerCtrl">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="begin-date" class="col-sm-3 control-label">{{'begin date:' | translate}}</label>
|
|
|
|
<div id="begin-date" class="input-group col-sm-9">
|
|
|
|
<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="fa fa-calendar"></i></button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="begin-time" class="col-sm-3 control-label">{{'begin time:' | translate}}</label>
|
|
|
|
<timepicker id="begin-time" class="input-group" ng-model="event['begin-time']" show-meridian="false"></timepicker>
|
|
|
|
</div>
|
2015-03-28 18:20:23 +01:00
|
|
|
</div>
|
2015-03-15 23:05:59 +01:00
|
|
|
|
2015-05-05 21:48:25 +02:00
|
|
|
<div class="input-group top5 well form-horizontal" ng-controller="DatetimePickerCtrl">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="end-date" class="col-sm-3 control-label">{{'End date:' | translate}}</label>
|
|
|
|
<div id="end-date" class="input-group col-sm-9">
|
|
|
|
<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="fa fa-calendar"></i></button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="end-time" class="col-sm-3 control-label">{{'End time:' | translate}}</label>
|
|
|
|
<timepicker id="end-time" class="input-group" ng-model="event['end-time']" show-meridian="false"></timepicker>
|
|
|
|
</div>
|
2015-03-28 18:20:23 +01:00
|
|
|
</div>
|
2015-03-28 17:42:27 +01:00
|
|
|
|
2015-05-05 21:48:25 +02:00
|
|
|
<input type="submit" class="outside-screen" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-21 13:21:47 +01:00
|
|
|
</div>
|