blob: 056d193b9e2922ef3094b143c72d698241f6ae59 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001<div role="tabpanel" class="tab-pane fade" id="tab-sys-mails" role="tabpanel" aria-labelledby="tab-sys-mails">
2 <div class="card mb-4">
3 <div class="card-header d-flex fs-5">
4 <button class="btn d-md-none flex-grow-1 text-start" data-bs-target="#collapse-tab-sys-mails" data-bs-toggle="collapse" aria-controls="ollapse-tab-sys-mails">
5 {{ lang.admin.sys_mails }}
6 </button>
7 <span class="d-none d-md-block">{{ lang.admin.sys_mails }}</span>
8 </div>
9 <div id="collapse-tab-sys-mails" class="card-body collapse" data-bs-parent="#admin-content">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010010 <form class="form-horizontal" autocapitalize="none" data-id="admin" autocorrect="off" role="form" method="post">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010011 <div class="row mb-2">
12 <label class="control-label col-sm-2 text-sm-end" for="admin_mass_from">{{ lang.admin.from }}:</label>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010013 <div class="col-sm-10">
14 <input type="email" class="form-control" id="admin_mass_from" name="mass_from" value="noreply@{{ mailcow_hostname }}" required>
15 </div>
16 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010017 <div class="row mb-4">
18 <label class="control-label col-sm-2 text-sm-end" for="admin_mass_subject">{{ lang.admin.subject }}:</label>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010019 <div class="col-sm-10">
20 <input type="text" class="form-control" id="admin_mass_subject" name="mass_subject" required>
21 </div>
22 </div>
23 {% for domain in all_domains %}
24
25 {% endfor %}
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010026 <div class="row mb-4">
27 <label class="control-label col-sm-2 text-sm-end" for="mass_subject">{{ lang.admin.include_exclude }}:
28 <p class="text-muted">{{ lang.admin.include_exclude_info|raw }}</p>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010029 </label>
30 <div class="col-sm-5">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010031 <label class="d-block" for="mass_exclude">{{ lang.admin.excludes }}:</label>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010032 <select id="mass_exclude" name="mass_exclude[]" data-live-search="true" data-width="100%" size="30" multiple>
33 {% for mailbox in mailboxes %}
34 <option>{{ mailbox }}</option>
35 {% endfor %}
36 </select>
37 </div>
38 <div class="col-sm-5">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010039 <label class="d-block" for="mass_include">{{ lang.admin.includes }}:</label>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010040 <select id="mass_include" name="mass_include[]" data-live-search="true" data-width="100%" size="30" multiple>
41 {% for mailbox in mailboxes %}
42 <option>{{ mailbox }}</option>
43 {% endfor %}
44 </select>
45 </div>
46 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010047 <div class="row mb-2">
48 <label class="control-label col-sm-2 text-sm-end" for="mass_text">{{ lang.admin.text }}:</label>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010049 <div class="col-sm-10">
50 <textarea class="form-control" rows="10" name="mass_text" id="mass_text" required></textarea>
51 </div>
52 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010053 <div class="row mb-4">
54 <label class="control-label col-sm-2 text-sm-end" for="mass_html">{{ lang.admin.html }} ({{ lang.admin.optional }}):</label>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010055 <div class="col-sm-10">
56 <textarea class="form-control" rows="10" name="mass_html" id="mass_html"></textarea>
57 <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>
58 </div>
59 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010060 <div class="row mb-2">
61 <div class="offset-sm-2 col-sm-10">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010062 <label>
63 <input type="checkbox" id="mass_disarm"> {{ lang.admin.activate_send }}
64 </label>
65 </div>
66 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010067 <div class="row mb-2">
68 <div class="offset-sm-2 col-sm-10">
69 <button class="btn btn-sm d-block d-sm-inline btn-success" type="submit" id="mass_send" name="mass_send" disabled><i class="bi bi-envelope-fill"></i> {{ lang.admin.send }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010070 </div>
71 </div>
72 </form>
73 </div>
74 </div>
75</div>