diff --git a/lib/Froxlor/UI/Callbacks/Text.php b/lib/Froxlor/UI/Callbacks/Text.php index 0656cc1c..eb85a376 100644 --- a/lib/Froxlor/UI/Callbacks/Text.php +++ b/lib/Froxlor/UI/Callbacks/Text.php @@ -101,6 +101,7 @@ class Text 'entry' => $attributes['fields']['id'], 'id' => 'akModal' . $attributes['fields']['id'], 'title' => 'API-key ' . ($attributes['fields']['loginname'] ?? $attributes['fields']['adminname']), + 'action' => 'apikeys', 'body' => $body ]; } diff --git a/templates/Froxlor/form/form.html.twig b/templates/Froxlor/form/form.html.twig index 627f7ce1..2311d393 100644 --- a/templates/Froxlor/form/form.html.twig +++ b/templates/Froxlor/form/form.html.twig @@ -1,11 +1,11 @@ -{% macro form(form_data, formaction, title = "", hiddenid = "", nosubmit = false) %} +{% macro form(form_data, formaction, title = "", hiddenid = "", nosubmit = false, idprefix = "") %} {% import "Froxlor/form/formfields.html.twig" as formfields %}
{% for sid,section in form_data.sections %} {% if section.visible is not defined or (section.visible is defined and section.visible == true) %} -
+
{% if section.title is not empty %}
{% if section.image is not empty %} diff --git a/templates/Froxlor/src/scss/_global.scss b/templates/Froxlor/src/scss/_global.scss index 6875a1fb..adc7a14e 100644 --- a/templates/Froxlor/src/scss/_global.scss +++ b/templates/Froxlor/src/scss/_global.scss @@ -4,6 +4,10 @@ outline: none; } +.form-control[readonly] { + background: rgba(0, 0, 0, .15); +} + .page-header { margin-bottom: 2rem; diff --git a/templates/Froxlor/table/macros.html.twig b/templates/Froxlor/table/macros.html.twig index 23b631c5..08eff78f 100644 --- a/templates/Froxlor/table/macros.html.twig +++ b/templates/Froxlor/table/macros.html.twig @@ -53,7 +53,7 @@ {% endif %} {% if data.modal is defined and data.modal is iterable %} -