refactoring into clusters

This commit is contained in:
salam committed 2026-05-13 10:10:48 +02:00
1 parent 042a5a8b58
commit 48deb69379
97 files changed
+186 -198

No files matched your search

@@ -0,0 +1,36 @@
<?php
namespace App\Filament\Clusters\Newsletter\MailVorlages\Schemas;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
use Illuminate\Support\HtmlString;
class MailVorlageForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
TextInput::make('titel')
->suffix('Nur zur Kennung')
->required(),
TextInput::make('subjekt')
->label('Betreff')
->required(),
RichEditor::make('inhalt')
->required()
->aboveContent(new HtmlString('<div class="text-xs text-blue-600">Im Text können <b>Vornamen</b>, <b>Nachnamen</b> und <b>Herr/Frau</b> des Empfänger/der Empfängerin mit den Platzhaltern ###vorname###, ###nachname### und ###geschlecht### ersetzen werden. <br><br></div>'))
->toolbarButtons([
['bold', 'italic', 'underline', 'strike', 'code', 'small', 'highlight'],
['undo', 'redo'],
]),
RichEditor::make('unterschrift')
->toolbarButtons([
['bold', 'italic'],
['undo', 'redo'],
]),
])->columns(1);
}
}