bef3343752873e8b8fb8879a68638f6a4c52588d
[motion-next.git] /
1 <md-dialog class="chatWebsite-dialog" aria-label="New ChatWebsite">
2   <form name="chatWebsiteFormApp" 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="CHAT.PRIORITY">Priority</label>
42         <input
43           type="number"
44           name="priority"
45           ng-model="vm.gotop.priority"
46           min="0"
47           ng-required="true"
48           autofocus
49           ng-disabled="!vm.crudPermissions.canEdit"
50         />
51
52         <div
53           ng-messages="chatWebsiteFormApp['priority'].$error"
54           ng-show="chatWebsiteFormApp['priority'].$touched"
55           role="alert"
56         >
57           <div ng-message="required">
58             <span translate="CHAT.ERRORS.PRIORITY_REQUIRED"
59               >Priority field is required</span
60             >
61           </div>
62           <div ng-message="min">
63             <span
64               translate="CHAT.ERRORS.PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO"
65               >Priority must be a valid greater or equal than</span
66             >
67             <span>0</span>
68           </div>
69         </div>
70       </md-input-container>
71
72       <div class="error-list">
73         <div
74           ng-repeat="error in vm.errors"
75           class="error"
76           layout="row"
77           layout-align="space-between center"
78         >
79           <div>
80             <span class="message">{{error.message}}</span>
81             <span class="type">({{error.type}})</span>
82           </div>
83           <md-button class="md-icon-button">
84             <md-icon
85               md-font-icon="icon-alert-box"
86               aria-label="alert error"
87               class="s16"
88             ></md-icon>
89           </md-button>
90         </div>
91       </div>
92     </md-dialog-content>
93
94     <md-dialog-actions layout="row" layout-align="space-between center">
95       <div
96         layout="row"
97         layout-align="start center"
98         ng-if="vm.crudPermissions.canEdit"
99       >
100         <md-button
101           type="submit"
102           ng-click="vm.saveChatWebsiteApp()"
103           class="send-button md-accent md-raised"
104           ng-disabled="chatWebsiteFormApp.$invalid || chatWebsiteFormApp.$pristine"
105           aria-label="SAVE"
106           translate="CHAT.SAVE"
107           translate-attr-aria-label="CHAT.SAVE"
108         >
109           SAVE
110         </md-button>
111       </div>
112     </md-dialog-actions>
113   </form>
114 </md-dialog>