newsletter - little fixes

This commit is contained in:
isUnknown 2025-02-09 17:36:12 +01:00
parent 025b3a1d08
commit 21e058b336
3 changed files with 2 additions and 5 deletions

View file

@ -1,7 +1,6 @@
title: Email title: Email
status: status:
draft: Brouillon draft: Brouillon
unlisted: Testé
listed: Envoyé listed: Envoyé
image: image:
back: black back: black

View file

@ -19,7 +19,7 @@ tabs:
- width: 1/2 - width: 1/2
sections: sections:
newsletters: newsletters:
label: Emails label: Lettres
type: pages type: pages
template: email template: email
info: "{{ page.status == 'listed' ? 'envoyé' : 'brouillon' }}" info: "{{ page.status == 'listed' ? 'envoyée' : 'brouillon' }}"

View file

@ -86,8 +86,6 @@ return [
'published' => Kirby\Toolkit\Date::Today(), 'published' => Kirby\Toolkit\Date::Today(),
]); ]);
$emailPage->changeStatus('listed'); $emailPage->changeStatus('listed');
} else {
$emailPage->changeStatus('unlisted');
} }
}, },
]; ];