pdf wip
This commit is contained in:
1 parent
9eb19cf8fd
commit
551ad2369e
17 files changed
+277
-38
No files matched your search
@@ -19,6 +19,9 @@ class InhaltsverzeichnisForm
|
||||
->components([
|
||||
Section::make('Überschrift')
|
||||
->schema([
|
||||
Checkbox::make('neue_seite')
|
||||
->label('Start neuer Seite')
|
||||
->columnSpan(2),
|
||||
Textarea::make('name')
|
||||
->required()
|
||||
->label('Kapitel / Absatz')
|
||||
@@ -44,7 +47,7 @@ class InhaltsverzeichnisForm
|
||||
])
|
||||
->columnSpan(1),
|
||||
])->columnSpanFull(),
|
||||
Section::make('Tabelle & Textblöcke')
|
||||
Section::make('Tabellen & Textblöcke')
|
||||
->hiddenLabel()
|
||||
->schema([
|
||||
Select::make('tabellen_id')->label('Tabelle')
|
||||
@@ -54,10 +57,11 @@ class InhaltsverzeichnisForm
|
||||
)
|
||||
->default(0)
|
||||
->options(function () {
|
||||
return Tabellen::all()->pluck('name', 'id')->toArray();
|
||||
})->belowContent([
|
||||
'Kann auch frei bleiben',
|
||||
]),
|
||||
$res = Tabellen::all()->pluck('name', 'id')->toArray();
|
||||
array_unshift($res, 'Ohne Tabelle');
|
||||
|
||||
return $res;
|
||||
}),
|
||||
|
||||
Select::make('textblock_id')->label('Textblock')
|
||||
->prefixIcon('phosphor-article')
|
||||
@@ -66,10 +70,11 @@ class InhaltsverzeichnisForm
|
||||
)
|
||||
->default(0)
|
||||
->options(function () {
|
||||
return Textblock::all()->pluck('name', 'id')->toArray();
|
||||
})->belowContent([
|
||||
'Kann auch frei bleiben',
|
||||
]),
|
||||
$res = Textblock::all()->pluck('name', 'id')->toArray();
|
||||
array_unshift($res, 'Ohne Textblock');
|
||||
|
||||
return $res;
|
||||
}),
|
||||
])->columnSpanFull(),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user