event category -> categories (multiselect)
This commit is contained in:
parent
75cb23e948
commit
f4e95f987d
3 changed files with 4 additions and 4 deletions
|
|
@ -14,9 +14,9 @@ tabs:
|
|||
when:
|
||||
isMapadoEvent: true
|
||||
width: 1/4
|
||||
category:
|
||||
categories:
|
||||
label: Catégorie
|
||||
type: select
|
||||
type: multiselect
|
||||
width: 1/4
|
||||
options:
|
||||
type: query
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ function createArraySession($event, $session) {
|
|||
$arraySession['bookableStock'] = $isMapadoEvent ? $session->bookableStock()->value() : 'free';
|
||||
$arraySession['totalStock'] = $isMapadoEvent ? (int) $event->totalStock()->value() : 'free';
|
||||
$arraySession['color'] = $event->color();
|
||||
$arraySession['category'] = $event->category();
|
||||
$arraySession['categories'] = $event->categories();
|
||||
|
||||
return $arraySession;
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@
|
|||
throw new Exception($session['title'], 1);
|
||||
}
|
||||
?>
|
||||
<template x-if="tab === 'Calendrier' || ('<?= $session['category'] ?>'.length > 0 && tab.includes('<?= $session['category'] ?>'))">
|
||||
<template x-if="tab === 'Calendrier' || ('<?= $session['categories'] ?>'.length > 0 && tab.includes('<?= $session['categories'] ?>'))">
|
||||
<li class="collapsable__item--padding session grid js-link" style="--color: <?= $session['color'] ?>">
|
||||
<div class="session__info">
|
||||
<p><?= $formattedDate ?></p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue