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.USER">User</label>
44 ng-model="vm.internaldial.user"
47 ng-disabled="!vm.crudPermissions.canEdit"
50 ng-value="'SIP/{{user.name}}'"
51 ng-repeat="user in vm.users"
52 ng-disabled="user.canSelect === false"
53 >{{ user.name }}</md-option
57 ng-messages="inboundrouteFormApp['user'].$error"
58 ng-show="inboundrouteFormApp['user'].$touched"
61 <div ng-message="required">
62 <span translate="VOICE.ERRORS.USER_REQUIRED"
63 >User field is required</span
68 <md-input-container class="md-block">
69 <label translate="VOICE.TIMEOUT">Timeout</label>
73 ng-model="vm.internaldial.timeout"
75 ng-disabled="!vm.crudPermissions.canEdit"
79 ng-messages="inboundrouteFormApp['timeout'].$error"
80 ng-show="inboundrouteFormApp['timeout'].$touched"
83 <div ng-message="required">
84 <span translate="VOICE.ERRORS.TIMEOUT_REQUIRED"
85 >Timeout field is required</span
88 <div ng-message="min">
90 translate="VOICE.ERRORS.TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO"
91 >Timeout must be a valid greater or equal than</span
97 <md-input-container class="md-block">
98 <label translate="VOICE.OPTIONS">Options</label>
102 ng-model="vm.internaldial.options"
103 ng-disabled="!vm.crudPermissions.canEdit"
107 ng-messages="inboundrouteFormApp['options'].$error"
108 ng-show="inboundrouteFormApp['options'].$touched"
111 <div ng-message="required">
112 <span translate="VOICE.ERRORS.OPTIONS_REQUIRED"
113 >Options field is required</span
117 </md-input-container>
118 <md-input-container class="md-block">
119 <label translate="VOICE.URL">Url</label>
123 ng-model="vm.internaldial.url"
124 ng-disabled="!vm.crudPermissions.canEdit"
128 ng-messages="inboundrouteFormApp['url'].$error"
129 ng-show="inboundrouteFormApp['url'].$touched"
132 <div ng-message="required">
133 <span translate="VOICE.ERRORS.URL_REQUIRED"
134 >Url field is required</span
138 </md-input-container>
140 <div class="error-list">
142 ng-repeat="error in vm.errors"
145 layout-align="space-between center"
148 <span class="message">{{error.message}}</span>
149 <span class="type">({{error.type}})</span>
151 <md-button class="md-icon-button">
153 md-font-icon="icon-alert-box"
154 aria-label="alert error"
162 <md-dialog-actions layout="row" layout-align="space-between center">
165 layout-align="start center"
166 ng-if="vm.crudPermissions.canEdit"
170 ng-click="vm.saveInboundRouteApp()"
171 class="send-button md-accent md-raised"
172 ng-disabled="inboundrouteFormApp.$invalid || inboundrouteFormApp.$pristine"
174 translate="VOICE.SAVE"
175 translate-attr-aria-label="VOICE.SAVE"