31 lines
870 B
PHP
31 lines
870 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\TlaSuggestions\Schemas;
|
|
|
|
use Filament\Forms\Components\Select;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Forms\Components\Textarea;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class TlaSuggestionForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('acronym')
|
|
->required(),
|
|
TextInput::make('hint')
|
|
->default(null),
|
|
Select::make('language')
|
|
->options(['hu' => 'Hu', 'en' => 'En'])
|
|
->required(),
|
|
Textarea::make('context')
|
|
->default(null)
|
|
->columnSpanFull(),
|
|
TextInput::make('submitter')
|
|
->default(null),
|
|
]);
|
|
}
|
|
}
|