mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-30 06:15:42 +00:00
Add support for events with recurrence dates
This commit is contained in:
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>
|
||||
Reference in new issue
Block a user