Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 1 | {% extends 'base.twig' %} |
| 2 | |
| 3 | {% block content %} |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 4 | <div id="mail-content" class="responsive-tabs"> |
| 5 | <ul class="nav nav-tabs" role="tablist"> |
| 6 | <li class="nav-item dropdown" role="presentation"> |
| 7 | <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.domains }}</a> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 8 | <ul class="dropdown-menu"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 9 | <li><button class="dropdown-item" aria-selected="false" aria-controls="tab-domains" role="tab" data-bs-toggle="tab" data-bs-target="#tab-domains">{{ lang.mailbox.domains }}</button></li> |
| 10 | <li><button class="dropdown-item {% if mailcow_cc_role != 'admin' %} d-none{% endif %}" aria-selected="false" aria-controls="tab-templates-domains" role="tab" data-bs-toggle="tab" data-bs-target="#tab-templates-domains">{{ lang.mailbox.templates }}</button></li> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 11 | </ul> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 12 | </li> |
| 13 | <li class="nav-item dropdown" role="presentation"> |
| 14 | <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.mailboxes }}</a> |
| 15 | <ul class="dropdown-menu"> |
| 16 | <li><button class="dropdown-item" aria-selected="false" aria-controls="tab-mailboxes" role="tab" data-bs-toggle="tab" data-bs-target="#tab-mailboxes">{{ lang.mailbox.mailboxes }}</button></li> |
| 17 | <li><button class="dropdown-item {% if mailcow_cc_role != 'admin' %} d-none{% endif %}" aria-selected="false" aria-controls="tab-templates-mbox" role="tab" data-bs-toggle="tab" data-bs-target="#tab-templates-mbox">{{ lang.mailbox.templates }}</button></li> |
| 18 | </ul> |
| 19 | </li> |
| 20 | <li class="nav-item" role="presentation"><button class="nav-link" aria-controls="tab-resources" role="tab" data-bs-toggle="tab" data-bs-target="#tab-resources">{{ lang.mailbox.resources }}</button></li> |
| 21 | <li class="nav-item dropdown"> |
| 22 | <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" data-bs-target="#">{{ lang.mailbox.aliases }}</a> |
| 23 | <ul class="dropdown-menu"> |
| 24 | <li role="presentation"><button class="dropdown-item" aria-selected="false" aria-controls="tab-mbox-aliases" role="tab" data-bs-toggle="tab" data-bs-target="#tab-mbox-aliases">{{ lang.mailbox.aliases }}</button></li> |
| 25 | <li role="presentation"><button class="dropdown-item" aria-selected="false" aria-controls="tab-domain-aliases" role="tab" data-bs-toggle="tab" data-bs-target="#tab-domain-aliases">{{ lang.mailbox.domain_aliases }}</button></li> |
| 26 | </ul> |
| 27 | </li> |
| 28 | <li class="nav-item" role="presentation"><button class="nav-link" aria-selected="false" aria-controls="tab-syncjobs" role="tab" data-bs-toggle="tab" data-bs-target="#tab-syncjobs">{{ lang.mailbox.sync_jobs }}</button></li> |
| 29 | <li class="nav-item" role="presentation"><button class="nav-link" aria-selected="false" aria-controls="tab-filters" role="tab" data-bs-toggle="tab" data-bs-target="#tab-filters">{{ lang.mailbox.filters }}</button></li> |
| 30 | <li class="nav-item" role="presentation"><button class="nav-link" aria-selected="false" aria-controls="tab-bcc" role="tab" data-bs-toggle="tab" data-bs-target="#tab-bcc">{{ lang.mailbox.address_rewriting }}</button></li> |
| 31 | <li class="nav-item" role="presentation"{% if mailcow_cc_role != 'admin' %} class="d-none"{% endif %}><button class="nav-link" aria-selected="false" aria-controls="tab-tls-policy" role="tab" data-bs-toggle="tab" data-bs-target="#tab-tls-policy">{{ lang.mailbox.tls_policy_maps }}</button></li> |
| 32 | </ul> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 33 | |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 34 | <div class="row"> |
| 35 | <div class="col-md-12"> |
| 36 | <div class="tab-content" style="padding-top:20px"> |
| 37 | {% include 'mailbox/tab-domains.twig' %} |
| 38 | {% include 'mailbox/tab-templates-domains.twig' %} |
| 39 | {% include 'mailbox/tab-mailboxes.twig' %} |
| 40 | {% include 'mailbox/tab-templates-mbox.twig' %} |
| 41 | {% include 'mailbox/tab-resources.twig' %} |
| 42 | {% include 'mailbox/tab-domain-aliases.twig' %} |
| 43 | {% include 'mailbox/tab-mbox-aliases.twig' %} |
| 44 | {% include 'mailbox/tab-syncjobs.twig' %} |
| 45 | {% include 'mailbox/tab-filters.twig' %} |
| 46 | {% include 'mailbox/tab-bcc.twig' %} |
| 47 | {% include 'mailbox/tab-tls-policy.twig' %} |
| 48 | </div> <!-- /tab-content --> |
| 49 | </div> <!-- /col-md-12 --> |
| 50 | </div> <!-- /row --> |
| 51 | </div> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 52 | |
| 53 | {% include 'modals/mailbox.twig' %} |
| 54 | |
| 55 | <script type='text/javascript'> |
| 56 | var acl = '{{ acl_json|raw }}'; |
| 57 | var lang = {{ lang_mailbox|raw }}; |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 58 | var lang_rl = {{ lang_rl|raw }}; |
| 59 | var lang_datatables = {{ lang_datatables|raw }}; |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 60 | var csrf_token = '{{ csrf_token }}'; |
| 61 | var pagination_size = '{{ pagination_size }}'; |
| 62 | var role = '{{ role }}'; |
| 63 | var is_dual = {{ is_dual }}; |
| 64 | var ALLOW_ADMIN_EMAIL_LOGIN = {{ allow_admin_email_login }}; |
| 65 | </script> |
| 66 | {% endblock %} |