blob: 863f87e9dfbae81a7456ee5a86645e883c17018e [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001{% extends 'base.twig' %}
2
3{% block content %}
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01004<div id="admin-content" class="responsive-tabs">
5 <ul class="nav nav-tabs" role="tablist">
6 <li class="nav-item dropdown">
7 <a class="nav-link dropdown-toggle active" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">{{ lang.admin.access }}</a>
8 <ul class="dropdown-menu">
9 <li><button class="dropdown-item active" data-bs-target="#tab-config-admins" aria-selected="false" aria-controls="tab-config-admins" role="tab" data-bs-toggle="tab">{{ lang.admin.admins }}</button></li>
10 <!-- <li><button class="dropdown-item" data-bs-target="#tab-config-ldap-admins" aria-controls="tab-config-ldap-admins" role="tab" data-bs-toggle="tab">{{ lang.admin.admins_ldap }}</button></li> -->
11 <li><button class="dropdown-item" data-bs-target="#tab-config-oauth2" aria-selected="false" aria-controls="tab-config-oauth2" role="tab" data-bs-toggle="tab">{{ lang.admin.oauth2_apps }}</button></li>
12 <li><button class="dropdown-item" data-bs-target="#tab-config-rspamd" aria-selected="false" aria-controls="tab-config-rspamd" role="tab" data-bs-toggle="tab">Rspamd UI</button></li>
13 </ul>
14 </li>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010015
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010016 <li class="nav-item dropdown">
17 <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">{{ lang.admin.options }}</a>
18 <ul class="dropdown-menu">
19 <li><button class="dropdown-item" data-bs-target="#tab-config-dkim" aria-selected="false" aria-controls="tab-config-dkim" role="tab" data-bs-toggle="tab">{{ lang.admin.dkim_keys }}</button></li>
20 <li><button class="dropdown-item" data-bs-target="#tab-config-fwdhosts" aria-selected="false" aria-controls="tab-config-fwdhosts" role="tab" data-bs-toggle="tab">{{ lang.admin.forwarding_hosts }}</button></li>
21 <li><button class="dropdown-item" data-bs-target="#tab-config-f2b" aria-selected="false" aria-controls="tab-config-f2b" role="tab" data-bs-toggle="tab">{{ lang.admin.f2b_parameters }}</button></li>
22 <li><button class="dropdown-item" data-bs-target="#tab-config-quarantine" aria-selected="false" aria-controls="tab-config-quarantine" role="tab" data-bs-toggle="tab">{{ lang.admin.quarantine }}</button></li>
23 <li><button class="dropdown-item" data-bs-target="#tab-config-quota" aria-selected="false" aria-controls="tab-config-quota" role="tab" data-bs-toggle="tab">{{ lang.admin.quota_notifications }}</button></li>
24 <li><button class="dropdown-item" data-bs-target="#tab-config-rsettings" aria-selected="false" aria-controls="tab-config-rsettings" role="tab" data-bs-toggle="tab">{{ lang.admin.rspamd_settings_map }}</button></li>
25 <li><button class="dropdown-item" data-bs-target="#tab-config-password-policy" aria-selected="false" aria-controls="tab-config-password-policy" role="tab" data-bs-toggle="tab">{{ lang.admin.password_policy }}</button></li>
26 <li><button class="dropdown-item" data-bs-target="#tab-config-customize" aria-selected="false" aria-controls="tab-config-customize" role="tab" data-bs-toggle="tab">{{ lang.admin.customize }}</button></li>
27 </ul>
28 </li>
29 <li role="presentation" class="nav-item"><button class="nav-link" data-bs-target="#tab-routing" aria-selected="false" aria-controls="tab-routing" role="tab" data-bs-toggle="tab">{{ lang.admin.routing }}</button></li>
30 <li role="presentation" class="nav-item"><button class="nav-link" data-bs-target="#tab-sys-mails" aria-selected="false" aria-controls="tab-sys-mails" role="tab" data-bs-toggle="tab">{{ lang.admin.sys_mails }}</button></li>
31 <li class="nav-item dropdown">
32 <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">{{ lang.admin.rspamd_global_filters }}</a>
33 <ul class="dropdown-menu">
34 <li><button class="dropdown-item" data-bs-target="#tab-globalfilter-regex" aria-selected="false" aria-controls="tab-globalfilter-regex" role="tab" data-bs-toggle="tab">{{ lang.admin.regex_maps }}</button></li>
35 </ul>
36 </li>
37 </ul>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010038
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010039 <div class="row">
40 <div class="col-md-12">
41 <div class="tab-content" style="padding-top:20px">
42 {% include 'admin/tab-config-admins.twig' %}
43 {# {% include 'admin/tab-ldap.twig' %} #}
44 {% include 'admin/tab-config-oauth2.twig' %}
45 {% include 'admin/tab-config-rspamd.twig' %}
46 {% include 'admin/tab-routing.twig' %}
47 {% include 'admin/tab-config-dkim.twig' %}
48 {% include 'admin/tab-config-fwdhosts.twig' %}
49 {% include 'admin/tab-config-f2b.twig' %}
50 {% include 'admin/tab-config-quarantine.twig' %}
51 {% include 'admin/tab-config-quota.twig' %}
52 {% include 'admin/tab-config-rsettings.twig' %}
53 {% include 'admin/tab-config-customize.twig' %}
54 {% include 'admin/tab-config-password-policy.twig' %}
55 {% include 'admin/tab-sys-mails.twig' %}
56 {% include 'admin/tab-globalfilter-regex.twig' %}
57 </div>
58 </div> <!-- /col-md-12 -->
59 </div> <!-- /row -->
60</div>
61
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010062{% include 'modals/admin.twig' %}
63
64<script type='text/javascript'>
65var lang = {{ lang_admin|raw }};
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010066var lang_datatables = {{ lang_datatables|raw }};
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010067var admin_username = '{{ mailcow_cc_username }}';
68var csrf_token = '{{ csrf_token }}';
69var pagination_size = '{{ pagination_size }}';
70var log_pagination_size = '{{ log_pagination_size }}';
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010071</script>
72{% endblock %}