1 <md-dialog class="internalroute-dialog" aria-label="New InternalRoute">
2 <form name="internalrouteFormApp" class="md-inline-form" novalidate>
3 <md-toolbar class="md-accent md-hue-2">
5 class="md-toolbar-tools"
7 layout-align="space-between center"
9 <span class="title">{{ vm.title | translate }}</span>
10 <md-button class="md-icon-button" ng-click="vm.closeDialog()">
12 md-font-icon="icon-close"
13 aria-label="Close dialog"
19 <md-dialog-content ms-scroll>
20 <div class="error-list">
22 ng-repeat="error in vm.errors"
25 layout-align="space-between center"
28 <span class="message">{{error.message}}</span>
29 <span class="type">({{error.type}})</span>
31 <md-button class="md-icon-button">
33 md-font-icon="icon-alert-box"
34 aria-label="alert error"
40 <md-input-container class="md-block">
41 <label translate="VOICE.MAILBOX@CONTEXT">Mailbox@Context</label>
44 ng-model="vm.voicemail.voiceMail"
47 ng-disabled="!vm.crudPermissions.canEdit"
50 ng-value="'{{voiceMail.mailbox}}@from-voicemail'"
51 ng-repeat="voiceMail in vm.voiceMails"
52 ng-disabled="voiceMail.canSelect === false"
53 >{{ voiceMail.mailbox }}</md-option
57 ng-messages="internalrouteFormApp['voiceMail'].$error"
58 ng-show="internalrouteFormApp['voiceMail'].$touched"
61 <div ng-message="required">
62 <span translate="VOICE.ERRORS.MAILBOX@CONTEXT_REQUIRED"
63 >Mailbox@Context field is required</span
68 <md-input-container class="md-block">
69 <label translate="VOICE.OPTIONS">Options</label>
73 ng-model="vm.voicemail.options"
74 ng-disabled="!vm.crudPermissions.canEdit"
78 ng-messages="internalrouteFormApp['options'].$error"
79 ng-show="internalrouteFormApp['options'].$touched"
82 <div ng-message="required">
83 <span translate="VOICE.ERRORS.OPTIONS_REQUIRED"
84 >Options field is required</span
90 <div class="error-list">
92 ng-repeat="error in vm.errors"
95 layout-align="space-between center"
98 <span class="message">{{error.message}}</span>
99 <span class="type">({{error.type}})</span>
101 <md-button class="md-icon-button">
103 md-font-icon="icon-alert-box"
104 aria-label="alert error"
112 <md-dialog-actions layout="row" layout-align="space-between center">
115 layout-align="start center"
116 ng-if="vm.crudPermissions.canEdit"
120 ng-click="vm.saveInternalRouteApp()"
121 class="send-button md-accent md-raised"
122 ng-disabled="internalrouteFormApp.$invalid || internalrouteFormApp.$pristine"
124 translate="VOICE.SAVE"
125 translate-attr-aria-label="VOICE.SAVE"