2015-02-25 23:21:07 +01:00
|
|
|
<?xml version="1.0" standalone="yes"?>
|
2015-12-09 15:42:10 +01:00
|
|
|
<!DOCTYPE container>
|
|
|
|
<container
|
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:label="OGo:label"
|
2015-12-09 15:42:10 +01:00
|
|
|
xmlns:rsrc="OGo:url"
|
|
|
|
xmlns:uix="OGo:uix"><var:string var:value="doctype" const:escapeHTML="NO" />
|
2015-12-09 22:52:54 +01:00
|
|
|
<md-dialog flex="50" flex-sm="80" flex-xs="100">
|
2015-09-04 16:31:40 +02:00
|
|
|
<md-toolbar>
|
2015-08-24 17:26:00 +02:00
|
|
|
<div class="md-toolbar-tools">
|
|
|
|
<md-icon class="material-icons sg-icon-toolbar-bg">account_box</md-icon>
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block md-flex">
|
2015-07-31 19:54:03 +02:00
|
|
|
<label><var:string label:value="Account Name"/></label>
|
2015-03-27 20:33:44 +01:00
|
|
|
<input type="text" required="required"
|
2016-10-21 16:49:09 +02:00
|
|
|
md-autofocus="true"
|
2015-08-06 22:13:10 +02:00
|
|
|
ng-readonly="$AccountDialogController.accountId == 0"
|
|
|
|
ng-model="$AccountDialogController.account.name"/>
|
2015-02-25 23:21:07 +01:00
|
|
|
</md-input-container>
|
2015-08-24 17:26:00 +02:00
|
|
|
</div>
|
|
|
|
</md-toolbar>
|
2015-10-14 16:31:15 +02:00
|
|
|
<md-dialog-content class="md-dialog-content">
|
2015-08-24 17:26:00 +02:00
|
|
|
|
2016-04-06 04:29:52 +02:00
|
|
|
<form id="accountForm" name="accountForm" var:href="ownPath">
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<div layout="row">
|
|
|
|
<md-input-container class="md-block md-flex">
|
|
|
|
<label><var:string label:value="Server Name"/></label>
|
|
|
|
<input type="text" required="required"
|
|
|
|
ng-disabled="$AccountDialogController.accountId == 0"
|
|
|
|
ng-model="$AccountDialogController.account.serverName"/>
|
|
|
|
</md-input-container>
|
|
|
|
|
|
|
|
<md-input-container class="md-block" flex="30">
|
|
|
|
<label><var:string label:value="Port"/></label>
|
2016-10-21 16:49:09 +02:00
|
|
|
<input type="number" min="1" max="65535"
|
2015-12-11 21:11:53 +01:00
|
|
|
ng-disabled="$AccountDialogController.accountId == 0"
|
2016-10-21 16:49:09 +02:00
|
|
|
ng-model="$AccountDialogController.account.port"
|
|
|
|
placeholder=""
|
|
|
|
sg-placeholder="$AccountDialogController.defaultPort"/>
|
2015-12-11 21:11:53 +01:00
|
|
|
</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 md-input-has-value">
|
|
|
|
<label><var:string label:value="Encryption"/></label>
|
|
|
|
<md-radio-group ng-model="$AccountDialogController.account.encryption">
|
2016-10-21 16:49:09 +02:00
|
|
|
<div layout="row" layout-align="space-around">
|
|
|
|
<div>
|
|
|
|
<md-radio-button
|
|
|
|
ng-click="$AccountDialogController.defaultPort = 143"
|
|
|
|
ng-disabled="$AccountDialogController.accountId == 0"
|
|
|
|
value="none" class="md-primary"><var:string label:value="None"/></md-radio-button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<md-radio-button
|
|
|
|
ng-click="$AccountDialogController.defaultPort = 993"
|
|
|
|
ng-disabled="$AccountDialogController.accountId == 0"
|
|
|
|
value="ssl"><var:string label:value="SSL"/></md-radio-button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<md-radio-button
|
|
|
|
ng-click="$AccountDialogController.defaultPort = 143"
|
|
|
|
ng-disabled="$AccountDialogController.accountId == 0"
|
|
|
|
value="tls"><var:string label:value="TLS"/></md-radio-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-12-11 21:11:53 +01:00
|
|
|
</md-radio-group>
|
2015-02-25 23:21:07 +01:00
|
|
|
</md-input-container>
|
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<div layout="row">
|
|
|
|
<md-input-container class="md-block" flex="50">
|
|
|
|
<label><var:string label:value="User Name"/></label>
|
|
|
|
<input type="text" required="required"
|
|
|
|
ng-disabled="$AccountDialogController.accountId == 0"
|
|
|
|
ng-model="$AccountDialogController.account.userName"/>
|
|
|
|
</md-input-container>
|
|
|
|
|
|
|
|
<md-input-container class="md-block" flex="50"
|
|
|
|
ng-hide="$AccountDialogController.accountId == 0">
|
|
|
|
<label><var:string label:value="Password"/></label>
|
|
|
|
<input type="password"
|
|
|
|
ng-model="$AccountDialogController.account.password"/>
|
|
|
|
</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 md-flex">
|
2015-07-31 19:54:03 +02:00
|
|
|
<label><var:string label:value="Full Name"/></label>
|
2015-03-28 00:03:58 +01:00
|
|
|
<input type="text" required="required"
|
2015-12-11 21:11:53 +01:00
|
|
|
ng-disabled="$AccountDialogController.customFromIsReadonly()"
|
2015-08-06 22:13:10 +02:00
|
|
|
ng-model="$AccountDialogController.account.identities[0].fullName"/>
|
2015-02-25 23:21:07 +01:00
|
|
|
</md-input-container>
|
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<div layout="row">
|
|
|
|
<md-input-container class="md-block" flex="50">
|
|
|
|
<label><var:string label:value="Email"/></label>
|
|
|
|
<input type="email" required="required"
|
|
|
|
ng-disabled="$AccountDialogController.customFromIsReadonly()"
|
|
|
|
ng-model="$AccountDialogController.account.identities[0].email"/>
|
|
|
|
</md-input-container>
|
|
|
|
<md-input-container class="md-block" flex="50"
|
|
|
|
ng-hide="$AccountDialogController.customFromIsReadonly()">
|
|
|
|
<label><var:string label:value="Reply To Email"/></label>
|
|
|
|
<input type="email"
|
|
|
|
ng-model="$AccountDialogController.account.identities[0].replyTo"/>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-06 22:13:10 +02:00
|
|
|
<!-- To switch between a simple text editor and the CK/HTML editor, we use a ng-if and not
|
|
|
|
a ng-class as it doesn't get initialized by the ckEditor class directive -->
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block md-flex"
|
|
|
|
ng-if="$AccountDialogController.defaults.SOGoMailComposeMessageType == 'text'">
|
|
|
|
<label><var:string label:value="Signature"/></label>
|
2015-08-06 22:13:10 +02:00
|
|
|
<textarea ng-model="$AccountDialogController.account.identities[0].signature"><!-- signature --></textarea>
|
|
|
|
</md-input-container>
|
|
|
|
<div class="pseudo-input-container"
|
|
|
|
ng-if="$AccountDialogController.defaults.SOGoMailComposeMessageType == 'html'">
|
2015-12-11 21:11:53 +01:00
|
|
|
<label class="pseudo-input-label"><var:string label:value="Signature"/></label>
|
2015-08-06 22:13:10 +02:00
|
|
|
<textarea class="ck-editor"
|
|
|
|
ck-locale="$AccountDialogController.defaults.LocaleCode"
|
|
|
|
ck-options="{ 'height': '70px',
|
|
|
|
'toolbar': [['Bold', 'Italic', '-', 'Link',
|
|
|
|
'Font','FontSize','-','TextColor',
|
|
|
|
'BGColor']] }"
|
|
|
|
ng-model="$AccountDialogController.account.identities[0].signature"><!-- signature --></textarea>
|
|
|
|
</div>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-block md-input-has-value">
|
2015-07-31 19:54:03 +02:00
|
|
|
<label><var:string label:value="When I receive a request for a return receipt"/></label>
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-radio-group ng-model="$AccountDialogController.account.receipts.receiptAction">
|
|
|
|
<md-radio-button value="ignore"><var:string label:value="Never send a return receipt"/></md-radio-button>
|
|
|
|
<md-radio-button value="allow"><var:string label:value="Allow return receipts for some messages"/></md-radio-button>
|
|
|
|
</md-radio-group>
|
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-12-11 21:11:53 +01:00
|
|
|
<div layout="column" flex-offset="5"
|
|
|
|
ng-show="$AccountDialogController.account.receipts.receiptAction == 'allow'">
|
|
|
|
<md-input-container class="md-block md-flex">
|
|
|
|
<label><var:string label:value="If I'm not in the To or Cc of the message"/></label>
|
|
|
|
<md-select ng-model="$AccountDialogController.account.receipts.receiptNonRecipientAction">
|
|
|
|
<md-option const:value="ignore"><var:string label:value="Never send"/></md-option>
|
|
|
|
<md-option const:value="send"><var:string label:value="Always send"/></md-option>
|
|
|
|
<md-option const:value="ask"><var:string label:value="Ask me"/></md-option>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
|
|
|
|
|
|
|
<md-input-container class="md-block md-flex">
|
|
|
|
<label><var:string label:value="If the sender is outside my domain"/></label>
|
|
|
|
<md-select ng-model="$AccountDialogController.account.receipts.receiptOutsideDomainAction">
|
|
|
|
<md-option const:value="ignore"><var:string label:value="Never send"/></md-option>
|
|
|
|
<md-option const:value="send"><var:string label:value="Always send"/></md-option>
|
|
|
|
<md-option const:value="ask"><var:string label:value="Ask me"/></md-option>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
|
|
|
|
|
|
|
<md-input-container class="md-block md-flex">
|
|
|
|
<label><var:string label:value="In all other cases"/></label>
|
|
|
|
<md-select ng-model="$AccountDialogController.account.receipts.receiptAnyAction">
|
|
|
|
<md-option const:value="ignore"><var:string label:value="Never send"/></md-option>
|
|
|
|
<md-option const:value="send"><var:string label:value="Always send"/></md-option>
|
|
|
|
<md-option const:value="ask"><var:string label:value="Ask me"/></md-option>
|
2016-03-01 15:54:01 +01:00
|
|
|
</md-select>
|
2015-12-11 21:11:53 +01:00
|
|
|
</md-input-container>
|
|
|
|
</div>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
|
|
|
</form>
|
2015-04-27 19:33:26 +02:00
|
|
|
</md-dialog-content>
|
2015-11-27 19:00:39 +01:00
|
|
|
<md-dialog-actions>
|
2016-03-01 15:54:01 +01:00
|
|
|
<md-button type="button" ng-click="$AccountDialogController.cancel()"><var:string label:value="Cancel"/></md-button>
|
2016-08-30 23:49:17 +02:00
|
|
|
<md-button aria-label="{{::'OK' | loc}}"
|
|
|
|
ng-disabled="accountForm.$invalid"
|
2016-03-01 15:54:01 +01:00
|
|
|
ng-click="$AccountDialogController.save()"
|
|
|
|
ng-bind="::'OK' | loc"><!-- OK --></md-button>
|
2015-11-27 19:00:39 +01:00
|
|
|
</md-dialog-actions>
|
2015-02-25 23:21:07 +01:00
|
|
|
</md-dialog>
|
2015-12-09 15:49:27 +01:00
|
|
|
</container>
|