pdf wip
This commit is contained in:
1 parent
6bf10b25bd
commit
fe03a71735
18 files changed
+149
-103
No files matched your search
@@ -4,10 +4,9 @@ namespace App\Filament\Resources\Inhaltsverzeichnis\Tables;
|
||||
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Support\Enums\FontWeight;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Columns\ToggleColumn;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class InhaltsverzeichnisTable
|
||||
@@ -28,14 +27,16 @@ class InhaltsverzeichnisTable
|
||||
'1' => 'phosphor-file-plus',
|
||||
default => ''
|
||||
}),
|
||||
IconColumn::make('ueberschrift_anzeigen')
|
||||
->label('')
|
||||
->tooltip('Überschrift anzeigen')
|
||||
->icon(fn (string $state): Heroicon => match ($state) {
|
||||
'1' => Heroicon::OutlinedEye,
|
||||
'0' => Heroicon::OutlinedEyeSlash,
|
||||
}),
|
||||
TextColumn::make('name')
|
||||
->label('Überschrift')
|
||||
->wrap()
|
||||
->weight(fn ($record): FontWeight => match ($record->ueberschrift_anzeigen) {
|
||||
1 => FontWeight::Thin,
|
||||
default => FontWeight::SemiBold,
|
||||
}),
|
||||
// ToggleColumn::make('ueberschrift_anzeigen')->label('')->tooltip('Überschrift im PDF anzeigen'),
|
||||
->wrap(),
|
||||
TextColumn::make('tabellen.name')->wrap()->label('Tabelle'),
|
||||
TextColumn::make('textblock.name')->wrap(),
|
||||
TextColumn::make('seite')
|
||||
@@ -47,7 +48,7 @@ class InhaltsverzeichnisTable
|
||||
->defaultSort('sort', direction: 'asc')
|
||||
->reorderable('sort')
|
||||
->recordActions([
|
||||
EditAction::make()->iconButton(),
|
||||
EditAction::make()->iconButton()->hidden(fn ($record) => (bool) $record->no_edit),
|
||||
DeleteAction::make()->iconButton(),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user