2007-06-19 19:58:21 +02:00
|
|
|
<?xml version="1.0" standalone="yes"?>
|
|
|
|
<!DOCTYPE var:component>
|
2008-08-21 04:36:04 +02:00
|
|
|
<var:component
|
2015-02-25 23:21:07 +01:00
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:var="http://www.skyrix.com/od/binding"
|
|
|
|
xmlns:const="http://www.skyrix.com/od/constant"
|
|
|
|
xmlns:rsrc="OGo:url"
|
|
|
|
xmlns:label="OGo:label"
|
|
|
|
className="UIxPageFrame"
|
|
|
|
title="title"
|
2015-08-06 22:13:10 +02:00
|
|
|
const:jsFiles="Common.js, Preferences.js, Preferences.services.js, Mailer.services.js, Contacts.services.js, vendor/ckeditor/ckeditor.js, vendor/ckeditor/ck.js">
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-24 17:20:35 +02:00
|
|
|
<main class="view layout-fill" ui-view="preferences" layout="row"
|
2015-03-16 16:53:50 +01:00
|
|
|
ng-controller="navController"><!-- preferences --> </main>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-04-03 17:34:05 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
var mailCustomFromEnabled = <var:string value="mailCustomFromEnabled" const:escapeHTML="NO"/>;
|
2015-07-21 21:21:57 +02:00
|
|
|
var timeZonesList = <var:string value="timeZonesList" const:escapeHTML="NO"/>;
|
2015-08-18 20:57:29 +02:00
|
|
|
var defaultEmailAddresses = '<var:string value="defaultEmailAddresses" const:escapeHTML="NO"/>';
|
2015-08-18 21:25:51 +02:00
|
|
|
var forwardConstraints = <var:string value="forwardConstraints" const:escapeHTML="NO"/>;
|
2015-08-19 14:47:33 +02:00
|
|
|
var sieveCapabilities = <var:string value="sieveCapabilities" const:escapeHTML="NO"/>;
|
2015-04-03 17:34:05 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/ng-template" id="preferences.html">
|
2015-12-04 21:00:58 +01:00
|
|
|
<md-sidenav id="left-sidenav" class="md-sidenav-left md-whiteframe-z1" layout="column"
|
|
|
|
md-component-id="left" md-is-locked-open="isGtMedium"
|
|
|
|
ng-class="{ 'sg-closed': leftIsClose }">
|
2015-04-03 17:34:05 +02:00
|
|
|
<var:component className="UIxSidenavToolbarTemplate" />
|
2015-09-09 22:35:09 +02:00
|
|
|
<md-content md-scroll-y="md-scroll-y" class="md-flex md-hue-2">
|
2015-04-03 17:34:05 +02:00
|
|
|
<md-list>
|
2015-07-28 02:11:57 +02:00
|
|
|
<md-list-item ng-click="app.go('general')"
|
|
|
|
ui-sref="preferences.general"
|
2015-09-09 22:35:09 +02:00
|
|
|
ui-sref-active="md-default-theme md-background md-bg md-hue-1">
|
|
|
|
<md-icon>settings</md-icon>
|
2015-07-28 02:11:57 +02:00
|
|
|
<p class="sg-item-name"><var:string label:value="General"/></p>
|
2015-04-09 20:46:54 +02:00
|
|
|
</md-list-item>
|
2015-08-14 08:31:27 +02:00
|
|
|
<var:if condition="userHasCalendarAccess">
|
|
|
|
<md-list-item ng-click="app.go('calendars')"
|
|
|
|
ui-sref="preferences.calendars"
|
2015-09-09 22:35:09 +02:00
|
|
|
ui-sref-active="md-default-theme md-background md-bg md-hue-1">
|
|
|
|
<md-icon>event</md-icon>
|
2015-08-14 08:31:27 +02:00
|
|
|
<p class="sg-item-name"><var:string label:value="Calendar"/></p>
|
|
|
|
</md-list-item>
|
|
|
|
</var:if>
|
2015-07-28 02:11:57 +02:00
|
|
|
<md-list-item ng-click="app.go('addressbooks')"
|
|
|
|
ui-sref="preferences.addressbooks"
|
2015-09-09 22:35:09 +02:00
|
|
|
ui-sref-active="md-default-theme md-background md-bg md-hue-1">
|
|
|
|
<md-icon>contacts</md-icon>
|
2015-07-28 02:11:57 +02:00
|
|
|
<p class="sg-item-name"><var:string label:value="Contacts"/></p>
|
2015-04-09 20:46:54 +02:00
|
|
|
</md-list-item>
|
2015-08-14 08:31:27 +02:00
|
|
|
<var:if condition="userHasMailAccess">
|
|
|
|
<md-list-item ng-click="app.go('mailer')"
|
|
|
|
ui-sref="preferences.mailer"
|
2015-09-09 22:35:09 +02:00
|
|
|
ui-sref-active="md-default-theme md-background md-bg md-hue-1">
|
|
|
|
<md-icon>email</md-icon>
|
2015-08-14 08:31:27 +02:00
|
|
|
<p class="sg-item-name"><var:string label:value="Mail"/></p>
|
|
|
|
</md-list-item>
|
|
|
|
</var:if>
|
2015-04-03 17:34:05 +02:00
|
|
|
</md-list>
|
|
|
|
</md-content>
|
|
|
|
</md-sidenav>
|
|
|
|
|
2015-08-24 17:20:35 +02:00
|
|
|
<section layout="column" class="layout-fill">
|
2015-04-28 19:40:27 +02:00
|
|
|
|
2015-04-03 17:34:05 +02:00
|
|
|
<!-- TOP RIGHT TOOLBAR -->
|
|
|
|
<md-toolbar layout="row" layout-align="space-between start" class="md-tall">
|
2015-12-04 21:00:58 +01:00
|
|
|
<var:component className="UIxTopnavToolbarTemplate" />
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-button type="button" class="md-fab md-fab-bottom-right md-fab-overlap-bottom"
|
|
|
|
ng-click="app.save()">
|
|
|
|
<md-icon>save</md-icon>
|
|
|
|
</md-button>
|
2015-04-03 17:34:05 +02:00
|
|
|
</md-toolbar>
|
|
|
|
|
2015-05-19 16:55:40 +02:00
|
|
|
<md-content>
|
2015-08-14 08:31:27 +02:00
|
|
|
<div ui-view="module"><!-- view --></div>
|
2015-05-19 16:55:40 +02:00
|
|
|
</md-content>
|
2015-04-03 17:34:05 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
</script>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!--
|
|
|
|
GENERAL PREFERENCE PANEL
|
|
|
|
-->
|
|
|
|
<script type="text/ng-template" id="generalPreferences.html">
|
|
|
|
|
|
|
|
<md-tabs class="md-flex" md-border-bottom="md-border-bottom" md-dynamic-height="true">
|
|
|
|
|
|
|
|
<!-- GENERAL OPTIONS -->
|
|
|
|
<md-tab id="generalOptionsView" aria-controls="generalOptionsView-content" label:label="General">
|
|
|
|
<md-content layout="row"
|
|
|
|
aria-labelledby="generalOptionsView"
|
2015-12-07 17:08:39 +01:00
|
|
|
id="generalOptionsView-content" class="md-padding">
|
2015-08-14 08:31:27 +02:00
|
|
|
<div layout="column" flex="100">
|
|
|
|
<md-input-container>
|
|
|
|
<label><var:string label:value="SOGo Version"/></label>
|
|
|
|
<input type="text" ng-readonly="true" var:value="sogoVersion"/>
|
|
|
|
</md-input-container>
|
|
|
|
|
|
|
|
<div layout="row">
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block" flex="50">
|
|
|
|
<label><var:string label:value="Language"/></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoLanguage"
|
|
|
|
ng-change="app.onLanguageChange()">
|
|
|
|
<var:foreach list="languages" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="languageText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
|
|
|
<md-autocomplete
|
|
|
|
class="md-block" flex="50"
|
|
|
|
style="padding-bottom: 0"
|
|
|
|
md-search-text="app.timeZonesSearchText"
|
|
|
|
md-selected-item="app.preferences.defaults.SOGoTimeZone"
|
|
|
|
md-items="timezone in app.timeZonesListFilter(app.timeZonesSearchText)"
|
|
|
|
md-item-text="timezone"
|
|
|
|
md-min-length="3"
|
|
|
|
md-select-on-match="true"
|
|
|
|
label:md-floating-label="Current Time Zone">
|
|
|
|
<span md-highlight-text="app.timeZonesSearchText">{{timezone}}</span>
|
|
|
|
</md-autocomplete>
|
2015-08-14 08:31:27 +02:00
|
|
|
</div>
|
2015-07-03 17:29:40 +02:00
|
|
|
|
2015-12-23 04:05:05 +01:00
|
|
|
<div layout="row" layout-wrap="layout-wrap">
|
|
|
|
<md-input-container class="md-block" flex="30" flex-xs="100">
|
2015-12-11 21:11:53 +01:00
|
|
|
<label><var:string label:value="Short Date Format"/></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoShortDateFormat">
|
|
|
|
<var:foreach list="shortDateFormatsList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemShortDateFormatText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-12-23 04:05:05 +01:00
|
|
|
<md-input-container class="md-block" flex="40" flex-xs="100">
|
2015-12-11 21:11:53 +01:00
|
|
|
<label><var:string label:value="Long Date Format"/></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoLongDateFormat">
|
|
|
|
<var:foreach list="longDateFormatsList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemLongDateFormatText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-12-23 04:05:05 +01:00
|
|
|
<md-input-container class="md-block" flex="30" flex-xs="100">
|
2015-12-11 21:11:53 +01:00
|
|
|
<label><var:string label:value="Time Format"/></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoTimeFormat">
|
|
|
|
<var:foreach list="timeFormatsList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemTimeFormatText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-08-14 08:31:27 +02:00
|
|
|
</div>
|
2015-07-03 17:29:40 +02:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-input-container>
|
|
|
|
<label><var:string label:value="Default Module"/></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoLoginModule">
|
|
|
|
<var:foreach list="availableModules" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemModuleText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
|
|
|
|
|
|
|
<md-input-container>
|
|
|
|
<label><var:string label:value="Refresh View"/></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoRefreshViewCheck">
|
|
|
|
<var:foreach list="refreshViewList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemRefreshViewCheckText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-11-27 22:04:12 +01:00
|
|
|
|
|
|
|
<md-input-container>
|
|
|
|
<label><var:string label:value="Alternate Avatar"/></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoAlternateAvatar">
|
|
|
|
<var:foreach list="alternateAvatar" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemAlternateAvatarText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-08-14 08:31:27 +02:00
|
|
|
</div>
|
|
|
|
</md-content>
|
|
|
|
</md-tab>
|
|
|
|
|
|
|
|
<!-- PASSWORD OPTIONS -->
|
|
|
|
<var:if condition="shouldDisplayPasswordChange">
|
|
|
|
<md-tab id="generalPasswordView"
|
|
|
|
aria-controls="generalPasswordView-content"
|
|
|
|
label:label="Password">
|
2015-12-07 17:08:39 +01:00
|
|
|
<md-content id="passwordView" class="md-padding">
|
2015-08-14 08:31:27 +02:00
|
|
|
<div layout="row">
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block" flex="50">
|
2015-08-14 08:31:27 +02:00
|
|
|
<label><var:string label:value="New password"/>
|
|
|
|
</label>
|
|
|
|
<input type="password" ng-model="app.passwords.newPassword"/>
|
2015-07-03 17:29:40 +02:00
|
|
|
</md-input-container>
|
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block" flex="50">
|
2015-08-14 08:31:27 +02:00
|
|
|
<label><var:string label:value="Confirmation"/>
|
|
|
|
</label>
|
|
|
|
<input type="password" ng-model="app.passwords.newPasswordConfirmation"/>
|
2015-07-03 17:29:40 +02:00
|
|
|
</md-input-container>
|
2010-08-06 17:34:05 +02:00
|
|
|
</div>
|
2015-08-14 08:31:27 +02:00
|
|
|
<div layout="row" layout-align="end center">
|
|
|
|
<md-button ng-click="app.changePassword()" type="button" ng-disabled="!app.canChangePassword()">
|
|
|
|
<var:string label:value="Change"/>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-content>
|
|
|
|
</md-tab>
|
|
|
|
</var:if>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-tabs>
|
|
|
|
</script>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!--
|
|
|
|
CALENDAR PREFERENCE PANEL
|
|
|
|
-->
|
|
|
|
<script type="text/ng-template" id="calendarsPreferences.html">
|
|
|
|
<var:if condition="userHasCalendarAccess">
|
|
|
|
<md-tabs md-border-bottom="md-border-bottom" md-dynamic-height="true">
|
|
|
|
|
|
|
|
<!-- CALENDAR - GENERAL -->
|
|
|
|
<md-tab id="calendarOptionsView"
|
|
|
|
aria-controls="calendarOptionsView-content"
|
|
|
|
label:label="General">
|
|
|
|
<md-content layout="row" layout-align="center center"
|
|
|
|
aria-labelledby="calendarOptionsView"
|
2015-12-07 17:08:39 +01:00
|
|
|
class="md-padding"
|
2015-08-14 08:31:27 +02:00
|
|
|
id="calendarOptionsView-content">
|
|
|
|
<div layout="column" flex="100">
|
|
|
|
<div layout="row">
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block" flex="33">
|
2015-08-03 16:56:24 +02:00
|
|
|
<label><var:string label:value="Week begins on" /></label>
|
2015-07-03 17:29:40 +02:00
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoFirstDayOfWeek">
|
|
|
|
<var:foreach list="daysList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemWeekStartDay"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block" flex="33">
|
2015-08-03 16:56:24 +02:00
|
|
|
<label><var:string label:value="Day start time" /></label>
|
2015-07-03 17:29:40 +02:00
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoDayStartTime">
|
|
|
|
<var:foreach list="hoursList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="item"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block" flex="33">
|
2015-08-03 16:56:24 +02:00
|
|
|
<label><var:string label:value="Day end time" /></label>
|
2015-07-03 17:29:40 +02:00
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoDayEndTime">
|
|
|
|
<var:foreach list="hoursList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="item"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-08-14 08:31:27 +02:00
|
|
|
</div>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-checkbox
|
|
|
|
ng-model="app.preferences.defaults.SOGoBusyOffHours"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0">
|
|
|
|
<var:string label:value="Show time as busy outside working hours"/>
|
|
|
|
</md-checkbox>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-input-container>
|
|
|
|
<label><var:string label:value="First week of year"/></label>
|
|
|
|
<md-select label:aria-label="First week of year"
|
|
|
|
ng-model="app.preferences.defaults.SOGoFirstWeekOfYear">
|
|
|
|
<var:foreach list="firstWeekList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemFirstWeekText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
|
|
|
|
|
|
|
<md-input-container>
|
|
|
|
<label><var:string label:value="Default calendar" /></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoDefaultCalendar">
|
|
|
|
<var:foreach list="defaultCalendarList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemCalendarText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<div layout="row">
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block" flex="50">
|
2015-08-03 16:56:24 +02:00
|
|
|
<label><var:string label:value="Default events classification" /></label>
|
2015-07-03 17:29:40 +02:00
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoCalendarEventsDefaultClassification">
|
|
|
|
<var:foreach list="calendarClassificationsList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemClassificationText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block" flex="50">
|
2015-08-03 16:56:24 +02:00
|
|
|
<label><var:string label:value="Default tasks classification"/></label>
|
2015-07-03 17:29:40 +02:00
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoCalendarTasksDefaultClassification">
|
|
|
|
<var:foreach list="calendarClassificationsList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemClassificationText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
</div>
|
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-input-container>
|
|
|
|
<label><var:string label:value="Default reminder"/></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoCalendarDefaultReminder">
|
|
|
|
<var:foreach list="reminderValues" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemReminderText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-05-19 16:55:40 +02:00
|
|
|
</div>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-content>
|
|
|
|
</md-tab>
|
|
|
|
|
|
|
|
<!-- CALENDAR - CATEGORIES -->
|
|
|
|
<md-tab id="calendarCategories"
|
|
|
|
aria-controls="calendarCategories-content"
|
|
|
|
label:label="Categories">
|
2015-12-07 17:08:39 +01:00
|
|
|
<md-content class="md-padding">
|
2015-08-14 08:31:27 +02:00
|
|
|
<div layout="column" flex="100">
|
|
|
|
<md-list layout="row" layout-wrap="layout-wrap">
|
2015-12-09 22:52:54 +01:00
|
|
|
<md-list-item flex="50" flex-xs="100"
|
2015-08-14 08:31:27 +02:00
|
|
|
ng-repeat="item in
|
|
|
|
app.preferences.defaults.SOGoCalendarCategories
|
|
|
|
track by $index">
|
2015-10-15 21:10:37 +02:00
|
|
|
<sg-color-picker ng-model="app.preferences.defaults.SOGoCalendarCategoriesColors[item]"><!-- color picker--></sg-color-picker>
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block md-flex">
|
2015-10-15 21:10:37 +02:00
|
|
|
<input type="text" label:aria-label="Calendar Category"
|
2015-12-10 17:46:56 +01:00
|
|
|
ng-model="app.preferences.defaults.SOGoCalendarCategories[$index]"
|
|
|
|
sg-focus-on="calendarCategory_{{$index}}"/>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-input-container>
|
|
|
|
<md-button class="sg-icon-button" type="button"
|
|
|
|
layout="row" layout-align="end center"
|
|
|
|
label:aria-label="Remove Calendar Category"
|
|
|
|
ng-click="app.removeCalendarCategory($index)">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
|
|
|
</md-button>
|
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<div layout="row" layout-align="end center">
|
|
|
|
<md-button type="button"
|
|
|
|
label:aria-label="Add Calendar Category"
|
|
|
|
ng-click="app.addCalendarCategory()">
|
|
|
|
<var:string label:value="Add Calendar Category"/>
|
|
|
|
</md-button>
|
2015-02-25 23:21:07 +01:00
|
|
|
</div>
|
2010-02-22 16:12:42 +01:00
|
|
|
</div>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-content>
|
|
|
|
|
|
|
|
</md-tab>
|
|
|
|
|
|
|
|
<!-- CALENDAR - INVITATIONS -->
|
|
|
|
<md-tab id="calendarInvitationsTab"
|
|
|
|
aria-controls="calendarInvitationsTab-content"
|
|
|
|
label:label="Invitations">
|
2015-12-07 17:05:01 +01:00
|
|
|
<md-content layout="row" layout-align="space-around start"
|
|
|
|
class="md-padding"
|
|
|
|
aria-labelledby="calendarInvitationsTab"
|
|
|
|
id="calendarInvitationsTab-content">
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-07 17:05:01 +01:00
|
|
|
<div layout="column" flex="100">
|
|
|
|
<md-checkbox
|
|
|
|
ng-model="app.preferences.settings.Calendar.PreventInvitations"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0">
|
|
|
|
<var:string label:value="Prevent from being invited to appointments"/>
|
|
|
|
</md-checkbox>
|
|
|
|
<div flex-offset="5"
|
|
|
|
ng-show="app.preferences.settings.Calendar.PreventInvitations == 1">
|
|
|
|
<label>
|
|
|
|
<var:string label:value="White list for appointment invitations"/>
|
|
|
|
</label>
|
|
|
|
<md-contact-chips
|
|
|
|
flex="100"
|
|
|
|
ng-model="app.preferences.settings.Calendar.PreventInvitationsWhitelist"
|
|
|
|
md-contacts="app.userFilter($query, app.preferences.settings.Calendar.PreventInvitationsWhitelist)"
|
|
|
|
md-contact-name="cn"
|
|
|
|
md-contact-image="$$image"
|
|
|
|
md-contact-email="c_email"
|
|
|
|
md-require-match="md-require-match"
|
|
|
|
filter-selected="false"
|
|
|
|
label:placeholder="Add"><!-- users --></md-contact-chips>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</md-content>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-tab>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-tabs>
|
|
|
|
</var:if>
|
|
|
|
</script>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!--
|
|
|
|
CONTACTS PREFERENCE PANEL
|
|
|
|
-->
|
|
|
|
<script type="text/ng-template" id="addressbooksPreferences.html">
|
|
|
|
<md-content layout="row" class="md-flex">
|
|
|
|
<md-tabs class="md-flex" md-dynamic-height="true">
|
|
|
|
|
|
|
|
<!-- CONTACT > CATEGORIES -->
|
|
|
|
<md-tab id="contactsCategoriesTab" aria-controls="contactsCategoriesTab-content" label:label="Categories">
|
|
|
|
|
|
|
|
<md-content role="tabpanel" aria-labelledby="contactsCategoriesView" id="contactsCategoriesView-content">
|
|
|
|
<div layout="column" flex="100">
|
|
|
|
<md-list layout="row" layout-wrap="layout-wrap">
|
|
|
|
<md-list-item flex="50" flex-sm="100"
|
|
|
|
ng-repeat="item in
|
2015-05-06 15:02:44 +02:00
|
|
|
app.preferences.defaults.SOGoContactsCategories
|
2015-04-09 20:46:54 +02:00
|
|
|
track by $index">
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block md-flex">
|
2015-05-20 18:15:31 +02:00
|
|
|
<input type="text"
|
|
|
|
label:aria-label="Contact Category"
|
2015-12-10 17:46:56 +01:00
|
|
|
ng-model="app.preferences.defaults.SOGoContactsCategories[$index]"
|
|
|
|
sg-focus-on="contactCategory_{{$index}}"/>
|
2015-04-09 20:46:54 +02:00
|
|
|
</md-input-container>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button type="button" class="sg-icon-button"
|
2015-05-20 18:15:31 +02:00
|
|
|
label:aria-label="Remove Contact Category"
|
2015-07-04 03:40:37 +02:00
|
|
|
ng-click="app.removeContactCategory($index)">
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-icon>remove_circle</md-icon>
|
2015-04-09 20:46:54 +02:00
|
|
|
</md-button>
|
|
|
|
</md-list-item>
|
2015-02-25 23:21:07 +01:00
|
|
|
</md-list>
|
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<div layout="row" layout-align="end center">
|
|
|
|
<md-button type="button"
|
2015-05-20 18:15:31 +02:00
|
|
|
label:aria-label="Add Contact Category"
|
|
|
|
ng-click="app.addContactCategory()">
|
2015-08-14 08:31:27 +02:00
|
|
|
<var:string label:value="Add Contact Category"/>
|
2015-02-25 23:21:07 +01:00
|
|
|
</md-button>
|
2010-04-12 19:51:59 +02:00
|
|
|
</div>
|
2015-08-14 08:31:27 +02:00
|
|
|
</div>
|
|
|
|
</md-content>
|
|
|
|
|
|
|
|
</md-tab>
|
|
|
|
<!-- END OF CONTACT > CATEGORIES -->
|
|
|
|
|
|
|
|
</md-tabs>
|
|
|
|
</md-content>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
MAIL PREFERENCE PANEL
|
|
|
|
-->
|
|
|
|
<script type="text/ng-template" id="mailerPreferences.html">
|
|
|
|
<var:if condition="userHasMailAccess">
|
|
|
|
<md-tabs md-dynamic-height="true">
|
|
|
|
|
|
|
|
<!-- MAIL > GENERAL -->
|
|
|
|
<md-tab id="mailGeneralTab" aria-controls="mailGeneralTab-content" label:label="General">
|
|
|
|
<md-content role="tabpanel" aria-labelledby="mailGeneralView"
|
2015-12-07 17:08:39 +01:00
|
|
|
id="mailGeneralView-content" class="md-padding">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<md-checkbox
|
|
|
|
ng-model="app.preferences.defaults.SOGoMailShowSubscribedFoldersOnly"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0"
|
|
|
|
label:aria-label="Show subscribed mailboxes only">
|
|
|
|
<var:string label:value="Show subscribed mailboxes only"/>
|
|
|
|
</md-checkbox>
|
|
|
|
</div>
|
|
|
|
|
2016-01-07 15:24:29 +01:00
|
|
|
<div>
|
|
|
|
<md-checkbox
|
|
|
|
ng-model="app.preferences.defaults.SOGoMailSynchronizeOnlyDefaultFolders"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0"
|
|
|
|
label:aria-label="Synchronize only default mail folders (EAS)">
|
|
|
|
<var:string label:value="Synchronize only default mail folders (EAS)"/>
|
|
|
|
</md-checkbox>
|
|
|
|
</div>
|
|
|
|
|
2016-01-15 17:21:44 +01:00
|
|
|
<div class="ng-hide">
|
2015-12-07 17:08:39 +01:00
|
|
|
<md-checkbox
|
|
|
|
ng-model="app.preferences.defaults.SOGoMailSortByThreads"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0"
|
|
|
|
label:aria-label="Sort messages by threads">
|
|
|
|
<var:string label:value="Sort messages by threads"/>
|
|
|
|
</md-checkbox>
|
|
|
|
</div>
|
2015-08-14 08:31:27 +02:00
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<div>
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-checkbox
|
|
|
|
class="md-align-top-left" ng-model="app.preferences.defaults.SOGoMailAddOutgoingAddresses"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0"
|
|
|
|
label:arial-label="When sending mail, add unknown recipients to my">
|
|
|
|
<var:string label:value="When sending mail, add unknown recipients to my"/>
|
|
|
|
</md-checkbox>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-input-container>
|
|
|
|
<label><var:string label:aria-label="Address Book"/></label>
|
|
|
|
<md-select
|
|
|
|
ng-disabled="app.preferences.defaults.SOGoMailAddOutgoingAddresses == 0"
|
|
|
|
ng-model="app.preferences.defaults.SOGoSelectedAddressBook">
|
|
|
|
<var:foreach list="addressBookList" item="item">
|
|
|
|
<md-option var:value="item.id">
|
|
|
|
<var:string value="item.name"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2010-02-22 16:12:42 +01:00
|
|
|
</div>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block">
|
2015-08-14 08:31:27 +02:00
|
|
|
<label><var:string label:value="Forward messages"/></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoMailMessageForwarding">
|
|
|
|
<var:foreach list="messageForwardingList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemMessageForwardingText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<div layout="row" layout-wrap="layout-wrap">
|
|
|
|
<md-input-container class="md-block" flex="50" flex-xs="100">
|
2015-08-14 08:31:27 +02:00
|
|
|
<label><var:string label:value="When replying to a message"/></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoMailReplyPlacement">
|
|
|
|
<var:foreach list="replyPlacementList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemReplyPlacementText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block" flex="50" flex-xs="100">
|
2015-08-14 08:31:27 +02:00
|
|
|
<label><var:string label:value="And place my signature"/></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoMailSignaturePlacement">
|
|
|
|
<var:foreach list="signaturePlacementList" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemSignaturePlacementText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block">
|
2015-08-14 08:31:27 +02:00
|
|
|
<label><var:string label:value="Compose messages in"/></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoMailComposeMessageType">
|
|
|
|
<var:foreach list="composeMessagesType" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemComposeMessagesText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block">
|
2015-08-14 08:31:27 +02:00
|
|
|
<label><var:string label:value="Display remote inline images"/></label>
|
|
|
|
<md-select ng-model="app.preferences.defaults.SOGoMailDisplayRemoteInlineImages">
|
|
|
|
<var:foreach list="displayRemoteInlineImages" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="itemDisplayRemoteInlineImagesText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
|
|
|
|
|
|
|
<div layout="row" layout-align="start center">
|
2015-12-11 21:11:53 +01:00
|
|
|
<p><var:string label:value="Auto save every"/></p>
|
|
|
|
<md-input-container class="md-input-number" md-no-float="md-no-float">
|
2015-08-14 08:31:27 +02:00
|
|
|
<input type="number" min="0" label:aria-label="minutes" ng-model="preferences.defaults.SOGoMailAutoSave"/>
|
|
|
|
</md-input-container>
|
|
|
|
<var:string label:value="minutes"/>
|
|
|
|
</div>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-content>
|
|
|
|
</md-tab>
|
|
|
|
<!-- END OF MAIL > GENERAL -->
|
2015-02-25 23:21:07 +01:00
|
|
|
|
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!-- MAIL > FILTERS -->
|
|
|
|
<var:if condition="isSieveScriptsEnabled">
|
|
|
|
<md-tab id="mailFiltersTab"
|
|
|
|
aria-controls="mailFiltersTab-content"
|
|
|
|
label:label="Filters">
|
|
|
|
<div role="tabpanel" aria-labelledby="mailFiltersView"
|
|
|
|
id="mailFiltersView-content">
|
|
|
|
|
2016-01-15 17:22:17 +01:00
|
|
|
<div class="md-padding">
|
|
|
|
<div layout="row" layout-align="start center"
|
|
|
|
ng-repeat="item in
|
|
|
|
app.preferences.defaults.SOGoSieveFilters
|
|
|
|
track by $index">
|
2015-02-25 23:21:07 +01:00
|
|
|
<md-checkbox
|
2016-01-15 17:22:17 +01:00
|
|
|
style="margin-bottom: 0;"
|
2015-08-14 08:31:27 +02:00
|
|
|
ng-model="app.preferences.defaults.SOGoSieveFilters[$index].active"
|
2015-02-25 23:21:07 +01:00
|
|
|
ng-true-value="1"
|
2015-08-14 08:31:27 +02:00
|
|
|
ng-false-value="0">
|
|
|
|
<!-- active or not-->
|
2015-02-25 23:21:07 +01:00
|
|
|
</md-checkbox>
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-flex">
|
2015-08-14 08:31:27 +02:00
|
|
|
<input type="text" ng-model="app.preferences.defaults.SOGoSieveFilters[$index].name"/>
|
2015-07-03 17:29:40 +02:00
|
|
|
</md-input-container>
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-button class="sg-icon-button" type="button"
|
2015-10-05 16:45:30 +02:00
|
|
|
ng-click="app.editMailFilter($event, $index)"
|
2015-08-14 08:31:27 +02:00
|
|
|
layout="row" layout-align="end center"
|
|
|
|
label:aria-label="Edit Filter">
|
|
|
|
<md-icon>edit</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-button class="sg-icon-button" type="button"
|
|
|
|
ng-click="app.removeMailFilter($index)"
|
|
|
|
layout="row" layout-align="end center"
|
|
|
|
label:aria-label="Delete Filter">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
|
|
|
</md-button>
|
2016-01-15 17:22:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!-- FIXME: move up/down to be replaced by DnD? -->
|
|
|
|
<div layout="row" layout-align="end center">
|
|
|
|
<md-button type="button"
|
|
|
|
ng-click="app.addMailFilter($event)"
|
|
|
|
label:aria-label="Create Filter">
|
|
|
|
<var:string label:value="Create Filter"/>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</md-tab>
|
|
|
|
</var:if>
|
|
|
|
<!-- END OF MAIL > FILTERS -->
|
|
|
|
|
|
|
|
<!-- MAIL > LABELS -->
|
|
|
|
<md-tab id="mailLabelsTab"
|
|
|
|
aria-controls="mailLabelsTab-content" label:label="Labels">
|
|
|
|
|
|
|
|
<md-content role="tabpanel" aria-labelledby="mailLabelsView"
|
2015-12-07 17:08:39 +01:00
|
|
|
id="mailLabelsView-content" class="md-padding">
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-list layout="row" layout-xs="column" layout-wrap="layout-wrap">
|
|
|
|
<md-list-item flex="50" flex-xs="100"
|
2015-08-14 08:31:27 +02:00
|
|
|
ng-repeat="(key, value) in
|
|
|
|
app.preferences.defaults.SOGoMailLabelsColors">
|
2015-10-15 21:10:37 +02:00
|
|
|
<sg-color-picker ng-model="value[1]"><!-- color picker--></sg-color-picker>
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block md-flex">
|
2015-08-14 08:31:27 +02:00
|
|
|
<input type="text"
|
|
|
|
label:aria-label="Label"
|
|
|
|
ng-model="value[0]"/>
|
2015-07-03 17:29:40 +02:00
|
|
|
</md-input-container>
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-button class="md-icon-button" type="button"
|
2015-08-14 08:31:27 +02:00
|
|
|
layout="row" layout-align="end center"
|
|
|
|
label:aria-label="Delete Label"
|
|
|
|
ng-click="app.removeMailLabel(key)">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
|
|
|
</md-button>
|
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<div layout="row" layout-align="end center">
|
|
|
|
<md-button type="button"
|
|
|
|
label:aria-label="Create Label"
|
|
|
|
ng-click="app.addMailLabel()">
|
|
|
|
<var:string label:value="Create Label"/>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-content>
|
|
|
|
</md-tab>
|
|
|
|
<!-- END OF MAIL > LABELS -->
|
|
|
|
|
|
|
|
<!-- MAIL > ACCOUNTS -->
|
|
|
|
<md-tab id="mailAccountsTab"
|
|
|
|
aria-controls="mailAccountsTab-content"
|
2015-10-14 16:31:15 +02:00
|
|
|
label:label="IMAP Accounts">
|
2015-08-14 08:31:27 +02:00
|
|
|
|
2015-12-07 17:08:39 +01:00
|
|
|
<md-list class="md-padding">
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-list-item ng-repeat="item in
|
|
|
|
app.preferences.defaults.AuxiliaryMailAccounts
|
|
|
|
track by $index">
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block md-flex">
|
2015-08-14 08:31:27 +02:00
|
|
|
<input type="text"
|
|
|
|
label:aria-label="Mail Account"
|
|
|
|
ng-model="app.preferences.defaults.AuxiliaryMailAccounts[$index].name"
|
|
|
|
ng-readonly="$index == 0"/>
|
|
|
|
</md-input-container>
|
|
|
|
<md-button class="sg-icon-button" type="button"
|
|
|
|
ng-click="app.editMailAccount($event, $index)"
|
|
|
|
layout="row"
|
|
|
|
layout-align="end center"
|
|
|
|
label:aria-label="Edit Account">
|
|
|
|
<md-icon>edit</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-button class="sg-icon-button" type="button"
|
|
|
|
ng-click="app.removeMailAccount($index)"
|
|
|
|
ng-show="$index > 0"
|
|
|
|
layout="row"
|
|
|
|
layout-align="end center"
|
|
|
|
label:aria-label="Delete Account">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
|
|
|
</md-button>
|
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
|
|
|
|
<var:if condition="mailAuxiliaryUserAccountsEnabled">
|
|
|
|
<div layout="row" layout-align="end center">
|
|
|
|
<md-button type="button"
|
|
|
|
ng-click="app.addMailAccount()"
|
|
|
|
label:aria-label="Create Account">
|
|
|
|
<var:string label:value="New Mail Account"/>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</var:if>
|
|
|
|
|
|
|
|
</md-tab>
|
|
|
|
<!-- END OF MAIL > ACCOUNTS -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- MAIL > VACATION -->
|
|
|
|
<var:if condition="isVacationEnabled">
|
|
|
|
<md-tab id="mailVacationTab" aria-controls="mailVacationTab-content" label:label="Vacation">
|
|
|
|
<div role="tabpanel" aria-labelledby="mailVacationView"
|
2015-12-07 17:08:39 +01:00
|
|
|
id="mailVacationView-content" class="md-padding">
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-checkbox
|
|
|
|
ng-model="app.preferences.defaults.Vacation.enabled"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0"
|
|
|
|
label:aria-label="Enable vacation auto reply">
|
|
|
|
<var:string label:value="Enable vacation auto reply"/>
|
|
|
|
</md-checkbox>
|
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<div layout="column" flex-offset="5" ng-show="app.preferences.defaults.Vacation.enabled == 1">
|
|
|
|
<md-input-container class="md-block md-flex">
|
2015-08-14 08:31:27 +02:00
|
|
|
<label><var:string label:value="Auto reply message"/></label>
|
|
|
|
<textarea const:name="autoReplyText"
|
|
|
|
const:id="autoReplyText"
|
|
|
|
ng-model="app.preferences.defaults.Vacation.autoReplyText"/>
|
2015-07-03 17:29:40 +02:00
|
|
|
</md-input-container>
|
2015-08-14 08:31:27 +02:00
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<div layout="row" layout-align="start center">
|
|
|
|
<md-input-container class="md-block md-flex">
|
|
|
|
<label><var:string label:value="Email addresses (separated by commas)"/></label>
|
|
|
|
<textarea const:name="autoReplyEmailAddresses"
|
|
|
|
required="required"
|
|
|
|
const:id="autoReplyEmailAddresses"
|
|
|
|
ng-model="app.preferences.defaults.Vacation.autoReplyEmailAddresses"/>
|
|
|
|
</md-input-container>
|
2015-08-18 20:57:29 +02:00
|
|
|
<md-button ng-click="app.addDefaultEmailAddresses()">
|
2015-08-14 08:31:27 +02:00
|
|
|
<var:string label:value="Add default email addresses" type="button"/>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block md-flex">
|
2015-08-14 08:31:27 +02:00
|
|
|
<label><var:string label:value="Days between responses"/></label>
|
|
|
|
<md-select label:aria-label="Days between responses"
|
|
|
|
ng-model="app.preferences.defaults.Vacation.daysBetweenResponse">
|
|
|
|
<var:foreach list="daysBetweenResponsesList" item="item">
|
2015-07-03 17:29:40 +02:00
|
|
|
<md-option var:value="item">
|
2015-08-14 08:31:27 +02:00
|
|
|
<var:string value="item"/>
|
2015-07-03 17:29:40 +02:00
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-07 17:08:39 +01:00
|
|
|
<div>
|
|
|
|
<md-checkbox
|
|
|
|
ng-model="app.preferences.defaults.Vacation.ignoreLists"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0">
|
|
|
|
<var:string label:value="Do not send responses to mailing lists" />
|
|
|
|
</md-checkbox>
|
|
|
|
</div>
|
2015-04-28 19:40:27 +02:00
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<div layout="row">
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-checkbox
|
|
|
|
ng-model="app.preferences.defaults.Vacation.endDateEnabled"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0">
|
|
|
|
<var:string label:value="Disable auto reply on" />
|
|
|
|
</md-checkbox>
|
|
|
|
<md-datepicker
|
|
|
|
ng-disabled="app.preferences.defaults.Vacation.endDateEnabled == 0"
|
|
|
|
ng-model="app.preferences.defaults.Vacation.endDate"><!-- datepicker --></md-datepicker>
|
2015-03-26 18:37:44 +01:00
|
|
|
</div>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-07 17:08:39 +01:00
|
|
|
<div>
|
|
|
|
<md-checkbox
|
|
|
|
ng-model="app.preferences.defaults.Vacation.alwaysSend"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0">
|
|
|
|
<var:string label:value="Always send vacation message response"/>
|
|
|
|
</md-checkbox>
|
|
|
|
</div>
|
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</md-tab>
|
|
|
|
</var:if>
|
|
|
|
<!-- END OF MAIL > VACATION -->
|
|
|
|
|
|
|
|
<!-- MAIL > FORWARD -->
|
|
|
|
<var:if condition="isForwardEnabled">
|
|
|
|
<md-tab id="mailForwardTab" aria-controls="mailForwardTab-content" label:label="Forward">
|
|
|
|
<div role="tabpanel" aria-labelledby="mailForwardView"
|
2015-12-07 17:08:39 +01:00
|
|
|
id="mailForwardView-content" class="md-padding">
|
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-checkbox
|
|
|
|
ng-model="app.preferences.defaults.Forward.enabled"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0">
|
|
|
|
<var:string label:value="Forward incoming messages"/>
|
|
|
|
</md-checkbox>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-07 17:08:39 +01:00
|
|
|
<div flex-offset="5" ng-show="app.preferences.defaults.Forward.enabled == 1">
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block md-flex">
|
2015-08-14 08:31:27 +02:00
|
|
|
<label><var:string label:value="Email addresses (separated by commas)"/></label>
|
|
|
|
<textarea const:name="forwardAddress"
|
|
|
|
const:id="forwardAddress"
|
|
|
|
ng-model="app.preferences.defaults.Forward.forwardAddress" />
|
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-07 17:08:39 +01:00
|
|
|
<div>
|
|
|
|
<md-checkbox
|
|
|
|
ng-model="app.preferences.defaults.Forward.keepCopy"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0">
|
|
|
|
<var:string label:value="Keep a copy" />
|
|
|
|
</md-checkbox>
|
|
|
|
</div>
|
2015-04-28 19:40:27 +02:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</md-tab>
|
|
|
|
</var:if>
|
|
|
|
<!-- END OF MAIL > FORWARD -->
|
2015-06-19 20:52:00 +02:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-tabs>
|
|
|
|
</var:if>
|
|
|
|
</script>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2007-06-19 19:58:21 +02:00
|
|
|
</var:component>
|