25 lines
762 B
PHP
25 lines
762 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Methodes\Schemas;
|
|
|
|
use Filament\Forms\Components\RichEditor;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class MethodeForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('name')->required(),
|
|
RichEditor::make('description')
|
|
->label('Beschreibung')
|
|
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;'])
|
|
->toolbarButtons([
|
|
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript'],
|
|
]),
|
|
])->columns(1);
|
|
}
|
|
}
|