2432e073a82d7c20ccc89eba0e6777d11d532648
[motion-next.git] /
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">
4       <div
5         class="md-toolbar-tools"
6         layout="row"
7         layout-align="space-between center"
8       >
9         <span class="title">{{ vm.title | translate }}</span>
10         <md-button class="md-icon-button" ng-click="vm.closeDialog()">
11           <md-icon
12             md-font-icon="icon-close"
13             aria-label="Close dialog"
14           ></md-icon>
15         </md-button>
16       </div>
17     </md-toolbar>
18
19     <md-dialog-content ms-scroll>
20       <div class="error-list">
21         <div
22           ng-repeat="error in vm.errors"
23           class="error"
24           layout="row"
25           layout-align="space-between center"
26         >
27           <div>
28             <span class="message">{{error.message}}</span>
29             <span class="type">({{error.type}})</span>
30           </div>
31           <md-button class="md-icon-button">
32             <md-icon
33               md-font-icon="icon-alert-box"
34               aria-label="alert error"
35               class="s16"
36             ></md-icon>
37           </md-button>
38         </div>
39       </div>
40       <md-input-container class="md-block">
41         <label translate="VOICE.HANGUP_CAUSE">Hangup_Cause</label>
42         <md-select
43           name="appdata"
44           ng-model="vm.hangup.appdata"
45           autofocus
46           required
47           ng-disabled="!vm.crudPermissions.canEdit"
48         >
49           <md-option ng-value="'1'">
50             {{ 'VOICE.HANGUPCAUSE_1' | translate }}
51           </md-option>
52
53           <md-option ng-value="'16'">
54             {{ 'VOICE.HANGUPCAUSE_16' | translate }}
55           </md-option>
56
57           <md-option ng-value="'17'">
58             {{ 'VOICE.HANGUPCAUSE_17' | translate }}
59           </md-option>
60
61           <md-option ng-value="'18'">
62             {{ 'VOICE.HANGUPCAUSE_18' | translate }}
63           </md-option>
64
65           <md-option ng-value="'21'">
66             {{ 'VOICE.HANGUPCAUSE_21' | translate }}
67           </md-option>
68
69           <md-option ng-value="'22'">
70             {{ 'VOICE.HANGUPCAUSE_22' | translate }}
71           </md-option>
72
73           <md-option ng-value="'27'">
74             {{ 'VOICE.HANGUPCAUSE_27' | translate }}
75           </md-option>
76
77           <md-option ng-value="'38'">
78             {{ 'VOICE.HANGUPCAUSE_38' | translate }}
79           </md-option>
80
81           <md-option ng-value="'41'">
82             {{ 'VOICE.HANGUPCAUSE_41' | translate }}
83           </md-option>
84         </md-select>
85         <div
86           ng-messages="inboundrouteFormApp['appdata'].$error"
87           ng-show="inboundrouteFormApp['appdata'].$touched"
88           role="alert"
89         >
90           <div ng-message="required">
91             <span translate="VOICE.ERRORS.HANGUP_CAUSE_REQUIRED"
92               >Hangup_Cause field is required</span
93             >
94           </div>
95         </div>
96       </md-input-container>
97
98       <div class="error-list">
99         <div
100           ng-repeat="error in vm.errors"
101           class="error"
102           layout="row"
103           layout-align="space-between center"
104         >
105           <div>
106             <span class="message">{{error.message}}</span>
107             <span class="type">({{error.type}})</span>
108           </div>
109           <md-button class="md-icon-button">
110             <md-icon
111               md-font-icon="icon-alert-box"
112               aria-label="alert error"
113               class="s16"
114             ></md-icon>
115           </md-button>
116         </div>
117       </div>
118     </md-dialog-content>
119
120     <md-dialog-actions layout="row" layout-align="space-between center">
121       <div
122         layout="row"
123         layout-align="start center"
124         ng-if="vm.crudPermissions.canEdit"
125       >
126         <md-button
127           type="submit"
128           ng-click="vm.saveInboundRouteApp()"
129           class="send-button md-accent md-raised"
130           ng-disabled="inboundrouteFormApp.$invalid || inboundrouteFormApp.$pristine"
131           aria-label="SAVE"
132           translate="VOICE.SAVE"
133           translate-attr-aria-label="VOICE.SAVE"
134         >
135           SAVE
136         </md-button>
137       </div>
138     </md-dialog-actions>
139   </form>
140 </md-dialog>