{% extends 'user/layout.html.twig' %}

{% block main %}
    {{ form_start(form) }}
    {% 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.name in entries %}
                        {{ form_row(pref) }}
                    {% endif %}
                {% endfor %}
            {% endblock %}
        {% endembed %}
    {% endfor %}
    {{ form_widget(form) }}
    <input type="submit" value="{{ 'action.save'|trans }}" class="btn btn-primary" />
    {{ form_end(form) }}

{% endblock %}
