2021-09-22 20:47:10 +02:00
|
|
|
{% extends 'base.twig' %}
|
|
|
|
|
|
|
|
{% block content %}
|
2022-06-06 20:38:24 +02:00
|
|
|
<div id="admin-content" class="responsive-tabs">
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link dropdown-toggle active" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">{{ lang.admin.access }}</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<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>
|
2023-03-14 15:10:46 +02:00
|
|
|
<li><button class="dropdown-item" data-bs-target="#tab-config-identity-provider" aria-selected="false" aria-controls="tab-config-identity-provider" role="tab" data-bs-toggle="tab">Identity Provider</button></li>
|
2022-06-06 20:38:24 +02:00
|
|
|
<!-- <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> -->
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2021-09-22 20:47:10 +02:00
|
|
|
|
2022-06-06 20:38:24 +02:00
|
|
|
<li class="nav-item dropdown">
|
2022-12-12 12:58:40 +02:00
|
|
|
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">{{ lang.admin.options }}</a>
|
2022-06-06 20:38:24 +02:00
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
2024-07-30 14:46:08 +02:00
|
|
|
<li><button class="dropdown-item" data-bs-target="#tab-config-password-settings" aria-selected="false" aria-controls="tab-config-password-settings" role="tab" data-bs-toggle="tab">{{ lang.admin.password_settings }}</button></li>
|
2022-06-06 20:38:24 +02:00
|
|
|
<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>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">{{ lang.admin.rspamd_global_filters }}</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<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>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="tab-content" style="padding-top:20px">
|
|
|
|
{% include 'admin/tab-config-admins.twig' %}
|
2023-03-14 15:10:46 +02:00
|
|
|
{% include 'admin/tab-config-identity-provider.twig' %}
|
2022-06-06 20:38:24 +02:00
|
|
|
{# {% include 'admin/tab-ldap.twig' %} #}
|
|
|
|
{% include 'admin/tab-config-oauth2.twig' %}
|
|
|
|
{% include 'admin/tab-config-rspamd.twig' %}
|
|
|
|
{% include 'admin/tab-routing.twig' %}
|
|
|
|
{% include 'admin/tab-config-dkim.twig' %}
|
|
|
|
{% include 'admin/tab-config-fwdhosts.twig' %}
|
|
|
|
{% include 'admin/tab-config-f2b.twig' %}
|
|
|
|
{% include 'admin/tab-config-quarantine.twig' %}
|
|
|
|
{% include 'admin/tab-config-quota.twig' %}
|
|
|
|
{% include 'admin/tab-config-rsettings.twig' %}
|
|
|
|
{% include 'admin/tab-config-customize.twig' %}
|
2024-07-30 14:46:08 +02:00
|
|
|
{% include 'admin/tab-config-password-settings.twig' %}
|
2022-06-06 20:38:24 +02:00
|
|
|
{% include 'admin/tab-sys-mails.twig' %}
|
|
|
|
{% include 'admin/tab-globalfilter-regex.twig' %}
|
|
|
|
</div>
|
|
|
|
</div> <!-- /col-md-12 -->
|
|
|
|
</div> <!-- /row -->
|
2023-01-26 00:50:39 +02:00
|
|
|
</div>
|
2021-09-22 20:47:10 +02:00
|
|
|
|
|
|
|
{% include 'modals/admin.twig' %}
|
|
|
|
|
|
|
|
<script type='text/javascript'>
|
|
|
|
var lang = {{ lang_admin|raw }};
|
2022-05-17 14:08:22 +02:00
|
|
|
var lang_datatables = {{ lang_datatables|raw }};
|
2021-09-22 20:47:10 +02:00
|
|
|
var admin_username = '{{ mailcow_cc_username }}';
|
|
|
|
var csrf_token = '{{ csrf_token }}';
|
2023-01-26 00:50:39 +02:00
|
|
|
var pagination_size = Math.trunc('{{ pagination_size }}');
|
|
|
|
var log_pagination_size = Math.trunc('{{ log_pagination_size }}');
|
2021-09-22 20:47:10 +02:00
|
|
|
</script>
|
|
|
|
{% endblock %}
|