mapper ok
This commit is contained in:
1 parent
2e57e49f08
commit
c617935e2f
18 files changed
+227
-97
No files matched your search
@@ -74,10 +74,10 @@
|
||||
|
||||
{{-- Event Mapper --}}
|
||||
|
||||
<x-filament::modal width="7xl" icon="heroicon-o-squares-2x2" :close-by-clicking-away="false" :close-by-escaping="false"
|
||||
<x-filament::modal width="7xl" icon="phosphor-arrows-in-line-horizontal" :close-by-clicking-away="false" :close-by-escaping="false"
|
||||
:close-button="true">
|
||||
<x-slot name="trigger">
|
||||
<x-filament::button outlined icon="heroicon-o-squares-2x2" color="gray">
|
||||
<x-filament::button outlined icon="phosphor-arrows-in-line-horizontal" color="gray">
|
||||
Event Mapper
|
||||
</x-filament::button>
|
||||
</x-slot>
|
||||
@@ -156,7 +156,9 @@
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
<div id="mapper" class="grid grid-cols-2 gap-4 drag-and-drop text-sm" x-data="{ event_id: 0, match_id: 0, overleftcolumn: false, overrightcolumn: false }">
|
||||
<div id="mapper" class="grid grid-cols-2 gap-4 drag-and-drop text-sm" x-data="{ search_left: '', search_right: '', event_id: 0, match_id: 0, overleftcolumn: false, overrightcolumn: false }"
|
||||
x-init="$watch('search_left', value => Livewire.dispatch('search_left', value));
|
||||
$watch('search_right', value => Livewire.dispatch('search_right', value));">
|
||||
<div>
|
||||
@livewire('mapper-left')
|
||||
</div>
|
||||
@@ -253,16 +255,18 @@
|
||||
@if (auth()->user()->hasRole('konto_switch'))
|
||||
<x-filament::dropdown>
|
||||
<x-slot name="trigger">
|
||||
<x-filament::button icon="phosphor-user">
|
||||
<x-filament::button icon="phosphor-play">
|
||||
{{ $client }}
|
||||
</x-filament::button>
|
||||
</x-slot>
|
||||
|
||||
<x-filament::dropdown.list>
|
||||
@foreach ($clients as $id => $name)
|
||||
<x-filament::dropdown.list.item wire:click="swop({{ $id }})" icon="phosphor-key">
|
||||
{{ $name }}
|
||||
</x-filament::dropdown.list.item>
|
||||
@if ($name != $client)
|
||||
<x-filament::dropdown.list.item wire:click="swop({{ $id }})" icon="phosphor-play">
|
||||
{{ $name }}
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
@endforeach
|
||||
</x-filament::dropdown.list>
|
||||
</x-filament::dropdown>
|
||||
|
||||
Reference in new issue
Block a user