Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 1 | <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 Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 10 | <form class="form-horizontal" autocapitalize="none" data-id="admin" autocorrect="off" role="form" method="post"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 11 | <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 Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 13 | <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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 17 | <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 Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 19 | <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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 26 | <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 Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 29 | </label> |
| 30 | <div class="col-sm-5"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 31 | <label class="d-block" for="mass_exclude">{{ lang.admin.excludes }}:</label> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 32 | <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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 39 | <label class="d-block" for="mass_include">{{ lang.admin.includes }}:</label> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 40 | <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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 47 | <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 Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 49 | <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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 53 | <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 Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 55 | <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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 60 | <div class="row mb-2"> |
| 61 | <div class="offset-sm-2 col-sm-10"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 62 | <label> |
| 63 | <input type="checkbox" id="mass_disarm"> {{ lang.admin.activate_send }} |
| 64 | </label> |
| 65 | </div> |
| 66 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 67 | <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 Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 70 | </div> |
| 71 | </div> |
| 72 | </form> |
| 73 | </div> |
| 74 | </div> |
| 75 | </div> |