Add support for events with recurrence dates

This commit is contained in:
Francis Lachapelle committed 2017-12-15 16:18:39 -05:00
1 parent e61a55f30e
commit 7f99514744
15 files changed
+337 -48

No files matched your search

@@ -179,7 +179,10 @@
<div layout="row" layout-align="start center">
<md-input-container class="md-block md-flex">
<label><var:string label:value="Repeat"/></label>
<md-select ng-model="editor.component.repeat.frequency" ng-disabled="editor.component.occurrenceId">
<md-select
ng-model="editor.component.repeat.frequency"
ng-change="editor.changeFrequency($event)"
ng-disabled="editor.component.occurrenceId">
<var:foreach list="repeatList" item="item">
<md-option var:value="item"><var:string var:value="itemRepeatText"/></md-option>
</var:foreach>
@@ -144,4 +144,27 @@
</div>
</div>
<!-- custom (rdates) -->
<div ng-if="editor.component.repeat.frequency == 'custom'">
<label class="button-label"><var:string label:value="On"/></label>
<div layout="row" layout-align="start end" ng-repeat="rdate in editor.component.repeat.dates">
<md-button class="md-icon-button" type="button" ng-click="editor.component.$deleteRecurrenceDate($index)">
<md-icon>remove_circle</md-icon>
</md-button>
<md-datepicker
ng-model="editor.component.repeat.dates[$index]"
label:md-placeholder="On"><!-- date picker --></md-datepicker>
<sg-timepicker
ng-model="editor.component.repeat.dates[$index]"
ng-hide="editor.component.isAllDay"><!-- time picker --></sg-timepicker>
</div>
<div layout="row" layout-align="start center">
<md-button class="md-icon-button" type="button" ng-click="editor.component.$addRecurrenceDate()">
<md-icon>add_circle</md-icon>
</md-button>
<label class="button-label">
<var:string label:value="Add Recurrence Date"/>
</label>
</div>
</div>
</container>