blob: 279e4c96e98d86cd9dea63cc83a3fae72dfec443 [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001<!-- add mailbox modal -->
2<div class="modal fade" id="addMailboxModal" tabindex="-1" role="dialog" aria-hidden="true">
3 <div class="modal-dialog modal-lg">
4 <div class="modal-content">
5 <div class="modal-header">
6 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
7 <h3 class="modal-title">{{ lang.mailbox.add_mailbox }}</h3>
8 </div>
9 <div class="modal-body">
10 <form class="form-horizontal" data-cached-form="true" data-id="add_mailbox" role="form" autocomplete="off">
11 <div class="form-group">
12 <label class="control-label col-sm-2" for="local_part">{{ lang.add.mailbox_username }}</label>
13 <div class="col-sm-10">
14 <input type="text" pattern="[A-Za-z0-9\.!#$%&'*+/=?^_`{|}~-]+" autocorrect="off" autocapitalize="none" class="form-control" name="local_part" required>
15 </div>
16 </div>
17 <div class="form-group">
18 <label class="control-label col-sm-2" for="domain">{{ lang.add.domain }}</label>
19 <div class="col-sm-10">
20 <select class="full-width-select" data-live-search="true" id="addSelectDomain" name="domain" required>
21 {% for domain in domains %}
22 <option>{{ domain }}</option>
23 {% endfor %}
24 </select>
25 </div>
26 </div>
27 <div class="form-group">
28 <label class="control-label col-sm-2" for="name">{{ lang.add.full_name }}</label>
29 <div class="col-sm-10">
30 <input type="text" class="form-control" name="name">
31 </div>
32 </div>
33 <div class="form-group">
34 <label class="control-label col-sm-2" for="addInputQuota">{{ lang.add.quota_mb }}
35 <br /><span id="quotaBadge" class="badge">max. - MiB</span>
36 </label>
37 <div class="col-sm-10">
38 <input type="text" class="form-control" name="quota" min="0" max="" id="addInputQuota" disabled value="{{ lang.add.select_domain }}" required>
39 <small class="help-block">0 = ∞</small>
40 <div class="label label-warning addInputQuotaExhausted" style="display:none;">{{ lang.warning.quota_exceeded_scope }}</div>
41 </div>
42 </div>
43 <div class="form-group">
44 <label class="control-label col-sm-2" for="password">{{ lang.add.password }} (<a href="#" class="generate_password">{{ lang.add.generate }}</a>)</label>
45 <div class="col-sm-10">
46 <input type="password" data-pwgen-field="true" data-hibp="true" class="form-control" name="password" placeholder="" autocomplete="new-password" required>
47 </div>
48 </div>
49 <div class="form-group">
50 <label class="control-label col-sm-2" for="password2">{{ lang.add.password_repeat }}</label>
51 <div class="col-sm-10">
52 <input type="password" data-pwgen-field="true" class="form-control" name="password2" placeholder="" autocomplete="new-password" required>
53 </div>
54 </div>
55 <div class="form-group">
56 <div class="col-sm-offset-2 col-sm-10">
57 <select name="active" class="form-control">
58 <option value="1" selected>{{ lang.add.active }}</option>
59 <option value="2">{{ lang.add.disable_login }}</option>
60 <option value="0">{{ lang.add.inactive }}</option>
61 </select>
62 </div>
63 </div>
64 <hr>
65 <div class="form-group">
66 <div class="col-sm-offset-2 col-sm-10">
67 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" data-action="add_item" data-id="add_mailbox" data-api-url='add/mailbox' data-api-attr='{}' href="#">{{ lang.admin.add }}</button>
68 </div>
69 </div>
70 </form>
71 </div>
72 </div>
73 </div>
74</div><!-- add mailbox modal -->
75<!-- add domain modal -->
76<div class="modal fade" id="addDomainModal" tabindex="-1" role="dialog" aria-hidden="true">
77 <div class="modal-dialog modal-lg">
78 <div class="modal-content">
79 <div class="modal-header">
80 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
81 <h3 class="modal-title">{{ lang.mailbox.add_domain }}</h3>
82 </div>
83 <div class="modal-body">
84 <form class="form-horizontal" data-cached-form="true" data-id="add_domain" role="form">
85 <div class="form-group">
86 <label class="control-label col-sm-2" for="domain">{{ lang.add.domain }}</label>
87 <div class="col-sm-10">
88 <input type="text" autocorrect="off" autocapitalize="none" class="form-control" name="domain" required>
89 </div>
90 </div>
91 <div class="form-group">
92 <label class="control-label col-sm-2" for="description">{{ lang.add.description }}</label>
93 <div class="col-sm-10">
94 <input type="text" class="form-control" name="description">
95 </div>
96 </div>
97 <div class="form-group">
98 <label class="control-label col-sm-2" for="aliases">{{ lang.add.max_aliases }}</label>
99 <div class="col-sm-10">
100 <input type="number" class="form-control" name="aliases" value="400" required>
101 </div>
102 </div>
103 <div class="form-group">
104 <label class="control-label col-sm-2" for="mailboxes">{{ lang.add.max_mailboxes }}</label>
105 <div class="col-sm-10">
106 <input type="number" class="form-control" name="mailboxes" value="10" required>
107 </div>
108 </div>
109 <div class="form-group">
110 <label class="control-label col-sm-2" for="defquota">{{ lang.add.mailbox_quota_def }}</label>
111 <div class="col-sm-10">
112 <input type="number" class="form-control" name="defquota" value="3072" required>
113 </div>
114 </div>
115 <div class="form-group">
116 <label class="control-label col-sm-2" for="maxquota">{{ lang.add.mailbox_quota_m }}</label>
117 <div class="col-sm-10">
118 <input type="number" class="form-control" name="maxquota" value="10240" required>
119 </div>
120 </div>
121 <div class="form-group">
122 <label class="control-label col-sm-2" for="quota">{{ lang.add.domain_quota_m }}</label>
123 <div class="col-sm-10">
124 <input type="number" class="form-control" name="quota" value="10240" required>
125 </div>
126 </div>
127 {% if not skip_sogo %}
128 <div class="form-group">
129 <div class="col-sm-offset-2 col-sm-10">
130 <div class="checkbox">
131 <label><input type="checkbox" value="1" name="gal" checked> {{ lang.edit.gal }}</label>
132 <small class="help-block">{{ lang.edit.gal_info|raw }}</small>
133 </div>
134 </div>
135 </div>
136 {% endif %}
137 <div class="form-group">
138 <div class="col-sm-offset-2 col-sm-10">
139 <div class="checkbox">
140 <label><input type="checkbox" value="1" name="active" checked> {{ lang.add.active }}</label>
141 </div>
142 </div>
143 </div>
144 <hr>
145 <div class="form-group">
146 <label class="control-label col-sm-2" for="rl_frame">{{ lang.acl.ratelimit }}</label>
147 <div class="col-sm-7">
148 <input name="rl_value" type="number" class="form-control" placeholder="{{ lang.ratelimit.disabled }}">
149 </div>
150 <div class="col-sm-3">
151 <select name="rl_frame" class="form-control">
152 {% include 'mailbox/rl-frame.twig' %}
153 </select>
154 </div>
155 </div>
156 <hr>
157 <div class="form-group">
158 <label class="control-label col-sm-2" for="dkim_selector">{{ lang.admin.dkim_domains_selector }}</label>
159 <div class="col-sm-10">
160 <input class="form-control" id="dkim_selector" name="dkim_selector" value="dkim">
161 </div>
162 </div>
163 <div class="form-group">
164 <label class="control-label col-sm-2" for="key_size">{{ lang.admin.dkim_key_length }}</label>
165 <div class="col-sm-10">
166 <select data-style="btn btn-default btn-sm" class="form-control" id="key_size" name="key_size">
167 <option data-subtext="bits">1024</option>
168 <option data-subtext="bits" selected>2048</option>
169 </select>
170 </div>
171 </div>
172 <hr>
173 <div class="form-group">
174 <label class="control-label col-sm-2">{{ lang.add.backup_mx_options }}</label>
175 <div class="col-sm-10">
176 <div class="checkbox">
177 <label><input type="checkbox" value="1" name="backupmx"> {{ lang.add.relay_domain }}</label>
178 <br>
179 <label><input type="checkbox" value="1" name="relay_all_recipients"> {{ lang.add.relay_all }}</label>
180 <p>{{ lang.add.relay_all_info|raw }}</p>
181 <label><input type="checkbox" value="1" name="relay_unknown_only"> {{ lang.add.relay_unknown_only }}</label>
182 <br>
183 <p>{{ lang.add.relay_transport_info|raw }}</p>
184 </div>
185 </div>
186 </div>
187 <hr>
188 <div class="form-group">
189 <div class="col-sm-offset-2 col-sm-10 btn-group">
190 {% if not skip_sogo %}
191 <button class="btn btn-xs-lg btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default" data-action="add_item" data-id="add_domain" data-api-url='add/domain' data-api-attr='{}' href="#">{{ lang.add.add_domain_only }}</button>
192 <button class="btn btn-xs-lg btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default" data-action="add_item" data-id="add_domain" data-api-url='add/domain' data-api-attr='{"restart_sogo":"1"}' href="#">{{ lang.add.add_domain_restart }}</button>
193 <div class="clearfix visible-xs"></div>
194 {% else %}
195 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" data-action="add_item" data-id="add_domain" data-api-url='add/domain' data-api-attr='{}' href="#">{{ lang.add.add }}</button>
196 {% endif %}
197 </div>
198 </div>
199 {# TODO: Separate SOGo-related text #}
200 {% if not skip_sogo %}
201 <p><i class="bi bi-shield-fill-exclamation text-danger"></i> {{ lang.add.post_domain_add|raw }}</p>
202 {% endif %}
203 </form>
204 </div>
205 </div>
206 </div>
207</div><!-- add domain modal -->
208<!-- add resource modal -->
209<div class="modal fade" id="addResourceModal" tabindex="-1" role="dialog" aria-hidden="true">
210 <div class="modal-dialog modal-lg">
211 <div class="modal-content">
212 <div class="modal-header">
213 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
214 <h3 class="modal-title">{{ lang.mailbox.add_resource }}</h3>
215 </div>
216 <div class="modal-body">
217 <form class="form-horizontal" data-cached-form="true" role="form" data-id="add_resource">
218 <div class="form-group">
219 <label class="control-label col-sm-2" for="description">{{ lang.add.description }}</label>
220 <div class="col-sm-10">
221 <input type="text" class="form-control" name="description" required>
222 </div>
223 </div>
224 <div class="form-group">
225 <label class="control-label col-sm-2" for="domain">{{ lang.add.domain }}</label>
226 <div class="col-sm-10">
227 <select data-live-search="true" name="domain" title="{{ lang.add.select }}" required>
228 {% for domain in domains %}
229 <option>{{ domain }}</option>
230 {% endfor %}
231 </select>
232 </div>
233 </div>
234 <div class="form-group">
235 <label class="control-label col-sm-2" for="domain">{{ lang.add.kind }}</label>
236 <div class="col-sm-10">
237 <select name="kind" title="{{ lang.add.select }}" required>
238 <option value="location">Location</option>
239 <option value="group">Group</option>
240 <option value="thing">Thing</option>
241 </select>
242 </div>
243 </div>
244 <div class="form-group">
245 <label class="control-label col-sm-2" for="multiple_bookings_select">{{ lang.add.multiple_bookings }}</label>
246 <div class="col-sm-10">
247 <select name="multiple_bookings_select" id="multiple_bookings_select" title="{{ lang.add.select }}" required>
248 <option value="0">{{ lang.mailbox.booking_null }}</option>
249 <option value="-1" selected>{{ lang.mailbox.booking_ltnull }}</option>
250 <option value="custom">{{ lang.mailbox.booking_custom }}</option>
251 </select>
252 <div style="display:none" id="multiple_bookings_custom_div">
253 <hr>
254 <input type="number" class="form-control" name="multiple_bookings_custom" id="multiple_bookings_custom">
255 </div>
256 <input type="hidden" name="multiple_bookings" id="multiple_bookings">
257 </div>
258 </div>
259 <div class="form-group">
260 <div class="col-sm-offset-2 col-sm-10">
261 <div class="checkbox">
262 <label><input type="checkbox" value="1" name="active" checked> {{ lang.add.active }}</label>
263 </div>
264 </div>
265 </div>
266 <div class="form-group">
267 <div class="col-sm-offset-2 col-sm-10">
268 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" data-action="add_item" data-id="add_resource" data-api-url='add/resource' data-api-attr='{}' href="#">{{ lang.admin.add }}</button>
269 </div>
270 </div>
271 </form>
272 </div>
273 </div>
274 </div>
275</div><!-- add resource modal -->
276<!-- add alias modal -->
277<div class="modal fade" id="addAliasModal" tabindex="-1" role="dialog" aria-hidden="true">
278 <div class="modal-dialog modal-lg">
279 <div class="modal-content">
280 <div class="modal-header">
281 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
282 <h3 class="modal-title">{{ lang.mailbox.add_alias }}</h3>
283 </div>
284 <div class="modal-body">
285 <form class="form-horizontal" data-cached-form="true" role="form" data-id="add_alias">
286 <input type="hidden" value="0" name="active">
287 <div class="form-group">
288 <label class="control-label col-sm-2" for="address">{{ lang.add.alias_address }}</label>
289 <div class="col-sm-10">
290 <textarea autocorrect="off" autocapitalize="none" class="form-control" rows="5" name="address" id="address" required></textarea>
291 <p>{{ lang.add.alias_address_info|raw }}</p>
292 </div>
293 </div>
294 <div class="form-group">
295 <label class="control-label col-sm-2" for="goto">{{ lang.add.target_address }}</label>
296 <div class="col-sm-10">
297 <textarea id="textarea_alias_goto" autocorrect="off" autocapitalize="none" class="form-control" rows="5" id="goto" name="goto" required></textarea>
298 <p>{{ lang.add.target_address_info|raw }}</p>
299 <div class="checkbox">
300 <label><input class="goto_checkbox" type="checkbox" value="1" name="goto_null"> {{ lang.add.goto_null }}</label>
301 </div>
302 <div class="checkbox">
303 <label><input class="goto_checkbox" type="checkbox" value="1" name="goto_spam"> {{ lang.add.goto_spam|raw }}</label>
304 </div>
305 <div class="checkbox">
306 <label><input class="goto_checkbox" type="checkbox" value="1" name="goto_ham"> {{ lang.add.goto_ham|raw }}</label>
307 </div>
308 {% if not skip_sogo %}
309 <hr>
310 <div class="checkbox">
311 <label><input type="checkbox" value="1" name="sogo_visible" checked> {{ lang.edit.sogo_visible }}</label>
312 </div>
313 <p class="help-block">{{ lang.edit.sogo_visible_info }}</p>
314 {% endif %}
315 </div>
316 </div>
317 <div class="form-group">
318 <div class="col-sm-offset-2 col-sm-10">
319 <div class="checkbox">
320 <label><input type="checkbox" value="1" name="active" checked> {{ lang.add.active }}</label>
321 </div>
322 </div>
323 </div>
324 <div class="form-group">
325 <div class="col-sm-offset-2 col-sm-10">
326 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" data-action="add_item" data-id="add_alias" data-api-url='add/alias' data-api-attr='{}' href="#">{{ lang.admin.add }}</button>
327 </div>
328 </div>
329 </form>
330 </div>
331 </div>
332 </div>
333</div><!-- add alias modal -->
334<!-- add domain alias modal -->
335<div class="modal fade" id="addAliasDomainModal" tabindex="-1" role="dialog" aria-hidden="true">
336 <div class="modal-dialog modal-lg">
337 <div class="modal-content">
338 <div class="modal-header">
339 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
340 <h3 class="modal-title">{{ lang.mailbox.add_domain_alias }}</h3>
341 </div>
342 <div class="modal-body">
343 <form class="form-horizontal" data-cached-form="true" role="form" data-id="add_alias_domain">
344 <input type="hidden" value="0" name="active">
345 <div class="form-group">
346 <label class="control-label col-sm-2" for="alias_domain">{{ lang.add.alias_domain }}</label>
347 <div class="col-sm-10">
348 <textarea autocorrect="off" autocapitalize="none" class="form-control" rows="5" name="alias_domain" id="alias_domain" required></textarea>
349 <p>{{ lang.add.alias_domain_info|raw }}</p>
350 </div>
351 </div>
352 <div class="form-group">
353 <label class="control-label col-sm-2" for="target_domain">{{ lang.add.target_domain }}</label>
354 <div class="col-sm-10">
355 <select data-live-search="true" name="target_domain" title="{{ lang.add.select }}" required>
356 {% for domain in domains %}
357 <option>{{ domain }}</option>
358 {% endfor %}
359 </select>
360 </div>
361 </div>
362 <div class="form-group">
363 <div class="col-sm-offset-2 col-sm-10">
364 <div class="checkbox">
365 <label><input type="checkbox" value="1" name="active" checked> {{ lang.add.active }}</label>
366 </div>
367 </div>
368 </div>
369 <hr>
370 <div class="form-group">
371 <label class="control-label col-sm-2" for="rl_frame">{{ lang.acl.ratelimit }}</label>
372 <div class="col-sm-7">
373 <input name="rl_value" type="number" class="form-control" placeholder="{{ lang.ratelimit.disabled }}">
374 </div>
375 <div class="col-sm-3">
376 <select name="rl_frame" class="form-control">
377 {% include 'mailbox/rl-frame.twig' %}
378 </select>
379 </div>
380 </div>
381 <hr>
382 <div class="form-group">
383 <label class="control-label col-sm-2" for="dkim_selector2">{{ lang.admin.dkim_domains_selector }}</label>
384 <div class="col-sm-10">
385 <input class="form-control" id="dkim_selector2" name="dkim_selector" value="dkim">
386 </div>
387 </div>
388 <div class="form-group">
389 <label class="control-label col-sm-2" for="key_size2">{{ lang.admin.dkim_key_length }}</label>
390 <div class="col-sm-10">
391 <select data-style="btn btn-default btn-sm" class="form-control" id="key_size2" name="key_size">
392 <option data-subtext="bits">1024</option>
393 <option data-subtext="bits" selected>2048</option>
394 </select>
395 </div>
396 </div>
397 <hr>
398 <div class="form-group">
399 <div class="col-sm-offset-2 col-sm-10">
400 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" data-action="add_item" data-id="add_alias_domain" data-api-url='add/alias-domain' data-api-attr='{}' href="#">{{ lang.admin.add }}</button>
401 </div>
402 </div>
403 </form>
404 </div>
405 </div>
406 </div>
407</div><!-- add domain alias modal -->
408<!-- add sync job modal -->
409<div class="modal fade" id="addSyncJobModalAdmin" tabindex="-1" role="dialog" aria-hidden="true">
410 <div class="modal-dialog modal-lg">
411 <div class="modal-content">
412 <div class="modal-header">
413 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
414 <h3 class="modal-title">{{ lang.add.syncjob }}</h3>
415 </div>
416 <div class="modal-body">
417 <p class="help-block">{{ lang.add.syncjob_hint }}</p>
418 <form class="form-horizontal" data-cached-form="true" role="form" data-id="add_syncjob">
419 <div class="form-group">
420 <label class="control-label col-sm-2" for="username">{{ lang.add.username }}</label>
421 <div class="col-sm-10">
422 <select data-live-search="true" name="username" required>
423 {% for mailbox in mailboxes %}
424 <option>{{ mailbox }}</option>
425 {% endfor %}
426 </select>
427 </div>
428 </div>
429 <div class="form-group">
430 <label class="control-label col-sm-2" for="host1">{{ lang.add.hostname }}</label>
431 <div class="col-sm-10">
432 <input type="text" class="form-control" name="host1" required>
433 </div>
434 </div>
435 <div class="form-group">
436 <label class="control-label col-sm-2" for="port1">{{ lang.add.port }}</label>
437 <div class="col-sm-10">
438 <input type="number" class="form-control" name="port1" min="1" max="65535" value="143" required>
439 <small class="help-block">1-65535</small>
440 </div>
441 </div>
442 <div class="form-group">
443 <label class="control-label col-sm-2" for="user1">{{ lang.add.username }}</label>
444 <div class="col-sm-10">
445 <input type="text" class="form-control" name="user1" required>
446 </div>
447 </div>
448 <div class="form-group">
449 <label class="control-label col-sm-2" for="password1">{{ lang.add.password }}</label>
450 <div class="col-sm-10">
451 <input type="password" class="form-control" name="password1" required>
452 </div>
453 </div>
454 <div class="form-group">
455 <label class="control-label col-sm-2" for="enc1">{{ lang.add.enc_method }}</label>
456 <div class="col-sm-10">
457 <select name="enc1" title="{{ lang.add.select }}" required>
458 <option value="SSL" selected>SSL</option>
459 <option value="TLS">STARTTLS</option>
460 <option value="PLAIN">PLAIN</option>
461 </select>
462 </div>
463 </div>
464 <div class="form-group">
465 <label class="control-label col-sm-2" for="mins_interval">{{ lang.add.mins_interval }}</label>
466 <div class="col-sm-10">
467 <input type="number" class="form-control" name="mins_interval" min="1" max="43800" value="20" required>
468 <small class="help-block">1-43800</small>
469 </div>
470 </div>
471 <div class="form-group">
472 <label class="control-label col-sm-2" for="subfolder2">{{ lang.edit.subfolder2|raw }}</label>
473 <div class="col-sm-10">
474 <input type="text" class="form-control" name="subfolder2" value="">
475 </div>
476 </div>
477 <div class="form-group">
478 <label class="control-label col-sm-2" for="maxage">{{ lang.edit.maxage|raw }}</label>
479 <div class="col-sm-10">
480 <input type="number" class="form-control" name="maxage" min="0" max="32000" value="0">
481 <small class="help-block">0-32000</small>
482 </div>
483 </div>
484 <div class="form-group">
485 <label class="control-label col-sm-2" for="maxbytespersecond">{{ lang.edit.maxbytespersecond|raw }}</label>
486 <div class="col-sm-10">
487 <input type="number" class="form-control" name="maxbytespersecond" min="0" max="125000000" value="0">
488 <small class="help-block">0-125000000</small>
489 </div>
490 </div>
491 <div class="form-group">
492 <label class="control-label col-sm-2" for="timeout1">{{ lang.edit.timeout1 }}</label>
493 <div class="col-sm-10">
494 <input type="number" class="form-control" name="timeout1" min="1" max="32000" value="600">
495 <small class="help-block">1-32000</small>
496 </div>
497 </div>
498 <div class="form-group">
499 <label class="control-label col-sm-2" for="timeout2">{{ lang.edit.timeout2 }}</label>
500 <div class="col-sm-10">
501 <input type="number" class="form-control" name="timeout2" min="1" max="32000" value="600">
502 <small class="help-block">1-32000</small>
503 </div>
504 </div>
505 <div class="form-group">
506 <label class="control-label col-sm-2" for="exclude">{{ lang.add.exclude }}</label>
507 <div class="col-sm-10">
508 <input type="text" class="form-control" name="exclude" value="(?i)spam|(?i)junk">
509 </div>
510 </div>
511 <div class="form-group">
512 <label class="control-label col-sm-2" for="custom_params">{{ lang.add.custom_params }}</label>
513 <div class="col-sm-10">
514 <input type="text" class="form-control" name="custom_params" placeholder="--dry --some-param=xy --other-param=yx">
515 <small class="help-block">{{ lang.add.custom_params_hint }}</small>
516 </div>
517 </div>
518 <div class="form-group">
519 <div class="col-sm-offset-2 col-sm-10">
520 <div class="checkbox">
521 <label><input type="checkbox" value="1" name="delete2duplicates" checked> {{ lang.add.delete2duplicates }} (--delete2duplicates)</label>
522 </div>
523 </div>
524 </div>
525 <div class="form-group">
526 <div class="col-sm-offset-2 col-sm-10">
527 <div class="checkbox">
528 <label><input type="checkbox" value="1" name="delete1"> {{ lang.add.delete1 }} (--delete1)</label>
529 </div>
530 </div>
531 </div>
532 <div class="form-group">
533 <div class="col-sm-offset-2 col-sm-10">
534 <div class="checkbox">
535 <label><input type="checkbox" value="1" name="delete2"> {{ lang.add.delete2 }} (--delete2)</label>
536 </div>
537 </div>
538 </div>
539 <div class="form-group">
540 <div class="col-sm-offset-2 col-sm-10">
541 <div class="checkbox">
542 <label><input type="checkbox" value="1" name="automap" checked> {{ lang.add.automap }} (--automap)</label>
543 </div>
544 </div>
545 </div>
546 <div class="form-group">
547 <div class="col-sm-offset-2 col-sm-10">
548 <div class="checkbox">
549 <label><input type="checkbox" value="1" name="skipcrossduplicates"> {{ lang.add.skipcrossduplicates }} (--skipcrossduplicates)</label>
550 </div>
551 </div>
552 </div>
553 <div class="form-group">
554 <div class="col-sm-offset-2 col-sm-10">
555 <div class="checkbox">
556 <label><input type="checkbox" value="1" name="subscribeall" checked> {{ lang.add.subscribeall }} (--subscribeall)</label>
557 </div>
558 </div>
559 </div>
560 <div class="form-group">
561 <div class="col-sm-offset-2 col-sm-10">
562 <div class="checkbox">
563 <label><input type="checkbox" value="1" name="active" checked> {{ lang.add.active }}</label>
564 </div>
565 </div>
566 </div>
567 <div class="form-group">
568 <div class="col-sm-offset-2 col-sm-10">
569 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" data-action="add_item" data-id="add_syncjob" data-api-url='add/syncjob' data-api-attr='{}' href="#">{{ lang.admin.add }}</button>
570 </div>
571 </div>
572 </form>
573 </div>
574 </div>
575 </div>
576</div><!-- add sync job modal -->
577<!-- add add_filter modal -->
578<div class="modal fade" id="addFilterModalAdmin" tabindex="-1" role="dialog" aria-hidden="true">
579 <div class="modal-dialog modal-lg">
580 <div class="modal-content">
581 <div class="modal-header">
582 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
583 <h3 class="modal-title">Filter</h3>
584 </div>
585 <div class="modal-body">
586 <form class="form-horizontal" data-cached-form="true" role="form" data-id="add_filter">
587 <div class="form-group">
588 <label class="control-label col-sm-2" for="username">{{ lang.add.username }}</label>
589 <div class="col-sm-10">
590 <select data-live-search="true" name="username" required>
591 {% for mailbox in mailboxes %}
592 <option>{{ mailbox }}</option>
593 {% endfor %}
594 </select>
595 </div>
596 </div>
597 <div class="form-group">
598 <label class="control-label col-sm-2" for="filter_type">{{ lang.add.sieve_type }}</label>
599 <div class="col-sm-10">
600 <select id="addFilterType" name="filter_type" required>
601 <option value="prefilter">Prefilter</option>
602 <option value="postfilter">Postfilter</option>
603 </select>
604 </div>
605 </div>
606 <div class="form-group">
607 <label class="control-label col-sm-2" for="script_desc">{{ lang.add.sieve_desc }}</label>
608 <div class="col-sm-10">
609 <input type="text" class="form-control" id="script_desc" name="script_desc" required maxlength="255">
610 </div>
611 </div>
612 <div class="form-group">
613 <label class="control-label col-sm-2" for="script_data">Script:</label>
614 <div class="col-sm-10">
615 <textarea autocorrect="off" spellcheck="false" autocapitalize="none" class="form-control textarea-code script_data" rows="20" name="script_data" required></textarea>
616 </div>
617 </div>
618 <div class="form-group">
619 <div class="col-sm-offset-2 col-sm-10">
620 <p class="help-block">{{ lang.add.activate_filter_warn }}</p>
621 <div class="checkbox">
622 <label><input type="checkbox" value="1" name="active" checked> {{ lang.add.active }}</label>
623 </div>
624 </div>
625 </div>
626 <div class="form-group">
627 <div class="col-sm-offset-2 col-sm-10 add_filter_btns btn-group">
628 <button class="btn btn-xs-lg btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default validate_sieve" href="#">{{ lang.add.validate }}</button>
629 <button class="btn btn-xs-lg btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success add_sieve_script" data-action="add_item" data-id="add_filter" data-api-url='add/filter' data-api-attr='{}' href="#" disabled>{{ lang.admin.add }}</button>
630 <div class="clearfix visible-xs"></div>
631 </div>
632 </div>
633 </form>
634 {{ lang.mailbox.sieve_preset_header|raw }}
635 <ul id="sieve_presets"></ul>
636 </div>
637 </div>
638 </div>
639</div><!-- add add_filter modal -->
640<!-- add add_bcc modal -->
641<div class="modal fade" id="addBCCModalAdmin" tabindex="-1" role="dialog" aria-hidden="true">
642 <div class="modal-dialog modal-lg">
643 <div class="modal-content">
644 <div class="modal-header">
645 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
646 <h3 class="modal-title">{{ lang.mailbox.bcc_maps }}</h3>
647 </div>
648 <div class="modal-body">
649 <form class="form-horizontal" data-cached-form="true" role="form" data-id="add_bcc">
650 <div class="form-group">
651 <label class="control-label col-sm-2" for="local_dest">{{ lang.mailbox.bcc_local_dest }}</label>
652 <div class="col-sm-10">
653 <select id="bcc-local-dest" data-live-search="true" data-size="20" name="local_dest" required>
654 <option selected>{{ lang.footer.loading }}</option>
655 </select>
656 </div>
657 </div>
658 <div class="form-group">
659 <label class="control-label col-sm-2" for="type">{{ lang.mailbox.bcc_map_type }}</label>
660 <div class="col-sm-10">
661 <select name="type" required>
662 <option value="sender">{{ lang.mailbox.bcc_sender_map }}</option>
663 <option value="rcpt">{{ lang.mailbox.bcc_rcpt_map }}</option>
664 </select>
665 </div>
666 </div>
667 <div class="form-group">
668 <label class="control-label col-sm-2" for="bcc_dest">{{ lang.mailbox.bcc_destination }}</label>
669 <div class="col-sm-10">
670 <input type="text" class="form-control" name="bcc_dest">
671 <small>{{ lang.add.bcc_dest_format|raw }}</small>
672 </div>
673 </div>
674 <div class="form-group">
675 <div class="col-sm-offset-2 col-sm-10">
676 <div class="checkbox">
677 <label><input type="checkbox" value="1" name="active" checked> {{ lang.add.active }}</label>
678 </div>
679 </div>
680 </div>
681 <div class="form-group">
682 <div class="col-sm-offset-2 col-sm-10">
683 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" data-action="add_item" data-id="add_bcc" data-api-url='add/bcc' data-api-attr='{}' href="#">{{ lang.admin.add }}</button>
684 </div>
685 </div>
686 </form>
687 </div>
688 </div>
689 </div>
690</div><!-- add add_bcc modal -->
691<!-- add add_recipient_map modal -->
692<div class="modal fade" id="addRecipientMapModalAdmin" tabindex="-1" role="dialog" aria-hidden="true">
693 <div class="modal-dialog modal-lg">
694 <div class="modal-content">
695 <div class="modal-header">
696 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
697 <h3 class="modal-title">{{ lang.mailbox.recipient_maps }}</h3>
698 </div>
699 <div class="modal-body">
700 <form class="form-horizontal" data-cached-form="true" role="form" data-id="add_recipient_map">
701 <div class="form-group">
702 <label class="control-label col-sm-2" for="recipient_map_old">{{ lang.mailbox.recipient_map_old }}</label>
703 <div class="col-sm-10">
704 <input type="text" class="form-control" name="recipient_map_old">
705 <small>{{ lang.mailbox.recipient_map_old_info }}</small>
706 </div>
707 </div>
708 <div class="form-group">
709 <label class="control-label col-sm-2" for="recipient_map_new">{{ lang.mailbox.recipient_map_new }}</label>
710 <div class="col-sm-10">
711 <input type="text" class="form-control" name="recipient_map_new">
712 <small>{{ lang.mailbox.recipient_map_new_info }}</small>
713 </div>
714 </div>
715 <div class="form-group">
716 <div class="col-sm-offset-2 col-sm-10">
717 <div class="checkbox">
718 <label><input type="checkbox" value="1" name="active" checked> {{ lang.add.active }}</label>
719 </div>
720 </div>
721 </div>
722 <div class="form-group">
723 <div class="col-sm-offset-2 col-sm-10">
724 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" data-action="add_item" data-id="add_recipient_map" data-api-url='add/recipient_map' data-api-attr='{}' href="#">{{ lang.admin.add }}</button>
725 </div>
726 </div>
727 </form>
728 </div>
729 </div>
730 </div>
731</div><!-- add add_recipient_map modal -->
732<!-- add add_tls_policy_map modal -->
733<div class="modal fade" id="addTLSPolicyMapAdmin" tabindex="-1" role="dialog" aria-hidden="true">
734 <div class="modal-dialog modal-lg">
735 <div class="modal-content">
736 <div class="modal-header">
737 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
738 <h3 class="modal-title">{{ lang.mailbox.tls_policy_maps }}</h3>
739 </div>
740 <div class="modal-body">
741 <form class="form-horizontal" data-cached-form="true" role="form" data-id="add_tls_policy_map">
742 <div class="form-group">
743 <label class="control-label col-sm-2" for="dest">{{ lang.mailbox.tls_map_dest }}</label>
744 <div class="col-sm-10">
745 <input type="text" class="form-control" name="dest">
746 <small>{{ lang.mailbox.tls_map_dest_info }}</small>
747 </div>
748 </div>
749 <div class="form-group">
750 <label class="control-label col-sm-2" for="policy">{{ lang.mailbox.tls_map_policy }}</label>
751 <div class="col-sm-10">
752 <select class="full-width-select" name="policy" required>
753 <option value="none">none</option>
754 <option value="may">may</option>
755 <option value="encrypt">encrypt</option>
756 <option value="dane">dane</option>
757 <option value="dane-only">dane-only</option>
758 <option value="fingerprint">fingerprint</option>
759 <option value="verify">verify</option>
760 <option value="secure">secure</option>
761 </select>
762 </div>
763 </div>
764 <div class="form-group">
765 <label class="control-label col-sm-2" for="parameters">{{ lang.mailbox.tls_map_parameters }}</label>
766 <div class="col-sm-10">
767 <input type="text" class="form-control" name="parameters">
768 <small>{{ lang.mailbox.tls_map_parameters_info }}</small>
769 </div>
770 </div>
771 <div class="form-group">
772 <div class="col-sm-offset-2 col-sm-10">
773 <div class="checkbox">
774 <label><input type="checkbox" value="1" name="active" checked> {{ lang.add.active }}</label>
775 </div>
776 </div>
777 </div>
778 <div class="form-group">
779 <div class="col-sm-offset-2 col-sm-10">
780 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" data-action="add_item" data-id="add_tls_policy_map" data-api-url='add/tls-policy-map' data-api-attr='{}' href="#">{{ lang.admin.add }}</button>
781 </div>
782 </div>
783 </form>
784 </div>
785 </div>
786 </div>
787</div><!-- add add_tls_policy_map modal -->
788<!-- log modal -->
789<div class="modal fade" id="syncjobLogModal" tabindex="-1" role="dialog" aria-labelledby="syncjobLogModalLabel">
790 <div class="modal-dialog modal-lg" role="document">
791 <div class="modal-content">
792 <div class="modal-header">
793 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
794 <h3 class="modal-title">Log</h3>
795 </div>
796 <div class="modal-body">
797 <textarea class="form-control" rows="20" id="logText" spellcheck="false"></textarea>
798 </div>
799 </div>
800 </div>
801</div><!-- log modal -->
802<!-- DNS info modal -->
803<div class="modal fade" id="dnsInfoModal" tabindex="-1" role="dialog" aria-labelledby="dnsInfoModalLabel">
804 <div class="modal-dialog modal-lg" role="document">
805 <div class="modal-content">
806 <div class="modal-header">
807 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
808 <h3 class="modal-title">{{ lang.diagnostics.dns_records }}</h3>
809 </div>
810 <div class="modal-body">
811 <p>{{ lang.diagnostics.dns_records_24hours }}</p>
812 <div class="dns-modal-body"></div>
813 <p>{{ lang.diagnostics.dns_records_docs|raw }}</p>
814 </div>
815 </div>
816 </div>
817</div><!-- DNS info modal -->