newsletter - little fixes
This commit is contained in:
parent
025b3a1d08
commit
21e058b336
3 changed files with 2 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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' }}"
|
||||||
|
|
|
||||||
|
|
@ -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');
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue