salix/modules/account/front/mail-forwarding/index.html

50 lines
1.4 KiB
HTML
Raw Normal View History

<div ng-if="$ctrl.card.hasAccount">
<vn-watcher
vn-id="watcher"
url="MailForwards"
id-field="account"
id-value="$ctrl.$params.id"
data="data"
form="form">
</vn-watcher>
<form
name="form"
ng-submit="watcher.submit()"
class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-vertical>
<vn-check
label="Enable mail forwarding"
ng-model="watcher.hasData">
</vn-check>
<vn-textfield
ng-if="watcher.hasData"
label="Forward email"
ng-model="data.forwardTo"
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>
</form>
</div>
<div
ng-if="!$ctrl.card.hasAccount"
class="bg-title"
translate>
Account not enabled
</div>