wip
This commit is contained in:
1 parent
3a35ccd69d
commit
261fb0916d
38 files changed
+348
-258
No files matched your search
@@ -4,6 +4,7 @@ namespace App\Filament\Resources\Inhaltsverzeichnis\Tables;
|
||||
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Support\Enums\FontWeight;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Columns\ToggleColumn;
|
||||
use Filament\Tables\Table;
|
||||
@@ -22,13 +23,12 @@ class InhaltsverzeichnisTable
|
||||
TextColumn::make('name')
|
||||
->label('Überschrift')
|
||||
->wrap()
|
||||
->description(fn ($record): string => $record->textblock_kennungs->name ?? '')
|
||||
->color(fn ($record): string => match ($record->ueberschrift_nicht_anzeigen) {
|
||||
1 => 'primary',
|
||||
default => 'gray',
|
||||
->weight(fn ($record): FontWeight => match ($record->ueberschrift_nicht_anzeigen) {
|
||||
1 => FontWeight::Thin,
|
||||
default => FontWeight::SemiBold,
|
||||
}),
|
||||
// ToggleColumn::make('ueberschrift_anzeigen')->label('')->tooltip('Überschrift im PDF anzeigen'),
|
||||
TextColumn::make('tabellen.name')->wrap(),
|
||||
TextColumn::make('tabellen.name')->wrap()->label('Tabelle'),
|
||||
TextColumn::make('textblock.name')->wrap(),
|
||||
TextColumn::make('seite')
|
||||
->alignCenter()
|
||||
@@ -39,7 +39,7 @@ class InhaltsverzeichnisTable
|
||||
->defaultSort('sort', direction: 'asc')
|
||||
->reorderable('sort')
|
||||
->recordActions([
|
||||
EditAction::make()->iconButton()->color('gray'),
|
||||
EditAction::make()->iconButton(),
|
||||
DeleteAction::make()->iconButton(),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user