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
options:
- url
methodologys:
methodologies:
label: Méthodologie
type: entries
field:

View file

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