wip event mapper
This commit is contained in:
1 parent
75b8c6c3ab
commit
3a289dd776
17 files changed
+273
-157
No files matched your search
@@ -1,5 +1,4 @@
|
||||
<li class="w-full h-full overflow-hidden p-1 cursor-grab flex space-x-4 drag-and-drop__item px-4" x-data="{ moveoverleft: false }"
|
||||
id={{ $record->id }}
|
||||
<li class="cursor-grab drag-and-drop__item" x-data="{ moveoverleft: false }" id={{ $record->id }}
|
||||
x-on:dragstart.self="
|
||||
dragging = true;
|
||||
event.dataTransfer.effectAllowed = 'move';
|
||||
@@ -8,42 +7,11 @@
|
||||
x-on:drop="moveoverleft = false" :class="moveoverleft ? 'bg-primary-500/20!' : ''"
|
||||
x-on:drop.prevent="
|
||||
const id = event.dataTransfer.getData('text/plain');
|
||||
const target = event.target.closest('li');
|
||||
const target = event.target.closest('div');
|
||||
if(document.getElementById(id).getAttribute('mapper') !=target.getAttribute('mapper'))
|
||||
$wire.mountAction('left', { event_id: id, id: target.id });"
|
||||
draggable="true" mapper="left">
|
||||
|
||||
<div class="w-10 flex-none mx-auto my-auto">
|
||||
@if($record->country?->icon)
|
||||
<x-icon name="{{ $record->country->icon }}" class="h5 w-5" />
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@include('filament.tables.columns.parts.search-button-left', [
|
||||
'find' => $record->home->name,
|
||||
])
|
||||
|
||||
<div class="flex-1 flex flex-col justify-center space-y-0">
|
||||
<div class="flex justify-around text-gray-600 dark:text-gray-500">
|
||||
<div>{{ $record->starttime }}</div>
|
||||
<div>{{ $record->id }}</div>
|
||||
</div>
|
||||
<div class="flex justify-center space-x-4">
|
||||
<div class="text-right font-bold text-wrap">{{ $record->home->name }}</div>
|
||||
<div class="w-6 text-center">-</div>
|
||||
<div class="text-left font-bold text-wrap">{{ $record->away->name }}</div>
|
||||
</div>
|
||||
<div class="flex justify-center space-x-4 text-gray-600 dark:text-gray-500">
|
||||
<div>{{ $record->country?->name }}</div>
|
||||
<div>{{ $record->competition_group->name }}</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@include('filament.tables.columns.parts.search-button-left', [
|
||||
'find' => $record->away->name,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.parts.move-botton')
|
||||
|
||||
</li>
|
||||
Reference in new issue
Block a user