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.CONTEXT">Context</label>
44 ng-model="vm.goto.context"
47 ng-disabled="!vm.crudPermissions.canEdit"
50 ng-value="context.name"
51 ng-repeat="context in vm.contexts"
52 ng-disabled="context.canSelect === false"
53 >{{ context.name }}</md-option
57 ng-messages="internalrouteFormApp['context'].$error"
58 ng-show="internalrouteFormApp['context'].$touched"
61 <div ng-message="required">
62 <span translate="VOICE.ERRORS.CONTEXT_REQUIRED"
63 >Context field is required</span
68 <md-input-container class="md-block">
69 <label translate="VOICE.EXTENSION">Extension</label>
73 ng-model="vm.goto.extension"
75 ng-disabled="!vm.crudPermissions.canEdit"
79 ng-messages="internalrouteFormApp['extension'].$error"
80 ng-show="internalrouteFormApp['extension'].$touched"
83 <div ng-message="required">
84 <span translate="VOICE.ERRORS.EXTENSION_REQUIRED"
85 >Extension field is required</span
90 <md-input-container class="md-block">
91 <label translate="VOICE.PRIORITY">Priority</label>
95 ng-model="vm.goto.priority"
97 ng-disabled="!vm.crudPermissions.canEdit"
101 ng-messages="internalrouteFormApp['priority'].$error"
102 ng-show="internalrouteFormApp['priority'].$touched"
105 <div ng-message="required">
106 <span translate="VOICE.ERRORS.PRIORITY_REQUIRED"
107 >Priority field is required</span
111 </md-input-container>
113 <div class="error-list">
115 ng-repeat="error in vm.errors"
118 layout-align="space-between center"
121 <span class="message">{{error.message}}</span>
122 <span class="type">({{error.type}})</span>
124 <md-button class="md-icon-button">
126 md-font-icon="icon-alert-box"
127 aria-label="alert error"
135 <md-dialog-actions layout="row" layout-align="space-between center">
138 layout-align="start center"
139 ng-if="vm.crudPermissions.canEdit"
143 ng-click="vm.saveInternalRouteApp()"
144 class="send-button md-accent md-raised"
145 ng-disabled="internalrouteFormApp.$invalid || internalrouteFormApp.$pristine"
147 translate="VOICE.SAVE"
148 translate-attr-aria-label="VOICE.SAVE"