pdf wip
This commit is contained in:
1 parent
551ad2369e
commit
9881d8c37b
23 files changed
+662
-236
No files matched your search
+12
-12
@@ -58,8 +58,8 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
->required()
|
||||
->label('Kapitel / Absatz')
|
||||
->columnSpan(2),
|
||||
Checkbox::make('ueberschrift_nicht_anzeigen')
|
||||
->label('Überschrift nicht angezeigen')
|
||||
Checkbox::make('ueberschrift_anzeigen')
|
||||
->label('Überschrift angezeigen')
|
||||
->columnSpan(2),
|
||||
TextInput::make('ordnungszahl')
|
||||
->label('Kapitel Index')
|
||||
@@ -193,19 +193,19 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
->getStateUsing(fn ($record): string => $record->ordnungszahl == '0' ? '' : number_format($record->ordnungszahl, 2)),
|
||||
IconColumn::make('neue_seite')
|
||||
->label('Seite')
|
||||
->tooltip('Start einer neue Seite')
|
||||
->icon(fn (string $state): string => match ($state) {
|
||||
'1' => 'phosphor-file-plus',
|
||||
default => ''
|
||||
}),
|
||||
TextColumn::make('name')
|
||||
->wrap()
|
||||
->weight(fn ($record): FontWeight => match ($record->ueberschrift_nicht_anzeigen) {
|
||||
1 => FontWeight::Thin,
|
||||
default => FontWeight::SemiBold,
|
||||
->weight(fn ($record): FontWeight => match ($record->ueberschrift_anzeigen) {
|
||||
1 => FontWeight::SemiBold,
|
||||
default => FontWeight::Thin,
|
||||
})
|
||||
->description(fn ($record): string => $record->textblock_kennung->name ?? ''),
|
||||
TextColumn::make('tabellen.name')->wrap()->label('Tabelle'),
|
||||
TextColumn::make('textblock.name')->wrap(),
|
||||
IconColumn::make('textblock')
|
||||
->alignCenter()
|
||||
->icon('phosphor-article')
|
||||
@@ -218,12 +218,12 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
->badge()
|
||||
->color('info')
|
||||
->getStateUsing(function ($record) {
|
||||
if ($record->ohne_seitenzahl_anzeige) {
|
||||
return null;
|
||||
} elseif ($record->seite > 0) {
|
||||
return (string) $record->seite;
|
||||
} else {
|
||||
return (string) 'auto';
|
||||
if ($record->seitenzahl_anzeige) {
|
||||
if ($record->seite > 0) {
|
||||
return (string) $record->seite;
|
||||
} else {
|
||||
return (string) 'auto';
|
||||
}
|
||||
}
|
||||
}),
|
||||
])
|
||||
|
||||
Reference in new issue
Block a user