[Web] WIP: Add LDAP administrators

master
andryyy 2021-04-16 20:38:26 +02:00
parent 971434ddd3
commit c5fc755882
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
3 changed files with 29 additions and 4 deletions

View File

@ -13,9 +13,18 @@ if (!isset($_SESSION['gal']) && $license_cache = $redis->Get('LICENSE_STATUS_CAC
<div class="container"> <div class="container">
<ul class="nav nav-tabs" role="tablist"> <ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#tab-access" aria-controls="tab-access" role="tab" data-toggle="tab"><?=$lang['admin']['access'];?></a></li> <li class="dropdown active">
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#"><?=$lang['admin']['configuration'];?> <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?=$lang['admin']['access'];?><span class="caret"></span></a>
<span class="caret"></span></a> <ul class="dropdown-menu">
<li class="active" data-dont-remember="1" role="presentation"><a href="#tab-config-admins" aria-controls="tab-config-admins" role="tab" data-toggle="tab"><?=$lang['admin']['admins'];?></a></li>
<!-- <li role="presentation"><a href="#tab-config-ldap-admins" aria-controls="tab-config-ldap-admins" role="tab" data-toggle="tab"><?=$lang['admin']['admins_ldap'];?></a></li> -->
<li role="presentation"><a href="#tab-config-oauth2" aria-controls="tab-config-oauth2" role="tab" data-toggle="tab">OAuth2 Apps</a></li>
<li role="presentation"><a href="#tab-config-rspamd" aria-controls="tab-config-rspamd" role="tab" data-toggle="tab">Rspamd UI</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><?=$lang['admin']['configuration'];?><span class="caret"></span></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li role="presentation"><a href="#tab-config-dkim" aria-controls="tab-config-dkim" role="tab" data-toggle="tab"><?=$lang['admin']['dkim_keys'];?></a></li> <li role="presentation"><a href="#tab-config-dkim" aria-controls="tab-config-dkim" role="tab" data-toggle="tab"><?=$lang['admin']['dkim_keys'];?></a></li>
<li role="presentation"><a href="#tab-config-fwdhosts" aria-controls="tab-config-fwdhosts" role="tab" data-toggle="tab"><?=$lang['admin']['forwarding_hosts'];?></a></li> <li role="presentation"><a href="#tab-config-fwdhosts" aria-controls="tab-config-fwdhosts" role="tab" data-toggle="tab"><?=$lang['admin']['forwarding_hosts'];?></a></li>
@ -41,7 +50,7 @@ if (!isset($_SESSION['gal']) && $license_cache = $redis->Get('LICENSE_STATUS_CAC
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="tab-content" style="padding-top:20px"> <div class="tab-content" style="padding-top:20px">
<div role="tabpanel" class="tab-pane active" id="tab-access"> <div role="tabpanel" class="tab-pane active" id="tab-config-admins">
<div class="panel panel-danger"> <div class="panel panel-danger">
<div class="panel-heading"><?=$lang['admin']['admin_details'];?></div> <div class="panel-heading"><?=$lang['admin']['admin_details'];?></div>
<div class="panel-body"> <div class="panel-body">
@ -322,7 +331,17 @@ if (!isset($_SESSION['gal']) && $license_cache = $redis->Get('LICENSE_STATUS_CAC
</div> </div>
</div> </div>
</div> </div>
</div>
<div role="tabpanel" class="tab-pane" id="tab-config-ldap-admins">
<div class="panel panel-default">
<div class="panel-heading"><?=$lang['admin']['admins_ldap'];?></div>
<div class="panel-body">
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="tab-config-oauth2">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading">OAuth2 Apps</div> <div class="panel-heading">OAuth2 Apps</div>
<div class="panel-body"> <div class="panel-body">
@ -346,7 +365,9 @@ if (!isset($_SESSION['gal']) && $license_cache = $redis->Get('LICENSE_STATUS_CAC
</div> </div>
</div> </div>
</div> </div>
</div>
<div role="tabpanel" class="tab-pane" id="tab-config-rspamd">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title">Rspamd UI</h3> <h3 class="panel-title">Rspamd UI</h3>

View File

@ -135,6 +135,8 @@
"add_transports_hint": "Bitte beachten Sie, dass Anmeldedaten unverschlüsselt gespeichert werden.", "add_transports_hint": "Bitte beachten Sie, dass Anmeldedaten unverschlüsselt gespeichert werden.",
"additional_rows": " zusätzliche Zeilen geladen", "additional_rows": " zusätzliche Zeilen geladen",
"admin": "Administrator", "admin": "Administrator",
"admins": "Administratoren",
"admins_ldap": "LDAP-Administratoren",
"admin_details": "Administrator bearbeiten", "admin_details": "Administrator bearbeiten",
"admin_domains": "Domain-Zuweisungen", "admin_domains": "Domain-Zuweisungen",
"advanced_settings": "Erweiterte Einstellungen", "advanced_settings": "Erweiterte Einstellungen",

View File

@ -133,6 +133,8 @@
"add_transports_hint": "Please be aware that authentication data, if any, will be stored as plain text.", "add_transports_hint": "Please be aware that authentication data, if any, will be stored as plain text.",
"additional_rows": " additional rows were added", "additional_rows": " additional rows were added",
"admin": "Administrator", "admin": "Administrator",
"admins": "Administrators",
"admins_ldap": "LDAP Administrators",
"admin_details": "Edit administrator details", "admin_details": "Edit administrator details",
"admin_domains": "Domain assignments", "admin_domains": "Domain assignments",
"advanced_settings": "Advanced settings", "advanced_settings": "Advanced settings",