wip
This commit is contained in:
1 parent
30563ee98d
commit
622b37bb90
12 files changed
+56
-56
No files matched your search
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Filament\Resources\Projektes\RelationManagers;
|
||||
|
||||
use App\Models\Merkmale;
|
||||
use App\Models\Orientierung;
|
||||
use App\Models\ProjektMerkmale;
|
||||
use App\Models\ProjektObjekte;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Actions\BulkAction;
|
||||
@@ -55,7 +55,7 @@ class ProjektObjekteRelationManager extends RelationManager
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
|
||||
$spalten = Merkmale::where('projekte_id', $this->ownerRecord->id)->pluck('name', 'code');
|
||||
$spalten = ProjektMerkmale::where('projekte_id', $this->ownerRecord->id)->pluck('name', 'code');
|
||||
|
||||
return $table
|
||||
// ->striped()
|
||||
@@ -251,14 +251,14 @@ class ProjektObjekteRelationManager extends RelationManager
|
||||
->modalDescription('Die dazugehörigen Räume werde in "Objekte im Detail" erstellt.')
|
||||
->icon('phosphor-file-plus')
|
||||
->createAnother(false),
|
||||
Action::make('merkmale')
|
||||
Action::make('projekt_merkmale')
|
||||
->icon('phosphor-pen')
|
||||
->modalCancelAction(fn (Action $action) => $action->label('Schließen'))
|
||||
->modalSubmitAction(false)
|
||||
->modalHeading('Merkmale')
|
||||
->modalHeading('ProjektMerkmale')
|
||||
->slideOver()
|
||||
// ->modalWidth(Width::Medium)
|
||||
->modalContent(view('filament.pages.actions.merkmale'))
|
||||
->modalContent(view('filament.pages.actions.projekt_merkmale'))
|
||||
->after(function (Component $livewire) {
|
||||
$livewire->dispatch('refreshOrientierung');
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user