wip
This commit is contained in:
1 parent
7eaa8c0da2
commit
c149ed0a9f
15 files changed
+157
-77
No files matched your search
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Filament\Resources\Inhaltsverzeichnis\Schemas;
|
||||
|
||||
use App\Models\TextblockKennung;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Schema;
|
||||
|
||||
@@ -11,7 +13,14 @@ class InhaltsverzeichnisForm
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
TextInput::make('ordnungszahl'),
|
||||
TextInput::make('ordnungszahl')->numeric(),
|
||||
Select::make('textblock_kennung_id')
|
||||
->label('Textblock Art')
|
||||
->options(function () {
|
||||
$relatedOptions = TextblockKennung::all()->pluck('name', 'id')->toArray();
|
||||
|
||||
return ['0' => 'ohne Textblock'] + $relatedOptions;
|
||||
}),
|
||||
TextInput::make('name'),
|
||||
])->columns(1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user