em wip
This commit is contained in:
1 parent
75d30353fc
commit
80f50c9eec
11 files changed
+117
-114
No files matched your search
@@ -3,11 +3,14 @@
|
||||
namespace App\Livewire;
|
||||
|
||||
use App\Filament\Tables\Columns\MapperRightColumn;
|
||||
use App\Models\Event;
|
||||
use App\Models\Mapper;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Actions\Concerns\InteractsWithActions;
|
||||
use Filament\Actions\Contracts\HasActions;
|
||||
use Filament\Schemas\Concerns\InteractsWithSchemas;
|
||||
use Filament\Schemas\Contracts\HasSchemas;
|
||||
use Filament\Support\Enums\Alignment;
|
||||
use Filament\Tables\Concerns\InteractsWithTable;
|
||||
use Filament\Tables\Contracts\HasTable;
|
||||
use Filament\Tables\Table;
|
||||
@@ -34,10 +37,26 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
|
||||
// ...
|
||||
])
|
||||
->toolbarActions([
|
||||
// ...
|
||||
]);
|
||||
}
|
||||
|
||||
public function rightAction(): Action
|
||||
{
|
||||
return Action::make('right')
|
||||
->modalHeading('Event Mapper')
|
||||
->modalContent(function (array $arguments) {
|
||||
$event = Event::where('id', $arguments['match_id'])->first();
|
||||
$mapper = Mapper::where('event_id', $arguments['event_id'])->first();
|
||||
|
||||
return view('livewire.confirm-mapping', ['event' => $event, 'mapper' => $mapper, 'mappermode' => 'linear']);
|
||||
})
|
||||
->modalAlignment(Alignment::Center)
|
||||
->modalFooterActionsAlignment(Alignment::Center)
|
||||
->modalWidth('2xl')
|
||||
->modalSubmitActionLabel('Confirm')
|
||||
->modalSubmitAction();
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.mapper-left');
|
||||
|
||||
Reference in new issue
Block a user