This commit is contained in:
isUnknown 2025-02-04 10:12:01 +01:00
parent 416d8e94b3
commit 8bdd63afe2
3 changed files with 32 additions and 3 deletions

View file

@ -10,9 +10,14 @@ image:
tabs:
contentTab:
fields:
published:
label: Date d'envoi
type: date
default: today
width: 1/3
help: Affichée dans la version web
sendBtn:
type: send-button
body:
label: Contenu
type: writer
sendBtn:
type: send-button
width: 1/4

23
site/templates/email.php Normal file
View file

@ -0,0 +1,23 @@
<?php snippet('header') ?>
<main id="<?= $page->template() ?>">
<article>
<?php snippet('cover', array('isOpen' => true), slots: true) ?>
<?php slot('title') ?>
<h1 class="main-title"><?= $page->title() ?></h1>
<?php if ($page->published()->isNotEmpty()): ?>
<p>
<span class="light">envoyée le </span><?= $page->published()->toDate('d/m/Y') ?>
</p>
<?php endif ?>
<?php endslot() ?>
<?php endsnippet() ?>
<div id="main-content">
<?= $page->body() ?>
</div>
</article>
</main>
<?php snippet('footer') ?>

View file

@ -50,6 +50,7 @@
</div>
</li>
<?php endforeach ?>
</ul>
</div>
</article>
</main>