feat(Password process for new admin, cleaning translations)
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 1m21s

This commit is contained in:
2026-04-01 15:50:21 +02:00
parent 83b7c42fe4
commit 25885e3b70
40 changed files with 1577 additions and 475 deletions

View File

@@ -32,11 +32,15 @@ class NotificationTemplateForm
TextInput::make('subject')
->label(NotificationTemplate::getAttributeLabel('subject'))
->required()
->helperText('Variables : {member_name}, {expiry_date}'),
->helperText(fn (?NotificationTemplate $record) => $record?->variables
? NotificationTemplate::getAttributeLabel('variables').' : '.implode(', ', array_map(fn ($k) => '{'.$k.'}', array_keys($record->variables)))
: null),
RichEditor::make('body')
->label(NotificationTemplate::getAttributeLabel('body'))
->required()
->helperText('Variables : {member_name}, {expiry_date}')
->helperText(fn (?NotificationTemplate $record) => $record?->variables
? NotificationTemplate::getAttributeLabel('variables').' : '.implode(', ', array_map(fn ($k) => '{'.$k.'}', array_keys($record->variables)))
: null)
->columnSpanFull(),
]),
]);