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 }}"/>