1 <md-dialog class="outboundroute-dialog" aria-label="New OutboundRoute">
2 <form name="outboundrouteFormApp" 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.TRUNK">Trunk</label>
44 ng-model="vm.outbounddial.trunk"
47 ng-disabled="!vm.crudPermissions.canEdit"
51 ng-repeat="trunk in vm.trunks"
52 ng-disabled="trunk.canSelect === false"
53 >{{ trunk.name }}</md-option
57 ng-messages="outboundrouteFormApp['trunk'].$error"
58 ng-show="outboundrouteFormApp['trunk'].$touched"
61 <div ng-message="required">
62 <span translate="VOICE.ERRORS.TRUNK_REQUIRED"
63 >Trunk field is required</span
68 <md-input-container class="md-block">
69 <label translate="VOICE.CALLER_ID">Caller_ID</label>
73 ng-model="vm.outbounddial.callerID"
74 ng-disabled="!vm.crudPermissions.canEdit"
77 <div class="hint"><span translate="VOICE.HELP.CALLER_ID"></span></div>
79 ng-messages="outboundrouteFormApp['callerID'].$error"
80 ng-show="outboundrouteFormApp['callerID'].$touched"
83 <div ng-message="required">
84 <span translate="VOICE.ERRORS.CALLER_ID_REQUIRED"
85 >Caller_ID field is required</span
90 <md-input-container class="md-block">
91 <label translate="VOICE.PREFIX">Prefix</label>
95 ng-model="vm.outbounddial.prefix"
96 ng-disabled="!vm.crudPermissions.canEdit"
100 ng-messages="outboundrouteFormApp['prefix'].$error"
101 ng-show="outboundrouteFormApp['prefix'].$touched"
104 <div ng-message="required">
105 <span translate="VOICE.ERRORS.PREFIX_REQUIRED"
106 >Prefix field is required</span
110 </md-input-container>
111 <md-input-container class="md-block">
112 <label translate="VOICE.TAGS">Tags</label>
115 ng-model="vm.outbounddial.tag"
116 ng-disabled="!vm.crudPermissions.canEdit"
118 <md-option ng-value="'--'">None</md-option>
121 ng-repeat="tag in vm.tags"
122 ng-disabled="tag.canSelect === false"
123 >{{ tag.name }}</md-option
127 ng-messages="outboundrouteFormApp['tag'].$error"
128 ng-show="outboundrouteFormApp['tag'].$touched"
131 <div ng-message="required">
132 <span translate="VOICE.ERRORS.TAGS_REQUIRED"
133 >Tags field is required</span
137 </md-input-container>
138 <md-input-container class="md-block">
139 <label translate="VOICE.TIMEOUT">Timeout</label>
143 ng-model="vm.outbounddial.timeout"
145 ng-disabled="!vm.crudPermissions.canEdit"
149 ng-messages="outboundrouteFormApp['timeout'].$error"
150 ng-show="outboundrouteFormApp['timeout'].$touched"
153 <div ng-message="required">
154 <span translate="VOICE.ERRORS.TIMEOUT_REQUIRED"
155 >Timeout field is required</span
158 <div ng-message="min">
160 translate="VOICE.ERRORS.TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO"
161 >Timeout must be a valid greater or equal than</span
166 </md-input-container>
167 <md-input-container class="md-block">
168 <label translate="VOICE.OPTIONS">Options</label>
172 ng-model="vm.outbounddial.options"
173 ng-disabled="!vm.crudPermissions.canEdit"
177 ng-messages="outboundrouteFormApp['options'].$error"
178 ng-show="outboundrouteFormApp['options'].$touched"
181 <div ng-message="required">
182 <span translate="VOICE.ERRORS.OPTIONS_REQUIRED"
183 >Options field is required</span
187 </md-input-container>
188 <md-input-container class="md-block">
189 <label translate="VOICE.URL">Url</label>
193 ng-model="vm.outbounddial.url"
194 ng-disabled="!vm.crudPermissions.canEdit"
198 ng-messages="outboundrouteFormApp['url'].$error"
199 ng-show="outboundrouteFormApp['url'].$touched"
202 <div ng-message="required">
203 <span translate="VOICE.ERRORS.URL_REQUIRED"
204 >Url field is required</span
208 </md-input-container>
210 <div class="error-list">
212 ng-repeat="error in vm.errors"
215 layout-align="space-between center"
218 <span class="message">{{error.message}}</span>
219 <span class="type">({{error.type}})</span>
221 <md-button class="md-icon-button">
223 md-font-icon="icon-alert-box"
224 aria-label="alert error"
232 <md-dialog-actions layout="row" layout-align="space-between center">
235 layout-align="start center"
236 ng-if="vm.crudPermissions.canEdit"
240 ng-click="vm.saveOutboundRouteApp()"
241 class="send-button md-accent md-raised"
242 ng-disabled="outboundrouteFormApp.$invalid || outboundrouteFormApp.$pristine"
244 translate="VOICE.SAVE"
245 translate-attr-aria-label="VOICE.SAVE"