1 <md-dialog class="inboundroute-dialog" aria-label="New InboundRoute">
2 <form name="inboundrouteFormApp" 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.externaldial.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="inboundrouteFormApp['trunk'].$error"
58 ng-show="inboundrouteFormApp['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.PHONE">Phone</label>
73 ng-model="vm.externaldial.phone"
75 ng-disabled="!vm.crudPermissions.canEdit"
79 ng-messages="inboundrouteFormApp['phone'].$error"
80 ng-show="inboundrouteFormApp['phone'].$touched"
83 <div ng-message="required">
84 <span translate="VOICE.ERRORS.PHONE_REQUIRED"
85 >Phone field is required</span
90 <md-input-container class="md-block">
91 <label translate="VOICE.TIMEOUT">Timeout</label>
95 ng-model="vm.externaldial.timeout"
97 ng-disabled="!vm.crudPermissions.canEdit"
101 ng-messages="inboundrouteFormApp['timeout'].$error"
102 ng-show="inboundrouteFormApp['timeout'].$touched"
105 <div ng-message="required">
106 <span translate="VOICE.ERRORS.TIMEOUT_REQUIRED"
107 >Timeout field is required</span
110 <div ng-message="min">
112 translate="VOICE.ERRORS.TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO"
113 >Timeout must be a valid greater or equal than</span
118 </md-input-container>
119 <md-input-container class="md-block">
120 <label translate="VOICE.OPTIONS">Options</label>
124 ng-model="vm.externaldial.options"
125 ng-disabled="!vm.crudPermissions.canEdit"
129 ng-messages="inboundrouteFormApp['options'].$error"
130 ng-show="inboundrouteFormApp['options'].$touched"
133 <div ng-message="required">
134 <span translate="VOICE.ERRORS.OPTIONS_REQUIRED"
135 >Options field is required</span
139 </md-input-container>
140 <md-input-container class="md-block">
141 <label translate="VOICE.URL">Url</label>
145 ng-model="vm.externaldial.url"
146 ng-disabled="!vm.crudPermissions.canEdit"
150 ng-messages="inboundrouteFormApp['url'].$error"
151 ng-show="inboundrouteFormApp['url'].$touched"
154 <div ng-message="required">
155 <span translate="VOICE.ERRORS.URL_REQUIRED"
156 >Url field is required</span
160 </md-input-container>
162 <div class="error-list">
164 ng-repeat="error in vm.errors"
167 layout-align="space-between center"
170 <span class="message">{{error.message}}</span>
171 <span class="type">({{error.type}})</span>
173 <md-button class="md-icon-button">
175 md-font-icon="icon-alert-box"
176 aria-label="alert error"
184 <md-dialog-actions layout="row" layout-align="space-between center">
187 layout-align="start center"
188 ng-if="vm.crudPermissions.canEdit"
192 ng-click="vm.saveInboundRouteApp()"
193 class="send-button md-accent md-raised"
194 ng-disabled="inboundrouteFormApp.$invalid || inboundrouteFormApp.$pristine"
196 translate="VOICE.SAVE"
197 translate-attr-aria-label="VOICE.SAVE"