2020-03-09 08:00:03 +00:00
|
|
|
<div ng-if="$ctrl.card.hasAccount">
|
|
|
|
<vn-data-viewer
|
|
|
|
data="data"
|
|
|
|
class="vn-w-xs">
|
|
|
|
<vn-card>
|
|
|
|
<vn-list class="separated">
|
|
|
|
<vn-item ng-repeat="row in data | orderBy:'alias.alias'">
|
|
|
|
<vn-item-section>
|
|
|
|
<div>
|
|
|
|
{{::row.alias.alias}}
|
|
|
|
</div>
|
|
|
|
<div class="text-caption text-secondary">
|
|
|
|
{{::row.alias.description}}
|
|
|
|
</div>
|
|
|
|
</vn-item-section>
|
|
|
|
<vn-item-section side>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="delete"
|
|
|
|
translate-attr="{title: 'Unsubscribe'}"
|
2023-07-11 10:33:44 +00:00
|
|
|
ng-click="removeConfirm.show(row)">
|
2020-03-09 08:00:03 +00:00
|
|
|
</vn-icon-button>
|
|
|
|
</vn-item-section>
|
|
|
|
</vn-item>
|
|
|
|
</vn-list>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
|
|
|
<vn-float-button
|
|
|
|
icon="add"
|
|
|
|
translate-attr="{title: 'Add'}"
|
|
|
|
vn-bind="+"
|
|
|
|
ng-click="$ctrl.onAddClick()"
|
2023-07-11 10:33:44 +00:00
|
|
|
fixed-bottom-right>
|
2020-03-09 08:00:03 +00:00
|
|
|
</vn-float-button>
|
2023-04-25 13:17:45 +00:00
|
|
|
<vn-dialog
|
2020-03-09 08:00:03 +00:00
|
|
|
vn-id="dialog"
|
|
|
|
on-accept="$ctrl.onAddSave()">
|
|
|
|
<tpl-body>
|
|
|
|
<vn-autocomplete
|
|
|
|
label="Alias"
|
|
|
|
ng-model="$ctrl.addData.mailAlias"
|
|
|
|
url="MailAliases"
|
|
|
|
show-field="alias"
|
|
|
|
vn-focus>
|
|
|
|
</vn-autocomplete>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Save</button>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|
2023-04-25 13:17:45 +00:00
|
|
|
<vn-confirm
|
2020-03-09 08:00:03 +00:00
|
|
|
vn-id="removeConfirm"
|
|
|
|
message="User will be removed from alias"
|
|
|
|
question="Are you sure you want to continue?"
|
|
|
|
on-accept="$ctrl.onRemove($data)">
|
|
|
|
</vn-confirm>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
ng-if="!$ctrl.card.hasAccount"
|
|
|
|
class="bg-title"
|
|
|
|
translate>
|
|
|
|
Account not enabled
|
|
|
|
</div>
|