Skip to content
Snippets Groups Projects
Commit d662d882 authored by Tomi Valentová's avatar Tomi Valentová
Browse files

fix display

parent 8d1a62ea
No related branches found
No related tags found
2 merge requests!1077fix display,!1076fix display
Pipeline #19160 passed
......@@ -402,6 +402,7 @@ class ProgramGroupWithCandidatesBlock(StructBlock):
other_views = ListBlock(
ProgramGroupWithCandidatesOtherViewBlock(),
label="Ostatní záložky",
min_num=0,
help_text=(
"Použitelné např. pro zobrazení volebních novin na separátní "
"záložce stránky s programem."
......
......@@ -81,21 +81,21 @@
<div class="bg-white py-12 container--wide text-center">
<a
@click="toggleSecondaryView('candidates')"
class="switch__item--program"
class="switch__item--program inline-block"
:class="{'switch__item--active': isCurrentSecondaryView('candidates')}"
>Kandidáti</a>
<a
@click="toggleSecondaryView('program')"
class="switch__item--program"
class="switch__item--program inline-block"
:class="{'switch__item--active': isCurrentSecondaryView('program')}"
>Program</a>
{% for other_view in self.other_views %}
<a
@click="toggleSecondaryView('program-view-{{ forloop.counter0 }}')"
class="switch__item--program"
:class="{'switch__item--active': isCurrentSecondaryView('program-view-{{ forloop.counter0 }}')}"
@click="toggleSecondaryView('extra-view-{{ forloop.counter0 }}')"
class="switch__item--program inline-block"
:class="{'switch__item--active': isCurrentSecondaryView('extra-view-{{ forloop.counter0 }}')}"
>{{ other_view.title }}</a>
{% endfor %}
</div>
......@@ -118,7 +118,7 @@
</template>
{% for other_view in self.other_views %}
<template v-if="isCurrentSecondaryView('program-view-{{ forloop.counter0 }}')">
<template v-if="isCurrentSecondaryView('extra-view-{{ forloop.counter0 }}')">
<div class="flex flex-col gap-4 mb-4 xl:mb-20 container--wide">
{% for child_block in other_view.child_blocks %}
{% include_block child_block %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment