diff --git a/assets/css/src/ticket.css b/assets/css/src/ticket.css index 4129d7c..305a2f8 100644 --- a/assets/css/src/ticket.css +++ b/assets/css/src/ticket.css @@ -36,13 +36,13 @@ display: inline-flex; } -a:hover .ticket svg, +a:not([disabled]):hover .ticket svg, .ticket:hover svg { animation: vibrate 0.5s forwards; } .ticket:hover svg path:not(.dot), -a:hover .ticket svg path:not(.dot) { +a:not([disabled]):hover .ticket svg path:not(.dot) { fill: var(--color-salmon); stroke: var(--color-salmon); } @@ -52,7 +52,7 @@ a.to-blank:hover .ticket svg path:not(.dot) { } .ticket:hover svg path.dot, -a:hover .ticket svg path.dot { +a:not([disabled]):hover .ticket svg path.dot { fill: #fff; } a.to-blank:hover .ticket svg path.dot { diff --git a/assets/css/src/vanilla.css b/assets/css/src/vanilla.css index ddfbcc8..8023982 100644 --- a/assets/css/src/vanilla.css +++ b/assets/css/src/vanilla.css @@ -24,3 +24,7 @@ picture svg { transition: var(--transition-image-opacity); z-index: 0; } + +a[disabled] { + cursor: not-allowed; +} diff --git a/site/plugins/helpers/index.php b/site/plugins/helpers/index.php index 51e056c..efe04f9 100644 --- a/site/plugins/helpers/index.php +++ b/site/plugins/helpers/index.php @@ -157,7 +157,8 @@ function saveMapadoEvent($mapadoEvent, $page) { $dataToSave = [ "mapadoSlug" => $mapadoEvent->slug, "remoteDuration" => $duration, - "remoteSessions" => $sessionsToSave + "remoteSessions" => $sessionsToSave, + "eventDateId" => $eventDateId ]; $page->update($dataToSave); diff --git a/site/templates/event.php b/site/templates/event.php index 82090ab..c65214d 100644 --- a/site/templates/event.php +++ b/site/templates/event.php @@ -38,7 +38,7 @@

time() ?>

place() ?>

-

test

+ Entrée libre @@ -52,9 +52,13 @@ x-data="{ stockThreshold: 15, sessions: [], + slug: null, + eventDateId: null, async fetchSessions() { const event = await updateMapadoEvent('uri() ?>'); this.sessions = event.remoteSessions + this.slug = event.mapadoSlug + this.eventDateId = event.eventDateId }, }" x-init=" @@ -69,13 +73,13 @@

place() ?>