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.TECHNOLOGY/RESOURCE">Technology/Resource</label>
45 ng-model="vm.dial.tech"
48 ng-disabled="!vm.crudPermissions.canEdit"
52 ng-messages="inboundrouteFormApp['tech'].$error"
53 ng-show="inboundrouteFormApp['tech'].$touched"
56 <div ng-message="required">
57 <span translate="VOICE.ERRORS.TECHNOLOGY/RESOURCE_REQUIRED"
58 >Technology/Resource field is required</span
63 <md-input-container class="md-block">
64 <label translate="VOICE.TIMEOUT">Timeout</label>
68 ng-model="vm.dial.timeout"
70 ng-disabled="!vm.crudPermissions.canEdit"
74 ng-messages="inboundrouteFormApp['timeout'].$error"
75 ng-show="inboundrouteFormApp['timeout'].$touched"
78 <div ng-message="required">
79 <span translate="VOICE.ERRORS.TIMEOUT_REQUIRED"
80 >Timeout field is required</span
83 <div ng-message="min">
85 translate="VOICE.ERRORS.TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO"
86 >Timeout must be a valid greater or equal than</span
92 <md-input-container class="md-block">
93 <label translate="VOICE.OPTIONS">Options</label>
97 ng-model="vm.dial.options"
98 ng-disabled="!vm.crudPermissions.canEdit"
102 ng-messages="inboundrouteFormApp['options'].$error"
103 ng-show="inboundrouteFormApp['options'].$touched"
106 <div ng-message="required">
107 <span translate="VOICE.ERRORS.OPTIONS_REQUIRED"
108 >Options field is required</span
112 </md-input-container>
113 <md-input-container class="md-block">
114 <label translate="VOICE.URL">Url</label>
118 ng-model="vm.dial.url"
119 ng-disabled="!vm.crudPermissions.canEdit"
123 ng-messages="inboundrouteFormApp['url'].$error"
124 ng-show="inboundrouteFormApp['url'].$touched"
127 <div ng-message="required">
128 <span translate="VOICE.ERRORS.URL_REQUIRED"
129 >Url field is required</span
133 </md-input-container>
135 <div class="error-list">
137 ng-repeat="error in vm.errors"
140 layout-align="space-between center"
143 <span class="message">{{error.message}}</span>
144 <span class="type">({{error.type}})</span>
146 <md-button class="md-icon-button">
148 md-font-icon="icon-alert-box"
149 aria-label="alert error"
157 <md-dialog-actions layout="row" layout-align="space-between center">
160 layout-align="start center"
161 ng-if="vm.crudPermissions.canEdit"
165 ng-click="vm.saveInboundRouteApp()"
166 class="send-button md-accent md-raised"
167 ng-disabled="inboundrouteFormApp.$invalid || inboundrouteFormApp.$pristine"
169 translate="VOICE.SAVE"
170 translate-attr-aria-label="VOICE.SAVE"