refactoring into clusters
This commit is contained in:
1 parent
042a5a8b58
commit
48deb69379
97 files changed
+186
-198
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Clusters\Newsletter\MailVersands\Schemas;
|
||||
|
||||
use Filament\Forms\Components\DateTimePicker;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Schema;
|
||||
|
||||
class MailVersandForm
|
||||
{
|
||||
public static function configure(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
TextInput::make('name')->label('Benennung')->required(),
|
||||
DateTimePicker::make('sende_zeitpunkt')->native(false)->required(),
|
||||
Select::make('mail_gruppen_id')
|
||||
->label('Versand an Empfänger Grupper')
|
||||
->required()
|
||||
->relationship(name: 'mail_gruppen', titleAttribute: 'name'),
|
||||
Select::make('mail_vorlage_id')
|
||||
->required()
|
||||
->label('Vorlage für den Versand')
|
||||
->relationship(name: 'mail_vorlage', titleAttribute: 'titel'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user