calendar strip fix ticket
This commit is contained in:
parent
2336673d92
commit
2ceb483d39
3 changed files with 9 additions and 1 deletions
|
|
@ -47,6 +47,7 @@ return [
|
|||
"time" => $session->timeComplement()->isEmpty() == 'true' ? $session->time()->value() : $session->time()->value() . ' ' . $session->timeComplement()->value(),
|
||||
"place" => $event->place()->value(),
|
||||
"duration" => $event->duration()->value(),
|
||||
"ticketingUrl" => $event->bookingUrl()->value(),
|
||||
"eventUrl" => $event->url(),
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
<section
|
||||
class="calendar-strip"
|
||||
@mouseleave="open = false"
|
||||
x-data="{
|
||||
calendar: createEmptyCalendar(),
|
||||
currentMonthIndex: dayjs().month() + 1,
|
||||
|
|
@ -188,6 +187,11 @@
|
|||
<a class="ticket-link" target="_blank" title="Entrée libre" disabled><?php snippet('ticket') ?> <span class="desktop">Entrée libre</span></a>
|
||||
</div>
|
||||
</template>
|
||||
<template x-if="session.ticketingUrl && !session.bookableStock">
|
||||
<div class="session__info session__info--book">
|
||||
<a class="ticket-link" :href="session.ticketingUrl" target="_blank" title="Entrée libre"><?php snippet('ticket') ?> <span class="desktop">Réserver</span></a>
|
||||
</div>
|
||||
</template>
|
||||
<template x-if="session.bookableStock === 0">
|
||||
<div class="session__info session__info--book session__info--book-sold-out">
|
||||
<a class="ticket-link" title="Plus de places disponibles" disabled><?php snippet('ticket') ?> <span class="desktop">Complet</span></a>
|
||||
|
|
|
|||
|
|
@ -100,6 +100,9 @@
|
|||
<p x-text="session.time"></p>
|
||||
<p><?= $page->place() ?></p>
|
||||
</div>
|
||||
<template x-if="!session.ticketingUrl">
|
||||
<a class="ticket-link" title="Plus de places disponibles" disabled><?php snippet('ticket') ?> Entrée libre</a>
|
||||
</template>
|
||||
<template x-if="session.bookableStock === 0">
|
||||
<a class="ticket-link" title="Plus de places disponibles" disabled><?php snippet('ticket') ?> Complet</a>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue