{{presentation.projet.titre}}

{{presentation.projet.societe.nom}}

{% for block in presentation.projetBlocks|sort((a,b)=> a.position <=> b.position) %} {# --- BLOC TEXTE (rich text TinyMCE) --- #} {% if block.type == 'text' %}
{{ (block.data.text ?? '')|raw }}
{% endif %} {# --- BLOC CHIFFRES (jusqu’à 4) --- #} {% if block.type == 'chiffres' %}

{{ block.data.titre ?? '' }}

{{ (block.data.text ?? '')|raw }} {% set figures = block.data.figures ?? [] %} {% if figures is not empty %}
{% for fig in figures %}
{{ fig.value ?? '' }}
{{ fig.label ?? '' }}
{% endfor %}
{% endif %}
{% endif %} {# --- BLOC IMAGE (image simple) --- #} {% if block.type == 'image' %} {% set imageUrl = block.data.imageUrl ?? '' %} {% if imageUrl %}
Image du projet
{% endif %} {% endif %} {# --- BLOC PRESENTATION (2 colonnes : image + texte) --- #} {% if block.type == 'description' %} {% if block.data.imageUrl is defined %} {% if block.data.imageUrl == '' %} {% set imageUrl = block.data.url %} {% else %} {% set imageUrl = block.data.imageUrl %} {% endif %} {% endif %} {% set text = block.data.text ?? project.description ?? '' %}
{% if imageUrl %}
Illustration projet
{% endif %}
{{ (block.data.text ?? '')|raw }}
{% endif %} {# --- BLOC FORMULES (liste non modifiable) --- #} {% if block.type == 'formule' %} {# On attend 'formules' passé par le contrôleur : formules du projet #}

Formules de partenariat

{% include '@Projet/marketplace/projets/block/formule.html.twig' %}
{% endif %} {# --- PLACEHOLDER pour autres types futurs --- #} {% if block.type not in ['text','chiffres','image','description','formule'] %}
Bloc “{{ block.type }}” non pris en charge dans l’aperçu.
{% endif %} {% else %}
Aucun contenu publié pour le moment.
{% endfor %}