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