From 4a18a61148d375b59617182930c010814ebfc9ab Mon Sep 17 00:00:00 2001 From: antonin gallon Date: Wed, 7 Jan 2026 17:35:37 +0100 Subject: [PATCH] =?UTF-8?q?investigation-summary=20:=20ajout=20gestion=20l?= =?UTF-8?q?=C3=A9gendes=20d'images?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Création du blueprint files/cover.yml avec champs alt et caption - Configuration uploads.template: cover pour association automatique - Amélioration affichage légende avec condition isNotEmpty() - Les métadonnées des images sont désormais éditables via le panel 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- site/blueprints/files/cover.yml | 12 ++++++++++++ site/blueprints/pages/investigation-summary.yml | 2 ++ site/templates/investigation-summary.php | 12 +++++++----- 3 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 site/blueprints/files/cover.yml diff --git a/site/blueprints/files/cover.yml b/site/blueprints/files/cover.yml new file mode 100644 index 0000000..ca64d64 --- /dev/null +++ b/site/blueprints/files/cover.yml @@ -0,0 +1,12 @@ +title: Image de couverture + +fields: + alt: + label: Texte alternatif + type: text + help: Description de l'image pour l'accessibilité + caption: + label: Légende + type: textarea + size: small + help: Légende affichée sous l'image diff --git a/site/blueprints/pages/investigation-summary.yml b/site/blueprints/pages/investigation-summary.yml index d3daa5a..c062b0b 100644 --- a/site/blueprints/pages/investigation-summary.yml +++ b/site/blueprints/pages/investigation-summary.yml @@ -33,6 +33,8 @@ tabs: min: 1 layout: cards size: full + uploads: + template: cover image: ratio: 12/7 cover: true diff --git a/site/templates/investigation-summary.php b/site/templates/investigation-summary.php index 72cdec1..9b8b879 100644 --- a/site/templates/investigation-summary.php +++ b/site/templates/investigation-summary.php @@ -14,17 +14,19 @@ cover()->toFile()): ?> -
caption() ?>
+ caption()->isNotEmpty()): ?> +
caption() ?>
+