wip fix
This commit is contained in:
1 parent
9bcd4432c6
commit
6f92f9e1d5
1209 files changed
+220940
No files matched your search
@@ -0,0 +1,31 @@
|
||||
<li class="cursor-grab drag-and-drop__item p-3 flex flex-1 gap-3 justify-between" id="{{ $record->event_id }}"
|
||||
x-data="{ moveoverright: false }"
|
||||
x-on:dragstart.self="
|
||||
dragging = true;
|
||||
event.dataTransfer.effectAllowed = 'move';
|
||||
event.dataTransfer.setData('text/plain', event.target.id);"
|
||||
x-on:dragover.prevent="moveoverright = true" x-on:dragleave.prevent="moveoverright = false"
|
||||
x-on:drop="moveoverright = false" :class="moveoverright ? 'bg-blue-600/20! rounded' : ''"
|
||||
x-on:drop.prevent="
|
||||
const id = event.dataTransfer.getData('text/plain');
|
||||
const target = event.target.closest('li');
|
||||
if(document.getElementById(id).getAttribute('mapper') !=target.getAttribute('mapper'))
|
||||
$wire.mountAction('right', { id: id, event_id: target.id, mover:'right' });"
|
||||
draggable="true" mapper="right">
|
||||
|
||||
@include('filament.tables.columns.parts.move-botton')
|
||||
|
||||
<div class="flex justify-center gap-4 w-full my-calendar font-bold">
|
||||
<x-filament::link x-on:click="search_left='{{ $record->home }}|success'" class="text-wrap text-right"
|
||||
color="success" tooltip="Click to search">
|
||||
{{ $record->home }}
|
||||
</x-filament::link>
|
||||
|
||||
<div>-</div>
|
||||
<x-filament::link x-on:click="search_left='{{ $record->away }}|warning'" class="text-wrap" color="warning"
|
||||
tooltip="Click to search">
|
||||
{{ $record->away }}
|
||||
</x-filament::link>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
Reference in new issue
Block a user