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:
|
when:
|
||||||
isMapadoEvent: true
|
isMapadoEvent: true
|
||||||
width: 1/4
|
width: 1/4
|
||||||
category:
|
categories:
|
||||||
label: Catégorie
|
label: Catégorie
|
||||||
type: select
|
type: multiselect
|
||||||
width: 1/4
|
width: 1/4
|
||||||
options:
|
options:
|
||||||
type: query
|
type: query
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ function createArraySession($event, $session) {
|
||||||
$arraySession['bookableStock'] = $isMapadoEvent ? $session->bookableStock()->value() : 'free';
|
$arraySession['bookableStock'] = $isMapadoEvent ? $session->bookableStock()->value() : 'free';
|
||||||
$arraySession['totalStock'] = $isMapadoEvent ? (int) $event->totalStock()->value() : 'free';
|
$arraySession['totalStock'] = $isMapadoEvent ? (int) $event->totalStock()->value() : 'free';
|
||||||
$arraySession['color'] = $event->color();
|
$arraySession['color'] = $event->color();
|
||||||
$arraySession['category'] = $event->category();
|
$arraySession['categories'] = $event->categories();
|
||||||
|
|
||||||
return $arraySession;
|
return $arraySession;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@
|
||||||
throw new Exception($session['title'], 1);
|
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'] ?>">
|
<li class="collapsable__item--padding session grid js-link" style="--color: <?= $session['color'] ?>">
|
||||||
<div class="session__info">
|
<div class="session__info">
|
||||||
<p><?= $formattedDate ?></p>
|
<p><?= $formattedDate ?></p>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue