delete report

This commit is contained in:
Julie Blanc 2026-02-14 17:03:03 +01:00
parent 06785d712c
commit b5f9da678f
9 changed files with 253 additions and 824 deletions

View file

@ -25,10 +25,6 @@ tabs:
ratio: 12/7
cover: true
help: Image utilisée dans les listes d'enquêtes
reportSection:
label: Rapport
type: pages
template: report
- width: 4/6
fields:
chapo:

View file

@ -1,15 +1,7 @@
<?php snippet('header') ?>
<?php
// Récupérer le rapport (première page enfant de type report)
$report = $page->children()->filterBy('intendedTemplate', 'report')->first();
?>
<div class="btn--group__mobile">
<?php if ($report): ?>
<button class="btn--bold"><a href="<?= $report->url() ?>">Lire le rapport</a></button>
<?php endif ?>
<div class="dropdown dropdown--position-mobile">
<button class="dropdown__trigger btn--bold-inline no-link">
<span class="icon"><?= svg('assets/icons/share.svg') ?></span>