This commit is contained in:
salam committed 2025-10-11 09:10:12 +02:00
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);
}