91dc0e6bb2fbf0bd426bc3108f92bfdbfb74c93e
[motion-next.git] /
1 <md-dialog
2   class="openchannelAccount-dialog"
3   aria-label="New OpenchannelAccount"
4 >
5   <form name="openchannelAccountFormApp" class="md-inline-form" novalidate>
6     <md-toolbar class="md-accent md-hue-2">
7       <div
8         class="md-toolbar-tools"
9         layout="row"
10         layout-align="space-between center"
11       >
12         <span class="title">{{ vm.title | translate }}</span>
13         <md-button class="md-icon-button" ng-click="vm.closeDialog()">
14           <md-icon
15             md-font-icon="icon-close"
16             aria-label="Close dialog"
17           ></md-icon>
18         </md-button>
19       </div>
20     </md-toolbar>
21
22     <md-dialog-content ms-scroll>
23       <div class="error-list">
24         <div
25           ng-repeat="error in vm.errors"
26           class="error"
27           layout="row"
28           layout-align="space-between center"
29         >
30           <div>
31             <span class="message">{{error.message}}</span>
32             <span class="type">({{error.type}})</span>
33           </div>
34           <md-button class="md-icon-button">
35             <md-icon
36               md-font-icon="icon-alert-box"
37               aria-label="alert error"
38               class="s16"
39             ></md-icon>
40           </md-button>
41         </div>
42       </div>
43       <md-input-container class="md-block">
44         <label translate="OPENCHANNEL.CONDITION">Condition</label>
45         <input
46           type="text"
47           name="condition"
48           ng-model="vm.gotoif.condition"
49           ng-required="true"
50           autofocus
51           ng-disabled="!vm.crudPermissions.canEdit"
52         />
53
54         <div
55           ng-messages="openchannelAccountFormApp['condition'].$error"
56           ng-show="openchannelAccountFormApp['condition'].$touched"
57           role="alert"
58         >
59           <div ng-message="required">
60             <span translate="OPENCHANNEL.ERRORS.CONDITION_REQUIRED"
61               >Condition field is required</span
62             >
63           </div>
64         </div>
65       </md-input-container>
66       <md-input-container class="md-block">
67         <label translate="OPENCHANNEL.TRUEPRIORITY">truepriority</label>
68         <input
69           type="number"
70           name="truepriority"
71           ng-model="vm.gotoif.truepriority"
72           min="1"
73           ng-required="true"
74           ng-disabled="!vm.crudPermissions.canEdit"
75         />
76
77         <div
78           ng-messages="openchannelAccountFormApp['truepriority'].$error"
79           ng-show="openchannelAccountFormApp['truepriority'].$touched"
80           role="alert"
81         >
82           <div ng-message="required">
83             <span translate="OPENCHANNEL.ERRORS.TRUEPRIORITY_REQUIRED"
84               >truepriority field is required</span
85             >
86           </div>
87           <div ng-message="min">
88             <span
89               translate="OPENCHANNEL.ERRORS.TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO"
90               >truepriority must be a valid greater or equal than</span
91             >
92             <span>1</span>
93           </div>
94         </div>
95       </md-input-container>
96       <md-input-container class="md-block">
97         <label translate="OPENCHANNEL.FALSEPRIORITY">falsepriority</label>
98         <input
99           type="number"
100           name="falsepriority"
101           ng-model="vm.gotoif.falsepriority"
102           min="1"
103           ng-required="true"
104           ng-disabled="!vm.crudPermissions.canEdit"
105         />
106
107         <div
108           ng-messages="openchannelAccountFormApp['falsepriority'].$error"
109           ng-show="openchannelAccountFormApp['falsepriority'].$touched"
110           role="alert"
111         >
112           <div ng-message="required">
113             <span translate="OPENCHANNEL.ERRORS.FALSEPRIORITY_REQUIRED"
114               >falsepriority field is required</span
115             >
116           </div>
117           <div ng-message="min">
118             <span
119               translate="OPENCHANNEL.ERRORS.FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO"
120               >falsepriority must be a valid greater or equal than</span
121             >
122             <span>1</span>
123           </div>
124         </div>
125       </md-input-container>
126
127       <div class="error-list">
128         <div
129           ng-repeat="error in vm.errors"
130           class="error"
131           layout="row"
132           layout-align="space-between center"
133         >
134           <div>
135             <span class="message">{{error.message}}</span>
136             <span class="type">({{error.type}})</span>
137           </div>
138           <md-button class="md-icon-button">
139             <md-icon
140               md-font-icon="icon-alert-box"
141               aria-label="alert error"
142               class="s16"
143             ></md-icon>
144           </md-button>
145         </div>
146       </div>
147     </md-dialog-content>
148
149     <md-dialog-actions layout="row" layout-align="space-between center">
150       <div
151         layout="row"
152         layout-align="start center"
153         ng-if="vm.crudPermissions.canEdit"
154       >
155         <md-button
156           type="submit"
157           ng-click="vm.saveOpenchannelAccountApp()"
158           class="send-button md-accent md-raised"
159           ng-disabled="openchannelAccountFormApp.$invalid || openchannelAccountFormApp.$pristine"
160           aria-label="SAVE"
161           translate="OPENCHANNEL.SAVE"
162           translate-attr-aria-label="OPENCHANNEL.SAVE"
163         >
164           SAVE
165         </md-button>
166       </div>
167     </md-dialog-actions>
168   </form>
169 </md-dialog>