2108e94bdbd75a4dbe3d3458b31a9324920e780d
[motion-next.git] /
1 <md-dialog class="mailAccount-dialog" aria-label="New MailAccount">
2   <form name="mailAccountFormApp" 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="MAIL.TIMES">times</label>
42         <md-select
43           name="times"
44           ng-model="vm.autoreply.times"
45           autofocus
46           required
47           ng-disabled="!vm.crudPermissions.canEdit"
48         >
49           <md-option ng-value="1">One Time</md-option>
50           <md-option ng-value="0">Always</md-option>
51         </md-select>
52         <div
53           ng-messages="mailAccountFormApp['times'].$error"
54           ng-show="mailAccountFormApp['times'].$touched"
55           role="alert"
56         >
57           <div ng-message="required">
58             <span translate="MAIL.ERRORS.TIMES_REQUIRED"
59               >times field is required</span
60             >
61           </div>
62         </div>
63       </md-input-container>
64       <div class="md-block">
65         <label class="md-caption grey-fg" translate="MAIL.TEXT">Text</label>
66         <textarea
67           aria-label="Text text"
68           ckeditor="{ skin: 'office2013', language: 'en', allowedContent: true, extraPlugins: 'font,colorbutton,autoembed,autocorrect,googlethisterm,pastebase64', toolbarGroups: [{ name: 'styles', groups: ['styles'] }, { name: 'clipboard', groups: ['undo'] }, { name: 'colors', groups: ['colors'] }, { name: 'basicstyles', groups: ['basicstyles'] }, { name: 'paragraph', groups: ['list', 'indent', 'align'] }, { name: 'mode' }], autocorrect_enabled: true, disableNativeSpellChecker: false, fontSize_sizes: '8/8pt;9/9pt;10/10pt;11/11pt;12/12pt;14/14pt;16/16pt;18/18pt;20/20pt;22/22pt;24/24pt;26/26pt;28/28pt;36/36pt;48/48pt;72/72pt',  removePlugins: 'magicline' }"
69           ng-model="vm.autoreply.text"
70         ></textarea>
71       </div>
72
73       <div class="error-list">
74         <div
75           ng-repeat="error in vm.errors"
76           class="error"
77           layout="row"
78           layout-align="space-between center"
79         >
80           <div>
81             <span class="message">{{error.message}}</span>
82             <span class="type">({{error.type}})</span>
83           </div>
84           <md-button class="md-icon-button">
85             <md-icon
86               md-font-icon="icon-alert-box"
87               aria-label="alert error"
88               class="s16"
89             ></md-icon>
90           </md-button>
91         </div>
92       </div>
93     </md-dialog-content>
94
95     <md-dialog-actions layout="row" layout-align="space-between center">
96       <div
97         layout="row"
98         layout-align="start center"
99         ng-if="vm.crudPermissions.canEdit"
100       >
101         <md-button
102           type="submit"
103           ng-click="vm.saveMailAccountApp()"
104           class="send-button md-accent md-raised"
105           ng-disabled="mailAccountFormApp.$invalid || mailAccountFormApp.$pristine"
106           aria-label="SAVE"
107           translate="MAIL.SAVE"
108           translate-attr-aria-label="MAIL.SAVE"
109         >
110           SAVE
111         </md-button>
112       </div>
113     </md-dialog-actions>
114   </form>
115 </md-dialog>