wip Nutzwerte pdf
This commit is contained in:
1 parent
4ad27d8c19
commit
2296b708eb
31 files changed
+528
-1656
No files matched your search
+11
-4
@@ -208,11 +208,20 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
{
|
||||
return $table
|
||||
->recordTitleAttribute('text')
|
||||
// ->recordClasses(fn ($record) => $record->part == 'gutachten' ? 'border-l border-primary-500' : 'border-l border-success-500')
|
||||
->columns([
|
||||
TextColumn::make('ordnungszahl')
|
||||
->alignCenter()
|
||||
->width('2rem')
|
||||
->label('Index')
|
||||
->getStateUsing(fn ($record): string => $record->ordnungszahl == '0' ? '' : number_format($record->ordnungszahl, 2)),
|
||||
->getStateUsing(fn ($record): string => $record->ordnungszahl == '0' ? '' : number_format($record->ordnungszahl, 2))
|
||||
->extraCellAttributes(function ($record) {
|
||||
if ($record->part == 1) {
|
||||
return ['class' => 'bg-primary-500/10'];
|
||||
} else {
|
||||
return ['class' => 'bg-success-500/10'];
|
||||
}
|
||||
}),
|
||||
IconColumn::make('neue_seite')
|
||||
->label('Seite')
|
||||
->tooltip('Start einer neue Seite')
|
||||
@@ -229,6 +238,7 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
}),
|
||||
TextColumn::make('name')
|
||||
->wrap()
|
||||
->searchable()
|
||||
->weight(fn ($record): FontWeight => match ($record->ueberschrift_anzeigen) {
|
||||
1 => FontWeight::SemiBold,
|
||||
default => FontWeight::Thin,
|
||||
@@ -258,9 +268,6 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
])
|
||||
->defaultSort('sort', direction: 'asc')
|
||||
->reorderable('sort')
|
||||
->filters([
|
||||
//
|
||||
])
|
||||
->headerActions([
|
||||
Action::make('generate')
|
||||
->action(fn (CreateProjektInhaltsverzeichnis $createInhaltsverzeichnis) => $createInhaltsverzeichnis->create($this->ownerRecord))
|
||||
|
||||
Reference in new issue
Block a user