fix home events grids
This commit is contained in:
parent
bb1ff96462
commit
7efec15b2f
2 changed files with 20 additions and 3 deletions
|
|
@ -66,7 +66,7 @@
|
|||
x-data="{title: 'Saisons précédentes'}"
|
||||
x-text="title"
|
||||
:class="tab === title ? 'strong' : ''"
|
||||
@click="if (tab === filterTitle) { tab = 'Programme' } else { tab = title }"
|
||||
@click="if (tab === title) { tab = 'Programme' } else { tab = title }"
|
||||
></button>
|
||||
</section>
|
||||
<section class="page-title">
|
||||
|
|
@ -153,6 +153,23 @@
|
|||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- Saisons précédentes -->
|
||||
<template x-if="tab.includes('Saisons précédentes')">
|
||||
<div class="program-content__events">
|
||||
<section class="collapsable-sections">
|
||||
<?php foreach($previousSeasons as $previousSeason): ?>
|
||||
<?php snippet('collapsable-section', ['title' => $previousSeason->title()], slots: true) ?>
|
||||
<?php slot('content') ?>
|
||||
<div class="program-content__events">
|
||||
<?php snippet('events-grid', ['events' => $previousSeason->children(), 'columns' => 3]) ?>
|
||||
</div>
|
||||
<?php endslot() ?>
|
||||
<?php endsnippet() ?>
|
||||
<?php endforeach ?>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue