{% extends 'admin/base_admin.html.twig' %}
{# Carte générique : une section de content_blocks, un champ par feuille. #}
{% macro block_card(section, note, style) %}
{{ section.label }}
{% if note %}
{{ note }}
{% endif %}
{% for f in section.fields %}
{% endfor %}
{% endmacro %}
{% block title %}Page{% endblock %}
{% block breadcrumb %}Pages / {{ page.slug }}{% endblock %}
{% block content %}
{% import _self as ui %}
{% set b = page.contentBlocks ?? {} %}
{# La grille d'images n'existe que sur le gabarit infographie (S-2xx). #}
{% set show_realisations = page.slug == 'infographie-en-guadeloupe' or b.infographie_realisations is defined %}
{% set show_avis = page.slug == 'accueil' or b.avis_google is defined %}
{# Gabarits pour l'ajout de lignes #}