orientierungs tabelle
This commit is contained in:
1 parent
edc3543ff1
commit
f941befa51
4 files changed
+19
-18
No files matched your search
@@ -13,7 +13,7 @@ class ListOrientierungs extends ListRecords
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
// CreateAction::make(),
|
||||
CreateAction::make(),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Resources\Orientierungs\Schemas;
|
||||
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Schema;
|
||||
|
||||
class OrientierungForm
|
||||
@@ -10,7 +11,7 @@ class OrientierungForm
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
//
|
||||
TextInput::make('name')->required(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Resources\Orientierungs\Tables;
|
||||
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Tables\Table;
|
||||
@@ -13,12 +14,9 @@ class OrientierungsTable
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('name')
|
||||
->color(fn ($record): string => match ($record->seitig) {
|
||||
1 => 'primary',
|
||||
2 => 'warning',
|
||||
3 => 'success',
|
||||
4 => 'danger',
|
||||
5 => 'indigo',
|
||||
->searchable()
|
||||
->color(fn ($record): string => match ($record->selectable) {
|
||||
0 => 'info',
|
||||
default => 'gray',
|
||||
}),
|
||||
])
|
||||
@@ -31,6 +29,9 @@ class OrientierungsTable
|
||||
'4' => 'V I E R S E I T I G',
|
||||
'5' => 'E X T R A S',
|
||||
]),
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make()->iconButton()->color('gray'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user