blob: 44a8b43859952169e59e6e612b6f1978af7e9c44 [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001<div role="tabpanel" class="tab-pane" id="tab-sys-mails">
2 <div class="panel panel-default">
3 <div class="panel-heading">{{ lang.admin.sys_mails }}</div>
4 <div class="panel-body">
5 <form class="form-horizontal" autocapitalize="none" data-id="admin" autocorrect="off" role="form" method="post">
6 <div class="form-group">
7 <label class="control-label col-sm-2" for="admin_mass_from">{{ lang.admin.from }}:</label>
8 <div class="col-sm-10">
9 <input type="email" class="form-control" id="admin_mass_from" name="mass_from" value="noreply@{{ mailcow_hostname }}" required>
10 </div>
11 </div>
12 <div class="form-group">
13 <label class="control-label col-sm-2" for="admin_mass_subject">{{ lang.admin.subject }}:</label>
14 <div class="col-sm-10">
15 <input type="text" class="form-control" id="admin_mass_subject" name="mass_subject" required>
16 </div>
17 </div>
18 {% for domain in all_domains %}
19
20 {% endfor %}
21 <div class="form-group">
22 <label class="control-label col-sm-2" for="mass_subject">{{ lang.admin.include_exclude }}:
23 <p class="help-block">{{ lang.admin.include_exclude_info|raw }}</p>
24 </label>
25 <div class="col-sm-5">
26 <label class="control-label" for="mass_exclude">{{ lang.admin.excludes }}:</label>
27 <select id="mass_exclude" name="mass_exclude[]" data-live-search="true" data-width="100%" size="30" multiple>
28 {% for mailbox in mailboxes %}
29 <option>{{ mailbox }}</option>
30 {% endfor %}
31 </select>
32 </div>
33 <div class="col-sm-5">
34 <label class="control-label" for="mass_include">{{ lang.admin.includes }}:</label>
35 <select id="mass_include" name="mass_include[]" data-live-search="true" data-width="100%" size="30" multiple>
36 {% for mailbox in mailboxes %}
37 <option>{{ mailbox }}</option>
38 {% endfor %}
39 </select>
40 </div>
41 </div>
42 <div class="form-group">
43 <label class="control-label col-sm-2" for="mass_text">{{ lang.admin.text }}:</label>
44 <div class="col-sm-10">
45 <textarea class="form-control" rows="10" name="mass_text" id="mass_text" required></textarea>
46 </div>
47 </div>
48 <div class="form-group">
49 <label class="control-label col-sm-2" for="mass_html">{{ lang.admin.html }} ({{ lang.admin.optional }}):</label>
50 <div class="col-sm-10">
51 <textarea class="form-control" rows="10" name="mass_html" id="mass_html"></textarea>
52 <p class="small"><i class="bi bi-arrow-return-right"></i> <a target="_blank" href="https://templates.mailchimp.com/resources/html-to-text/">{{ lang.admin.convert_html_to_text }}</a></p>
53 </div>
54 </div>
55 <div class="form-group">
56 <div class="col-sm-offset-2 col-sm-10">
57 <label>
58 <input type="checkbox" id="mass_disarm"> {{ lang.admin.activate_send }}
59 </label>
60 </div>
61 </div>
62 <div class="form-group">
63 <div class="col-sm-offset-2 col-sm-10">
64 <button class="btn btn-sm visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" type="submit" id="mass_send" name="mass_send" disabled><i class="bi bi-envelope-fill"></i> {{ lang.admin.send }}</button>
65 </div>
66 </div>
67 </form>
68 </div>
69 </div>
70</div>