3368e92e8fb789a8723e1f49c2f58e2dc67f32d1
[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.APPLICATION_NAME">Application_Name</label>
42         <input
43           type="text"
44           name="app"
45           ng-model="vm.custom.app"
46           ng-required="true"
47           autofocus
48           ng-disabled="!vm.crudPermissions.canEdit"
49         />
50
51         <div
52           ng-messages="inboundrouteFormApp['app'].$error"
53           ng-show="inboundrouteFormApp['app'].$touched"
54           role="alert"
55         >
56           <div ng-message="required">
57             <span translate="VOICE.ERRORS.APPLICATION_NAME_REQUIRED"
58               >Application_Name field is required</span
59             >
60           </div>
61         </div>
62       </md-input-container>
63       <md-input-container class="md-block">
64         <label translate="VOICE.ARGUMENTS">Arguments</label>
65         <input
66           type="text"
67           name="appdata"
68           ng-model="vm.custom.appdata"
69           ng-disabled="!vm.crudPermissions.canEdit"
70         />
71
72         <div
73           ng-messages="inboundrouteFormApp['appdata'].$error"
74           ng-show="inboundrouteFormApp['appdata'].$touched"
75           role="alert"
76         >
77           <div ng-message="required">
78             <span translate="VOICE.ERRORS.ARGUMENTS_REQUIRED"
79               >Arguments field is required</span
80             >
81           </div>
82         </div>
83       </md-input-container>
84
85       <div class="error-list">
86         <div
87           ng-repeat="error in vm.errors"
88           class="error"
89           layout="row"
90           layout-align="space-between center"
91         >
92           <div>
93             <span class="message">{{error.message}}</span>
94             <span class="type">({{error.type}})</span>
95           </div>
96           <md-button class="md-icon-button">
97             <md-icon
98               md-font-icon="icon-alert-box"
99               aria-label="alert error"
100               class="s16"
101             ></md-icon>
102           </md-button>
103         </div>
104       </div>
105     </md-dialog-content>
106
107     <md-dialog-actions layout="row" layout-align="space-between center">
108       <div
109         layout="row"
110         layout-align="start center"
111         ng-if="vm.crudPermissions.canEdit"
112       >
113         <md-button
114           type="submit"
115           ng-click="vm.saveInboundRouteApp()"
116           class="send-button md-accent md-raised"
117           ng-disabled="inboundrouteFormApp.$invalid || inboundrouteFormApp.$pristine"
118           aria-label="SAVE"
119           translate="VOICE.SAVE"
120           translate-attr-aria-label="VOICE.SAVE"
121         >
122           SAVE
123         </md-button>
124       </div>
125     </md-dialog-actions>
126   </form>
127 </md-dialog>