This commit is contained in:
salam committed 2025-10-22 07:05:52 +02:00
1 parent 6bf10b25bd
commit fe03a71735
18 files changed
+149 -103

No files matched your search

@@ -52,15 +52,20 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
->hidden(fn ($record) => $record->name == 'DECKBLATT' ? true : false)
->schema([
Checkbox::make('neue_seite')
->label('Start neuer Seite')
->columnSpan(2),
->label('Start neuer Seite'),
Checkbox::make('ueberschrift_anzeigen')
->label('Überschrift angezeigen'),
Textarea::make('name')
->required()
->label('Kapitel / Absatz')
->label('Überschrift in der Inhaltsangabe')
->columnSpan(2),
Checkbox::make('ueberschrift_anzeigen')
->label('Überschrift angezeigen')
Textarea::make('name2')
->label('Überschrift im Dokument')
->belowContent([
'Bei abweichender Überschrift im Dokument',
])
->columnSpan(2),
TextInput::make('ordnungszahl')
->label('Kapitel Index')
->placeholder('3.21')
@@ -86,6 +91,7 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
->schema([
TextInput::make('konto_textblock_id')->hidden(),
RichEditor::make('textblock')
->aboveLabel('Ausgabe Textblock vor Tabelle')
->columnSpan(5)
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;'])
->toolbarButtons([
@@ -180,6 +186,7 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
Tab::make('Tabellen')
->schema([
Select::make('tabellen_id')->label('Tabelle')
->aboveLabel('Ausgabe Textblock vor Tabelle')
->prefixIcon('phosphor-table')
->prefixIconColor(
fn ($record): string => $record->tabellen_id == 0 ? 'gray' : 'primary'
@@ -261,7 +268,7 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
->createAnother(false),
])
->recordActions([
EditAction::make()->iconButton()->hidden(fn ($record) => $record->name == 'INHALTSVERZEICHNIS' ? true : false),
EditAction::make()->iconButton()->hidden(fn ($record) => (bool) $record->no_edit),
DeleteAction::make()->iconButton(),
])
->toolbarActions([