2020-03-09 08:00:03 +00:00
|
|
|
<div ng-if="$ctrl.card.hasAccount">
|
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
url="MailForwards"
|
|
|
|
id-field="account"
|
|
|
|
id-value="$ctrl.$params.id"
|
2023-05-30 08:00:05 +00:00
|
|
|
data="data"
|
2020-03-09 08:00:03 +00:00
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
|
|
|
<form
|
|
|
|
name="form"
|
2023-05-30 08:00:05 +00:00
|
|
|
ng-submit="watcher.submit()"
|
2020-03-09 08:00:03 +00:00
|
|
|
class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-check
|
2023-04-25 13:17:45 +00:00
|
|
|
label="Enable mail forwarding"
|
2020-03-09 08:00:03 +00:00
|
|
|
ng-model="watcher.hasData">
|
|
|
|
</vn-check>
|
|
|
|
<vn-textfield
|
|
|
|
ng-if="watcher.hasData"
|
2023-04-25 13:17:45 +00:00
|
|
|
label="Forward email"
|
2023-05-30 08:00:05 +00:00
|
|
|
ng-model="data.forwardTo"
|
2020-03-09 08:00:03 +00:00
|
|
|
info="All emails will be forwarded to the specified address."
|
|
|
|
rule="MailForward"
|
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
2020-12-16 10:36:11 +00:00
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
|
|
|
class="cancel"
|
|
|
|
label="Undo changes"
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button>
|
|
|
|
</vn-button-bar>
|
2020-03-09 08:00:03 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
ng-if="!$ctrl.card.hasAccount"
|
|
|
|
class="bg-title"
|
|
|
|
translate>
|
|
|
|
Account not enabled
|
|
|
|
</div>
|