diff --git a/src/core/Resources/views/site/page_admin/_form.html.twig b/src/core/Resources/views/site/page_admin/_form.html.twig index 07fa3ac..6e86c28 100644 --- a/src/core/Resources/views/site/page_admin/_form.html.twig +++ b/src/core/Resources/views/site/page_admin/_form.html.twig @@ -28,18 +28,33 @@ {%- endset -%} {% set hasMetaForm = (formMetas ~ formOpenGraph ~ formOthers)|length > 0 %} -{% set hasBlockFrom = form.children|length > (metaFormItemsCount + 1) %} +{% set hasBlockForm = form.children|length > (metaFormItemsCount + 1) %} {% set activeMetaForm = formMetas|length ? 'metas' : (formOpenGraph|length ? 'openGraph' : 'others') %}
- {% if hasBlockFrom %} + {% set nodes = entity.nodes %} + + {% if nodes|length %} +
+ {% for node in nodes %} + + {{ node.label }} ({{ node.menu.navigation.label }}) + + {% endfor %} +
+ {% endif %} + + {% if hasBlockForm %}
{{ form_widget(form, {attr: {class: 'row'}}) }}
{% endif %} {% if hasMetaForm %} -
+