investigation-summary : labels en dur et correction orthographe

- Remplacement des appels dynamiques blueprint()->field()['label'] par les valeurs en dur
- Correction orthographe: methodologys → methodologies dans le blueprint et le template
- Amélioration des performances en évitant les appels dynamiques

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
antonin gallon 2026-01-07 15:53:27 +01:00
parent ff9fda74c9
commit b0a5bfc4c8
2 changed files with 10 additions and 10 deletions

View file

@ -81,7 +81,7 @@ tabs:
type: link type: link
options: options:
- url - url
methodologys: methodologies:
label: Méthodologie label: Méthodologie
type: entries type: entries
field: field:

View file

@ -47,19 +47,19 @@
<dl class="section__article" id="section__dl"> <dl class="section__article" id="section__dl">
<div class="dl__group"> <div class="dl__group">
<dt><?= $page->blueprint()->field('incidentDate')['label']?></dt> <dt>Date de l'incident</dt>
<dd><time datetime="<?= $page->incidentDate() ?>"><?= $page->incidentDate()->toDate('d M Y') ?></time></dd> <dd><time datetime="<?= $page->incidentDate() ?>"><?= $page->incidentDate()->toDate('d M Y') ?></time></dd>
</div> </div>
<div class="dl__group"> <div class="dl__group">
<dt><?= $page->blueprint()->field('incidentLocation')['label'] ?></dt> <dt>Lieu de l'incident</dt>
<dd><?= $page->incidentLocation() ?></dd> <dd><?= $page->incidentLocation() ?></dd>
</div> </div>
<div class="dl__group"> <div class="dl__group">
<dt><?= $page->blueprint()->field('incidentConsequences')['label'] ?></dt> <dt>Conséquence(s)</dt>
<dd><?= $page->incidentConsequences() ?></dd> <dd><?= $page->incidentConsequences() ?></dd>
</div> </div>
<div class="dl__group dl__group__keywords"> <div class="dl__group dl__group__keywords">
<dt><?= $page->blueprint()->field('keywords')['label'] ?></dt> <dt>Mots-clés</dt>
<dd> <dd>
<ul class="keywords"> <ul class="keywords">
<?php foreach ($page->keywords()->split() as $keyword): ?> <?php foreach ($page->keywords()->split() as $keyword): ?>
@ -69,17 +69,17 @@
</dd> </dd>
</div> </div>
<div class="dl__group"> <div class="dl__group">
<dt><?= $page->blueprint()->field('methodologys')['label'] ?></dt> <dt>Méthodologie</dt>
<dd> <dd>
<ul> <ul>
<?php foreach ($page->methodologys()->toEntries() as $methodology): ?> <?php foreach ($page->methodologies()->toEntries() as $methodology): ?>
<li><?php echo $methodology ?></li> <li><?php echo $methodology ?></li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
</dd> </dd>
</div> </div>
<div class="dl__group"> <div class="dl__group">
<dt><?= $page->blueprint()->field('team')['label'] ?></dt> <dt>Équipe</dt>
<dd> <dd>
<?php <?php
$namesList = []; $namesList = [];
@ -94,7 +94,7 @@
</dd> </dd>
</div> </div>
<div class="dl__group"> <div class="dl__group">
<dt><?= $page->blueprint()->field('partners')['label'] ?></dt> <dt>Partenaire(s)</dt>
<dd> <dd>
<?php <?php
$partnersList = []; $partnersList = [];
@ -110,7 +110,7 @@
</dd> </dd>
</div> </div>
<div class="dl__group"> <div class="dl__group">
<dt><?= $page->blueprint()->field('publicationDate')['label'] ?></dt> <dt>Date de publication</dt>
<dd><time datetime="<?= $page->publicationDate() ?>"><?= $page->publicationDate()->toDate('d M Y') ?></time></dd> <dd><time datetime="<?= $page->publicationDate() ?>"><?= $page->publicationDate()->toDate('d M Y') ?></time></dd>
</div> </div>
</dl> </dl>