00b4a60d0c59616796b2352a5bb10219d19274d4
[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.VALUE">Value</label>
45         <input
46           type="text"
47           name="value"
48           ng-model="vm.noop.value"
49           autofocus
50           ng-disabled="!vm.crudPermissions.canEdit"
51         />
52
53         <div
54           ng-messages="openchannelAccountFormApp['value'].$error"
55           ng-show="openchannelAccountFormApp['value'].$touched"
56           role="alert"
57         >
58           <div ng-message="required">
59             <span translate="OPENCHANNEL.ERRORS.VALUE_REQUIRED"
60               >Value field is required</span
61             >
62           </div>
63         </div>
64       </md-input-container>
65
66       <div class="error-list">
67         <div
68           ng-repeat="error in vm.errors"
69           class="error"
70           layout="row"
71           layout-align="space-between center"
72         >
73           <div>
74             <span class="message">{{error.message}}</span>
75             <span class="type">({{error.type}})</span>
76           </div>
77           <md-button class="md-icon-button">
78             <md-icon
79               md-font-icon="icon-alert-box"
80               aria-label="alert error"
81               class="s16"
82             ></md-icon>
83           </md-button>
84         </div>
85       </div>
86     </md-dialog-content>
87
88     <md-dialog-actions layout="row" layout-align="space-between center">
89       <div
90         layout="row"
91         layout-align="start center"
92         ng-if="vm.crudPermissions.canEdit"
93       >
94         <md-button
95           type="submit"
96           ng-click="vm.saveOpenchannelAccountApp()"
97           class="send-button md-accent md-raised"
98           ng-disabled="openchannelAccountFormApp.$invalid || openchannelAccountFormApp.$pristine"
99           aria-label="SAVE"
100           translate="OPENCHANNEL.SAVE"
101           translate-attr-aria-label="OPENCHANNEL.SAVE"
102         >
103           SAVE
104         </md-button>
105       </div>
106     </md-dialog-actions>
107   </form>
108 </md-dialog>