fix order and update of user settings form

This commit is contained in:
Kevin Papst
2020-08-18 23:22:16 +02:00
parent fbb3dd89cf
commit d8ae7635d1
7 changed files with 74 additions and 89 deletions

View File

@@ -2,11 +2,11 @@
{% block main %}
{{ form_start(form) }}
{% for section, counter in sections %}
{% for section, entries in sections %}
{% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
{% block box_body %}
{% for pref in form.children.preferences %}
{% if pref.vars.data.section == section %}
{% if pref.vars.data.name in entries %}
{{ form_row(pref) }}
{% endif %}
{% endfor %}