add 'back to overview' links when adding/editing entities

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-04-20 17:08:49 +02:00
parent 35a8fe7372
commit f82d78ad5d
28 changed files with 35 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ return array(
'admin_add' => array(
'title' => $lng['admin']['admin_add'],
'image' => 'fa-solid fa-user-plus',
'self_overview' => ['section' => 'admins', 'page' => 'admins'],
'sections' => array(
'section_a' => array(
'title' => $lng['admin']['accountdata'],

View File

@@ -18,6 +18,7 @@ return array(
'admin_edit' => array(
'title' => $lng['admin']['admin_edit'],
'image' => 'fa-solid fa-user-pen',
'self_overview' => ['section' => 'admins', 'page' => 'admins'],
'sections' => array(
'section_a' => array(
'title' => $lng['admin']['accountdata'],

View File

@@ -18,6 +18,7 @@ return array(
'customer_add' => array(
'title' => $lng['admin']['customer_add'],
'image' => 'fa-solid fa-user-plus',
'self_overview' => ['section' => 'customers', 'page' => 'customers'],
'sections' => array(
'section_a' => array(
'title' => $lng['admin']['accountdata'],

View File

@@ -18,6 +18,7 @@ return array(
'customer_edit' => array(
'title' => $lng['admin']['customer_edit'],
'image' => 'fa-solid fa-user-pen',
'self_overview' => ['section' => 'customers', 'page' => 'customers'],
'sections' => array(
'section_a' => array(
'title' => $lng['admin']['accountdata'],

View File

@@ -21,6 +21,7 @@ return array(
'domain_add' => array(
'title' => $lng['admin']['domain_add'],
'image' => 'fa-solid fa-globe',
'self_overview' => ['section' => 'domains', 'page' => 'domains'],
'sections' => array(
'section_a' => array(
'title' => $lng['domains']['domainsettings'],

View File

@@ -18,6 +18,7 @@ return array(
'domain_edit' => array(
'title' => $lng['admin']['domain_edit'],
'image' => 'fa-solid fa-globe',
'self_overview' => ['section' => 'domains', 'page' => 'domains'],
'sections' => array(
'section_a' => array(
'title' => $lng['domains']['domainsettings'],

View File

@@ -18,6 +18,7 @@ return array(
'domain_import' => array(
'title' => $lng['domains']['domain_import'],
'image' => 'fa-solid fa-file-import',
'self_overview' => ['section' => 'domains', 'page' => 'domains'],
'sections' => array(
'section_a' => array(
'title' => $lng['domains']['domain_import'],

View File

@@ -18,6 +18,7 @@ return array(
'ipsandports_add' => array(
'title' => $lng['admin']['ipsandports']['add'],
'image' => 'fa-solid fa-plus',
'self_overview' => ['section' => 'ipsandports', 'page' => 'ipsandports'],
'sections' => array(
'section_a' => array(
'title' => $lng['admin']['ipsandports']['ipandport'],

View File

@@ -18,6 +18,7 @@ return array(
'ipsandports_edit' => array(
'title' => $lng['admin']['ipsandports']['edit'],
'image' => 'fa-solid fa-pen',
'self_overview' => ['section' => 'ipsandports', 'page' => 'ipsandports'],
'sections' => array(
'section_a' => array(
'title' => $lng['admin']['ipsandports']['ipandport'],

View File

@@ -18,6 +18,7 @@ return array(
'fpmconfig_add' => array(
'title' => $lng['admin']['phpsettings']['addsettings'],
'image' => 'fa-solid fa-plus',
'self_overview' => ['section' => 'phpsettings', 'page' => 'fpmdaemons'],
'sections' => array(
'section_a' => array(
'title' => $lng['admin']['phpsettings']['addsettings'],

View File

@@ -18,6 +18,7 @@ return array(
'fpmconfig_edit' => array(
'title' => $lng['admin']['phpsettings']['editsettings'],
'image' => 'fa-solid fa-pen',
'self_overview' => ['section' => 'phpsettings', 'page' => 'fpmdaemons'],
'sections' => array(
'section_a' => array(
'title' => $lng['admin']['phpsettings']['editsettings'],

View File

@@ -18,6 +18,7 @@ return array(
'phpconfig_add' => array(
'title' => $lng['admin']['phpsettings']['addsettings'],
'image' => 'fa-solid fa-plus',
'self_overview' => ['section' => 'phpsettings', 'page' => 'overview'],
'sections' => array(
'section_a' => array(
'title' => $lng['admin']['phpsettings']['addsettings'],

View File

@@ -18,6 +18,7 @@ return array(
'phpconfig_edit' => array(
'title' => $lng['admin']['phpsettings']['editsettings'],
'image' => 'fa-solid fa-pen',
'self_overview' => ['section' => 'phpsettings', 'page' => 'overview'],
'sections' => array(
'section_a' => array(
'title' => $lng['admin']['phpsettings']['editsettings'],

View File

@@ -21,6 +21,7 @@ return array(
'domain_add' => array(
'title' => $lng['domains']['subdomain_add'],
'image' => 'fa-solid fa-plus',
'self_overview' => ['section' => 'domains', 'page' => 'domains'],
'sections' => array(
'section_a' => array(
'title' => $lng['domains']['subdomain_add'],

View File

@@ -18,6 +18,7 @@ return array(
'domain_edit' => array(
'title' => $lng['domains']['subdomain_edit'],
'image' => 'fa-solid fa-pen',
'self_overview' => ['section' => 'domains', 'page' => 'domains'],
'sections' => array(
'section_a' => array(
'title' => $lng['domains']['subdomain_edit'],

View File

@@ -18,6 +18,7 @@ return array(
'emails_add' => array(
'title' => $lng['emails']['emails_add'],
'image' => 'fa-solid fa-plus',
'self_overview' => ['section' => 'email', 'page' => 'emails'],
'sections' => array(
'section_a' => array(
'title' => $lng['emails']['emails_add'],

View File

@@ -18,6 +18,7 @@ return array(
'emails_edit' => array(
'title' => $lng['emails']['emails_edit'],
'image' => 'fa-solid fa-pen',
'self_overview' => ['section' => 'email', 'page' => 'emails'],
'sections' => array(
'section_a' => array(
'title' => $lng['emails']['emails_edit'],

View File

@@ -18,6 +18,7 @@ return array(
'htaccess_add' => array(
'title' => $lng['extras']['pathoptions_add'],
'image' => 'fa-solid fa-folder',
'self_overview' => ['section' => 'extras', 'page' => 'htaccess'],
'sections' => array(
'section_a' => array(
'title' => $lng['extras']['pathoptions_add'],

View File

@@ -18,6 +18,7 @@ return array(
'htaccess_edit' => array(
'title' => $lng['extras']['pathoptions_edit'],
'image' => 'fa-solid fa-folder',
'self_overview' => ['section' => 'extras', 'page' => 'htaccess'],
'sections' => array(
'section_a' => array(
'title' => $lng['extras']['pathoptions_edit'],

View File

@@ -18,6 +18,7 @@ return array(
'htpasswd_add' => array(
'title' => $lng['extras']['directoryprotection_add'],
'image' => 'fa-solid fa-lock',
'self_overview' => ['section' => 'extras', 'page' => 'htpasswds'],
'sections' => array(
'section_a' => array(
'title' => $lng['extras']['directoryprotection_add'],

View File

@@ -18,6 +18,7 @@ return array(
'htpasswd_edit' => array(
'title' => $lng['extras']['directoryprotection_edit'],
'image' => 'fa-solid fa-lock',
'self_overview' => ['section' => 'extras', 'page' => 'htpasswds'],
'sections' => array(
'section_a' => array(
'title' => $lng['extras']['directoryprotection_edit'],

View File

@@ -17,6 +17,7 @@ return array(
'ftp_add' => array(
'title' => $lng['ftp']['account_add'],
'image' => 'icons/user_add.png',
'self_overview' => ['section' => 'ftp', 'page' => 'accounts'],
'sections' => array(
'section_a' => array(
'title' => $lng['ftp']['account_add'],

View File

@@ -17,6 +17,7 @@ return array(
'ftp_edit' => array(
'title' => $lng['ftp']['account_edit'],
'image' => 'icons/user_edit.png',
'self_overview' => ['section' => 'ftp', 'page' => 'accounts'],
'sections' => array(
'section_a' => array(
'title' => $lng['ftp']['account_edit'],

View File

@@ -19,6 +19,7 @@ return array(
'mysql_add' => array(
'title' => $lng['mysql']['database_create'],
'image' => 'icons/mysql_add.png',
'self_overview' => ['section' => 'mysql', 'page' => 'mysqls'],
'sections' => array(
'section_a' => array(
'title' => $lng['mysql']['database_create'],

View File

@@ -17,6 +17,7 @@ return array(
'mysql_edit' => array(
'title' => $lng['mysql']['database_edit'],
'image' => 'icons/mysql_edit.png',
'self_overview' => ['section' => 'mysql', 'page' => 'mysqls'],
'sections' => array(
'section_a' => array(
'title' => $lng['mysql']['database_edit'],

View File

@@ -24,6 +24,7 @@ return [
'htaccess_list' => [
'title' => $lng['menue']['extras']['pathoptions'],
'icon' => 'fa-solid fa-folder',
'self_overview' => ['section' => 'extras', 'page' => 'htaccess'],
'columns' => [
'path' => [
'label' => $lng['panel']['path'],

View File

@@ -23,6 +23,7 @@ return [
'htpasswd_list' => [
'title' => $lng['menue']['extras']['directoryprotection'],
'icon' => 'fa-solid fa-lock',
'self_overview' => ['section' => 'extras', 'page' => 'htpasswds'],
'columns' => [
'username' => [
'label' => $lng['login']['username'],

View File

@@ -20,6 +20,13 @@
{% block actions %}
{% if formdata.self_overview is defined and formdata.self_overview is iterable %}
{% if action_links is not defined %}{% set actions_links = [] %}{% endif %}
{% set actions_tmp = actions_links %}
{% set actions_links = {'href': linker(formdata.self_overview), 'icon': 'fa fa-reply','label': lng('panel.backtooverview')} %}
{% set actions_links = {actions_links}|merge(actions_tmp) %}
{% endif %}
{% if actions_links is iterable or (entity_info is defined and entity_info is not empty) %}
<div>
{% if actions_links is iterable %}
@@ -38,6 +45,7 @@
#}
</div>
{% endif %}
{% endblock %}
{% block content %}