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): ...@@ -402,6 +402,7 @@ class ProgramGroupWithCandidatesBlock(StructBlock):
other_views = ListBlock( other_views = ListBlock(
ProgramGroupWithCandidatesOtherViewBlock(), ProgramGroupWithCandidatesOtherViewBlock(),
label="Ostatní záložky", label="Ostatní záložky",
min_num=0,
help_text=( help_text=(
"Použitelné např. pro zobrazení volebních novin na separátní " "Použitelné např. pro zobrazení volebních novin na separátní "
"záložce stránky s programem." "záložce stránky s programem."
......
...@@ -81,21 +81,21 @@ ...@@ -81,21 +81,21 @@
<div class="bg-white py-12 container--wide text-center"> <div class="bg-white py-12 container--wide text-center">
<a <a
@click="toggleSecondaryView('candidates')" @click="toggleSecondaryView('candidates')"
class="switch__item--program" class="switch__item--program inline-block"
:class="{'switch__item--active': isCurrentSecondaryView('candidates')}" :class="{'switch__item--active': isCurrentSecondaryView('candidates')}"
>Kandidáti</a> >Kandidáti</a>
<a <a
@click="toggleSecondaryView('program')" @click="toggleSecondaryView('program')"
class="switch__item--program" class="switch__item--program inline-block"
:class="{'switch__item--active': isCurrentSecondaryView('program')}" :class="{'switch__item--active': isCurrentSecondaryView('program')}"
>Program</a> >Program</a>
{% for other_view in self.other_views %} {% for other_view in self.other_views %}
<a <a
@click="toggleSecondaryView('program-view-{{ forloop.counter0 }}')" @click="toggleSecondaryView('extra-view-{{ forloop.counter0 }}')"
class="switch__item--program" class="switch__item--program inline-block"
:class="{'switch__item--active': isCurrentSecondaryView('program-view-{{ forloop.counter0 }}')}" :class="{'switch__item--active': isCurrentSecondaryView('extra-view-{{ forloop.counter0 }}')}"
>{{ other_view.title }}</a> >{{ other_view.title }}</a>
{% endfor %} {% endfor %}
</div> </div>
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
</template> </template>
{% for other_view in self.other_views %} {% 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"> <div class="flex flex-col gap-4 mb-4 xl:mb-20 container--wide">
{% for child_block in other_view.child_blocks %} {% for child_block in other_view.child_blocks %}
{% include_block child_block %} {% 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