{% extends 'admin/@layout.html.twig' %} {% set pageName = 'page_name_template_layouts'|trans({}, 'admin') %} {% block content %}
{{ form_start(form) }}
{{ form_row(form.pageType) }} {{ form_row(form.layout) }}
{{ _self.sectionForm(form.templateSections) }}
{{ form_end(form) }}
{% endblock %} {% macro sectionForm(templateSections) %} {% for section in templateSections %}
{{ form_widget(section.sectionType) }}
{% if section.sectionType.vars.value in ['header', 'content', 'footer'] %} {{ form_row(section.containerEnabled) }} {% else %}
{{ form_row(section.containerEnabled) }}
{% endif %}

{{ form_row(section.widthExtraSmall) }}
{{ form_row(section.widthSmall) }}
{{ form_row(section.widthMedium) }}
{{ form_row(section.widthLarge) }}
{{ form_row(section.widthExtraLarge) }}
{{ form_row(section.widthExtraExtraLarge) }}
{% endfor %} {% endmacro %} {% block body_class %}template-layouts{% endblock %}