dont show section if section is not visible completely

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann 2022-07-22 08:36:40 +02:00
parent b5e613a794
commit cb3be2556b
No known key found for this signature in database
GPG Key ID: C121F97338D7A352

View File

@ -4,6 +4,7 @@
<form action="{{ formaction|default("") }}" method="post" enctype="application/x-www-form-urlencoded" class="form">
{% for sid,section in form_data.sections %}
{% if section.visible is not defined or (section.visible is defined and section.visible == true) %}
<div class="card mb-3" id="{{ sid }}">
{% if section.title is not empty %}
<div class="card-header">
@ -19,6 +20,7 @@
{% endfor %}
</div>
</div>
{% endif %}
{% endfor %}
{% if nosubmit == false %}