eventman/angular_app/event-edit.html

54 lines
3 KiB
HTML
Raw Normal View History

2015-03-22 09:08:38 +01:00
<!-- show details of a single Event (editing also take place here) -->
<div class="container">
2015-04-05 16:57:21 +02:00
<h1>{{event.title}}&nbsp;
<button ng-if="event._id" ng-click="$state.go('event.info', {id: event._id})" class="btn btn-success">
<span class="glyphicon glyphicon-plus-sign"></span>
{{'Info' | translate}}
</button>
</h1>
2015-03-28 17:42:27 +01:00
<form name="eventForm" ng-model="eventdetails" ng-submit="save()">
2015-03-29 00:46:42 +01:00
<alert class="clearfix">
2015-04-05 16:57:21 +02:00
<button type="button" class="btn btn-default pull-right" ng-click="save($event)" ng-disabled="!eventForm.$dirty">{{'save' | translate}}</button>
2015-03-29 00:46:42 +01:00
</alert>
2015-03-28 17:42:27 +01:00
2015-03-21 15:45:40 +01:00
<div class="input-group input-group-lg">
2015-04-05 16:57:21 +02:00
<span class="input-group-addon">{{'Title' | translate}}</span>
<input type="text" class="form-control" placeholder="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-28 18:20:23 +01:00
<div class="input-group top5 well form-horizontal" ng-controller="DatetimePickerCtrl">
<div class="form-group">
2015-04-05 16:57:21 +02:00
<label for="begin-date" class="col-sm-3 control-label">{{'begin date:' | translate}}</label>
2015-03-28 18:20:23 +01:00
<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="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</div>
<div class="form-group">
2015-04-05 16:57:21 +02:00
<label for="begin-time" class="col-sm-3 control-label">{{'begin time:' | translate}}</label>
2015-03-28 18:20:23 +01:00
<timepicker id="begin-time" class="input-group" ng-model="event['begin-time']" show-meridian="false"></timepicker>
2015-03-28 17:42:27 +01:00
</div>
2015-03-21 15:45:40 +01:00
</div>
2015-03-15 23:05:59 +01:00
2015-03-28 18:20:23 +01:00
<div class="input-group top5 well form-horizontal" ng-controller="DatetimePickerCtrl">
<div class="form-group">
2015-04-05 16:57:21 +02:00
<label for="end-date" class="col-sm-3 control-label">{{'End date:' | translate}}</label>
2015-03-28 18:20:23 +01:00
<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="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</div>
<div class="form-group">
2015-04-05 16:57:21 +02:00
<label for="end-time" class="col-sm-3 control-label">{{'End time:' | translate}}</label>
2015-03-28 18:20:23 +01:00
<timepicker id="end-time" class="input-group" ng-model="event['end-time']" show-meridian="false"></timepicker>
2015-03-28 17:42:27 +01:00
</div>
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>