more tablelistings and php-related formfields

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-02-28 10:51:19 +01:00
parent bebdb3a93f
commit 5133d26f6f
19 changed files with 241 additions and 96 deletions

View File

@@ -1,4 +1,4 @@
{% macro form(form_data, formaction, title = "") %}
{% macro form(form_data, formaction, title = "", hiddenid = "") %}
{% import "Froxlor/form/formfields.html.twig" as formfields %}
@@ -33,6 +33,9 @@
<!-- submit buttons -->
<div class="card mb-3">
<div class="card-body">
{% if hiddenid is not empty %}
<input type="hidden" name="id" value="{{ hiddenid }}"/>
{% endif %}
<input type="hidden" name="s" value="{{ s }}"/>
<input type="hidden" name="page" value="{{ page }}"/>
<input type="hidden" name="action" value="{{ action }}"/>

View File

@@ -4,6 +4,6 @@
{% import "Froxlor/form/form.html.twig" as form %}
{{ form.form(formdata, formaction|default('#'), formdata.title) }}
{{ form.form(formdata, formaction|default('#'), formdata.title, editid|default('')) }}
{% endblock %}

View File

@@ -70,5 +70,3 @@ upload_tmp_dir = "{TMP_DIR}"
variables_order = "GPCS"
opcache.restrict_api = "{DOCUMENT_ROOT}"
EOINI;
define('DEFAULT_PHPINI', $phpini);