26 lines
725 B
PHP
26 lines
725 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\KontoTextblocks\Schemas;
|
|
|
|
use Filament\Forms\Components\RichEditor;
|
|
use Filament\Forms\Components\Textarea;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class KontoTextblockForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('name')
|
|
->required(),
|
|
Textarea::make('beschreibung'),
|
|
RichEditor::make('textblock')
|
|
->toolbarButtons([
|
|
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript'],
|
|
]),
|
|
])->columns(1);
|
|
}
|
|
}
|