wip
This commit is contained in:
1 parent
5583bed563
commit
4ad27d8c19
9 files changed
+1071
-212
No files matched your search
+1
-24
@@ -65,10 +65,6 @@ class OrientierungZuAbschlaegesRelationManager extends RelationManager
|
||||
->afterStateUpdated(function (Component $livewire) {
|
||||
$livewire->dispatch('refreshOrientierung');
|
||||
}),
|
||||
TextColumn::make('raumart')
|
||||
->toggleable()
|
||||
->width('2rem')
|
||||
->searchable(),
|
||||
TextInputColumn::make('type')
|
||||
->toggleable()
|
||||
->disabled(fn ($record): bool => $record->nicht_in_orientierung)
|
||||
@@ -236,7 +232,7 @@ class OrientierungZuAbschlaegesRelationManager extends RelationManager
|
||||
->modalDescription('Alle bestehenden Daten in dieser Tabelle werden vorher gelöscht.')
|
||||
->modalSubmitActionLabel('Erstellen')
|
||||
->label('Erstellen')
|
||||
->tooltip('Daten werden aus "Orientierung Zu/Abschläge" Tabelle gefiltert.')
|
||||
->tooltip('Daten werden aus "Räume Alle" gefiltert.')
|
||||
->icon('heroicon-o-cog-8-tooth')
|
||||
->after(function (Component $livewire) {
|
||||
$livewire->dispatch('refreshOrientierung');
|
||||
@@ -244,25 +240,6 @@ class OrientierungZuAbschlaegesRelationManager extends RelationManager
|
||||
])
|
||||
->toolbarActions([
|
||||
BulkActionGroup::make([
|
||||
BulkAction::make('raumart')
|
||||
->color('primary')
|
||||
->schema([
|
||||
TextInput::make('raumart')
|
||||
->label('Name eingeben')
|
||||
->prefixIcon('phosphor-house-simple'),
|
||||
])
|
||||
->icon('phosphor-house-simple')
|
||||
->action(function (Collection $records, array $data): void {
|
||||
foreach ($records as $record) {
|
||||
OrientierungZuAbschlaege::where('id', '=', $record->id)
|
||||
->update(
|
||||
['raumart' => $data['raumart']]
|
||||
);
|
||||
}
|
||||
})
|
||||
->after(function (Component $livewire) {
|
||||
$livewire->dispatch('refreshOrientierung');
|
||||
}),
|
||||
BulkAction::make('type')
|
||||
->color('primary')
|
||||
->schema([
|
||||
|
||||
Reference in new issue
Block a user