2015-06-25 17:30:44 +02:00
|
|
|
<?xml version='1.0' standalone='yes'?>
|
|
|
|
<container
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:var="http://www.skyrix.com/od/binding"
|
|
|
|
xmlns:const="http://www.skyrix.com/od/constant"
|
2015-07-21 14:26:50 +02:00
|
|
|
xmlns:label="OGo:label">
|
2015-12-09 22:52:54 +01:00
|
|
|
<md-dialog flex="60" flex-sm="80" flex-xs="100">
|
2015-07-21 14:26:50 +02:00
|
|
|
<form name="eventForm" ng-submit="editor.save(eventForm)">
|
2015-08-07 17:22:24 +02:00
|
|
|
<md-toolbar ng-class="editor.component.getClassName('bg')">
|
2015-09-03 22:10:05 +02:00
|
|
|
<div class="md-toolbar-tools">
|
2016-02-10 22:17:09 +01:00
|
|
|
<md-icon class="material-icons sg-icon-toolbar-bg">assignment_turned_in</md-icon>
|
2015-07-21 14:26:50 +02:00
|
|
|
<!-- summary -->
|
|
|
|
<md-icon ng-if="editor.component.classification == 'confidential'">visibility_off</md-icon>
|
|
|
|
<md-icon ng-if="editor.component.classification == 'private'">vpn_key</md-icon>
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block md-flex">
|
2015-08-07 17:22:24 +02:00
|
|
|
<label><var:string label:value="Title"/></label>
|
2015-07-21 14:26:50 +02:00
|
|
|
<input type="text"
|
|
|
|
class="md-title"
|
2016-01-18 22:12:54 +01:00
|
|
|
md-autofocus="true"
|
2015-08-15 23:08:15 +02:00
|
|
|
ng-model="editor.component.summary"
|
|
|
|
required="required"/>
|
2015-07-21 14:26:50 +02:00
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
</md-toolbar>
|
2015-12-17 19:55:43 +01:00
|
|
|
<md-dialog-content class="sg-has-form-sections">
|
|
|
|
<div class="sg-form-section">
|
|
|
|
<div layout="row" layout-wrap="layout-wrap">
|
|
|
|
<!-- location -->
|
|
|
|
<md-input-container flex="50" flex-xs="100">
|
|
|
|
<label><var:string label:value="Location"/></label>
|
|
|
|
<input type="text" ng-model="editor.component.location"/>
|
|
|
|
</md-input-container>
|
|
|
|
<!-- calendar -->
|
|
|
|
<md-input-container flex="50" flex-xs="100">
|
|
|
|
<label><var:string label:value="Calendar"/></label>
|
|
|
|
<md-select ng-model="editor.component.destinationCalendar">
|
|
|
|
<md-option ng-repeat="calendar in editor.service.$findAll(null, true)"
|
|
|
|
ng-value="calendar.id">{{calendar.name}}</md-option>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
<!-- comment -->
|
|
|
|
<md-input-container class="md-block md-flex">
|
|
|
|
<label><var:string label:value="Description"/></label>
|
|
|
|
<textarea ng-model="editor.component.comment"><!-- comment --></textarea>
|
2015-12-11 21:11:53 +01:00
|
|
|
</md-input-container>
|
2015-12-17 19:55:43 +01:00
|
|
|
<!-- categories -->
|
|
|
|
<md-chips ng-model="editor.component.categories">
|
|
|
|
<md-autocomplete
|
|
|
|
md-selected-item="editor.categories.selected"
|
|
|
|
md-search-text="editor.categories.searchText"
|
|
|
|
md-items="category in editor.component.constructor.filterCategories(editor.categories.searchText)"
|
|
|
|
md-min-length="0"
|
|
|
|
label:placeholder="Add a category">
|
|
|
|
<span md-highlight-text="editor.categories.searchText">{{category}}</span>
|
|
|
|
</md-autocomplete>
|
|
|
|
</md-chips>
|
2016-08-02 16:48:31 +02:00
|
|
|
<div layout="row" layout-align="space-between end" layout-wrap="layout-wrap">
|
2015-12-17 19:55:43 +01:00
|
|
|
<!-- classification -->
|
2016-08-02 17:20:38 +02:00
|
|
|
<md-radio-group class="sg-padded--top"
|
|
|
|
layout="row"
|
2015-12-17 19:55:43 +01:00
|
|
|
ng-model="editor.component.classification">
|
2016-08-02 16:48:31 +02:00
|
|
|
<md-radio-button class="sg-padded--right" value="public">
|
2015-12-17 19:55:43 +01:00
|
|
|
<var:string label:value="label_Public"/>
|
|
|
|
</md-radio-button>
|
2016-08-02 16:48:31 +02:00
|
|
|
<md-radio-button class="sg-padded--right" value="confidential">
|
2015-12-17 19:55:43 +01:00
|
|
|
<var:string label:value="label_Confidential"/>
|
|
|
|
</md-radio-button>
|
2016-08-02 16:48:31 +02:00
|
|
|
<md-radio-button class="sg-padded--right" value="private">
|
2015-12-17 19:55:43 +01:00
|
|
|
<var:string label:value="label_Private"/>
|
|
|
|
</md-radio-button>
|
|
|
|
</md-radio-group>
|
|
|
|
<!-- priority -->
|
|
|
|
<div class="pseudo-input-container" flex="50" flex-xs="100">
|
|
|
|
<label class="pseudo-input-label"><var:string label:value="Priority"/></label>
|
2016-04-21 23:02:07 +02:00
|
|
|
<md-slider-container>
|
|
|
|
<md-slider class="md-flex"
|
2015-12-17 19:55:43 +01:00
|
|
|
md-discrete="true"
|
|
|
|
ng-model="editor.component.priority"
|
|
|
|
step="1"
|
|
|
|
min="0"
|
|
|
|
max="9"
|
|
|
|
label:aria-label="Priority"><!-- slider --></md-slider>
|
2016-04-21 23:02:07 +02:00
|
|
|
<span>{{editor.priorityLevel()}}</span>
|
|
|
|
</md-slider-container>
|
2015-12-17 19:55:43 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- attach urls -->
|
|
|
|
<div class="attr" ng-repeat="attach in editor.component.attachUrls">
|
2016-08-02 17:20:38 +02:00
|
|
|
<div layout="row" layout-align="start center">
|
|
|
|
<md-button class="md-icon-button" type="button" ng-click="editor.component.deleteAttachUrl($index)">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
|
|
|
</md-button>
|
2015-12-17 19:55:43 +01:00
|
|
|
<md-input-container class="md-block md-flex">
|
|
|
|
<label>
|
|
|
|
<var:string label:value="URL"/>
|
|
|
|
</label>
|
|
|
|
<input type="text" ng-model="attach.value"
|
|
|
|
sg-focus-on="attachUrl_{{$index}}"/>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
2015-10-14 16:31:15 +02:00
|
|
|
</div>
|
2015-12-17 19:55:43 +01:00
|
|
|
<div class="md-layout-margin" layout="row" layout-align="start center">
|
|
|
|
<md-button class="md-icon-button" type="button" ng-click="editor.addAttachUrl($event)">
|
|
|
|
<md-icon>add_circle</md-icon>
|
2015-10-14 16:31:15 +02:00
|
|
|
</md-button>
|
2015-12-17 19:55:43 +01:00
|
|
|
<label class="button-label">
|
|
|
|
<var:string label:value="Attach"/>
|
|
|
|
</label>
|
2015-10-14 16:31:15 +02:00
|
|
|
</div>
|
2015-09-11 17:32:20 +02:00
|
|
|
</div>
|
2015-12-17 19:55:43 +01:00
|
|
|
|
|
|
|
<div class="sg-form-section">
|
|
|
|
<!-- start -->
|
|
|
|
<div ng-show="editor.component.start">
|
|
|
|
<div class="pseudo-input-container">
|
|
|
|
<label class="pseudo-input-label"><var:string label:value="From"/></label>
|
|
|
|
</div>
|
|
|
|
<div layout="row" layout-align="start center" layout-wrap="layout-wrap">
|
2016-08-02 17:20:38 +02:00
|
|
|
<md-button class="md-icon-button" type="button" ng-click="editor.component.$deleteStartDate()">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
|
|
|
</md-button>
|
2015-12-17 19:55:43 +01:00
|
|
|
<md-datepicker ng-model="editor.component.start"
|
|
|
|
ng-change="editor.updateStartTime()"
|
|
|
|
label:md-placeholder="From"> <!-- date picker--></md-datepicker>
|
|
|
|
<sg-timepicker ng-model="editor.component.start"
|
|
|
|
ng-change="editor.adjustStartTime()"><!-- time picker --></sg-timepicker>
|
|
|
|
</div>
|
2015-10-14 16:31:15 +02:00
|
|
|
</div>
|
2015-12-17 19:55:43 +01:00
|
|
|
<div class="md-layout-margin" layout="row" layout-align="start center" ng-hide="editor.component.start">
|
|
|
|
<md-button class="md-icon-button" type="button" ng-click="editor.addStartDate()">
|
|
|
|
<md-icon>add_circle</md-icon>
|
2015-10-14 16:31:15 +02:00
|
|
|
</md-button>
|
2015-12-17 19:55:43 +01:00
|
|
|
<label class="button-label"><var:string label:value="Add From"/></label>
|
|
|
|
</div>
|
|
|
|
<!-- due -->
|
|
|
|
<div ng-show="editor.component.due">
|
|
|
|
<div class="pseudo-input-container">
|
|
|
|
<label class="pseudo-input-label"><var:string label:value="Due"/></label>
|
|
|
|
</div>
|
|
|
|
<div layout="row" layout-align="start center" layout-wrap="layout-wrap">
|
2016-08-02 17:20:38 +02:00
|
|
|
<md-button class="md-icon-button" type="button" ng-click="editor.component.$deleteDueDate()">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
|
|
|
</md-button>
|
2015-12-17 19:55:43 +01:00
|
|
|
<md-datepicker ng-model="editor.component.due"
|
|
|
|
ng-change="editor.updateDueTime()"
|
2016-03-04 17:34:02 +01:00
|
|
|
label:md-placeholder="Due"><!-- date picker--></md-datepicker>
|
2015-12-17 19:55:43 +01:00
|
|
|
<sg-timepicker ng-model="editor.component.due"
|
|
|
|
ng-change="editor.adjustDueTime()"><!-- time picker --></sg-timepicker>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="md-layout-margin" layout="row" layout-align="start center" ng-hide="editor.component.due">
|
|
|
|
<md-button class="md-icon-button" type="button" ng-click="editor.addDueDate()">
|
|
|
|
<md-icon>add_circle</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<label class="button-label"><var:string label:value="Add Due"/></label>
|
|
|
|
</div>
|
|
|
|
<!-- status -->
|
2016-03-04 17:34:02 +01:00
|
|
|
<div layout="row" layout-align="start center">
|
2015-12-17 19:55:43 +01:00
|
|
|
<md-input-container flex="50">
|
|
|
|
<label><var:string label:value="Status"/></label>
|
|
|
|
<md-select ng-model="editor.component.status">
|
|
|
|
<var:foreach list="statusList" item="item">
|
|
|
|
<md-option var:value="item"><var:string value="itemStatusText"/></md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2016-03-04 17:34:02 +01:00
|
|
|
<md-datepicker ng-show="editor.component.status == 'completed'"
|
|
|
|
ng-model="editor.component.completed"
|
|
|
|
label:md-placeholder="status_COMPLETED"><!-- date picker--></md-datepicker>
|
2015-12-17 19:55:43 +01:00
|
|
|
</div>
|
|
|
|
<div layout="row" layout-align="center center"
|
|
|
|
ng-show="editor.component.enablePercentComplete()">
|
|
|
|
<md-slider class="md-flex"
|
|
|
|
md-discrete="true"
|
|
|
|
ng-model="editor.component.percentComplete"
|
|
|
|
step="5"
|
|
|
|
min="0"
|
|
|
|
max="100"
|
|
|
|
label:aria-label="% complete"><!-- slider --></md-slider>
|
2016-08-02 17:20:38 +02:00
|
|
|
<div flex="50" class="sg-padded--left">{{editor.component.percentComplete}} <var:string label:value="% complete"/></div>
|
2015-10-14 16:31:15 +02:00
|
|
|
</div>
|
2015-09-11 17:32:20 +02:00
|
|
|
</div>
|
2015-12-17 19:55:43 +01:00
|
|
|
|
2015-10-14 16:31:15 +02:00
|
|
|
</md-dialog-content>
|
|
|
|
<!-- cancel/reset/save -->
|
2015-11-27 19:00:39 +01:00
|
|
|
<md-dialog-actions>
|
2015-10-14 16:31:15 +02:00
|
|
|
<md-button type="button" ng-click="editor.cancel()">
|
|
|
|
<var:string label:value="Cancel"/>
|
|
|
|
</md-button>
|
|
|
|
<md-button type="button" ng-click="editor.component.$reset()">
|
|
|
|
<var:string label:value="Reset"/>
|
|
|
|
</md-button>
|
|
|
|
<md-button class="md-primary md-hue-3" type="submit"
|
|
|
|
ng-disabled="editor.eventForm.$invalid">
|
|
|
|
<var:string label:value="Save"/>
|
|
|
|
</md-button>
|
2015-11-27 19:00:39 +01:00
|
|
|
</md-dialog-actions>
|
2015-10-14 16:31:15 +02:00
|
|
|
</form>
|
|
|
|
</md-dialog>
|
2015-06-25 17:30:44 +02:00
|
|
|
</container>
|