{# Composant de gestion des fichiers attachés à une entité (evenement, evenement_ensemble). À inclure EN DEHORS du formulaire principal (HTML interdit les
imbriqués). Paramètres : files : array renvoyé par l'API /entity-files/{type}/{id} typeEntite : string (evenement | evenement_ensemble) idEntity : int canManage : bool (default true) inheritedNoteLabel : string (optionnel) #} {% set canManage = canManage ?? true %} {% set inheritedNoteLabel = inheritedNoteLabel ?? "Hérité d'un ensemble parent" %}
Fichiers attachés
{% if files is empty %}

Aucun fichier attaché.

{% else %}
{% for f in files %} {% endfor %}
Libellé Fichier Source Actions
{% if canManage and f.source == 'own' %} {% else %} {{ f.label|default(f.filename|default('—')) }} {% endif %} {{ f.filename|default('—') }} {% if f.source == 'own' %} Propre {% elseif f.source == 'v5' %} Fichier V5 {% else %} {{ inheritedNoteLabel }} {% endif %} {% if f.url %} {% endif %} {% if f.pimcoreDeeplink %} {% endif %} {% if canManage and f.source == 'own' %}
{% endif %}
{% endif %} {% if canManage %}
{# Ligne statique par défaut : reste utilisable même si Stimulus ne démarre pas #}

Cliquez sur "Ajouter un fichier" pour commencer.

Chaque fichier a son propre libellé. pdf, doc, xls, png, jpg, zip, etc. — 15 Mo max par fichier.
{% endif %}