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.USER">User</label>
44 ng-model="vm.ringgroup.multipleUsers"
48 ng-disabled="!vm.crudPermissions.canEdit"
51 ng-value="'SIP/{{multipleUsers.name}}'"
52 ng-repeat="multipleUsers in vm.users"
53 ng-disabled="multipleUsers.canSelect === false"
54 >{{ multipleUsers.name }}</md-option
58 ng-messages="internalrouteFormApp['multipleUsers'].$error"
59 ng-show="internalrouteFormApp['multipleUsers'].$touched"
62 <div ng-message="required">
63 <span translate="VOICE.ERRORS.USER_REQUIRED"
64 >User field is required</span
69 <md-input-container class="md-block">
70 <label translate="VOICE.TIMEOUT">Timeout</label>
74 ng-model="vm.ringgroup.timeout"
76 ng-disabled="!vm.crudPermissions.canEdit"
80 ng-messages="internalrouteFormApp['timeout'].$error"
81 ng-show="internalrouteFormApp['timeout'].$touched"
84 <div ng-message="required">
85 <span translate="VOICE.ERRORS.TIMEOUT_REQUIRED"
86 >Timeout field is required</span
89 <div ng-message="min">
91 translate="VOICE.ERRORS.TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO"
92 >Timeout must be a valid greater or equal than</span
98 <md-input-container class="md-block">
99 <label translate="VOICE.OPTIONS">Options</label>
103 ng-model="vm.ringgroup.options"
104 ng-disabled="!vm.crudPermissions.canEdit"
108 ng-messages="internalrouteFormApp['options'].$error"
109 ng-show="internalrouteFormApp['options'].$touched"
112 <div ng-message="required">
113 <span translate="VOICE.ERRORS.OPTIONS_REQUIRED"
114 >Options field is required</span
118 </md-input-container>
119 <md-input-container class="md-block">
120 <label translate="VOICE.URL">Url</label>
124 ng-model="vm.ringgroup.url"
125 ng-disabled="!vm.crudPermissions.canEdit"
129 ng-messages="internalrouteFormApp['url'].$error"
130 ng-show="internalrouteFormApp['url'].$touched"
133 <div ng-message="required">
134 <span translate="VOICE.ERRORS.URL_REQUIRED"
135 >Url field is required</span
139 </md-input-container>
141 <div class="error-list">
143 ng-repeat="error in vm.errors"
146 layout-align="space-between center"
149 <span class="message">{{error.message}}</span>
150 <span class="type">({{error.type}})</span>
152 <md-button class="md-icon-button">
154 md-font-icon="icon-alert-box"
155 aria-label="alert error"
163 <md-dialog-actions layout="row" layout-align="space-between center">
166 layout-align="start center"
167 ng-if="vm.crudPermissions.canEdit"
171 ng-click="vm.saveInternalRouteApp()"
172 class="send-button md-accent md-raised"
173 ng-disabled="internalrouteFormApp.$invalid || internalrouteFormApp.$pristine"
175 translate="VOICE.SAVE"
176 translate-attr-aria-label="VOICE.SAVE"