Skip to content
Snippets Groups Projects
Commit 66e94a2e authored by Ondrej Rehounek's avatar Ondrej Rehounek
Browse files

district: Refactor some snippets to shared

parent e08ae4c9
No related branches found
No related tags found
2 merge requests!418Release,!414district and region modules
Pipeline #6147 passed
......@@ -5,7 +5,7 @@
<div class="candidate-card-list grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
{% for person_page in self.candidate_list %}
{% if forloop.counter < 8 %}
{% include "district/include/full_candidate_snippet.html" %}
{% include "shared/full_candidate_snippet.html" %}
{% endif %}
{% endfor %}
<aside class="banner bg-black text-white container-padding--zero sm:container-padding--auto">
......@@ -31,14 +31,14 @@
{% for person_page in self.candidate_list %}
{# Záměrně neomezuju list přes indexy, abych si držel counter pro snippet #}
{% if forloop.counter >= 8 and forloop.counter < 16 %}
{% include "district/include/compact_candidate_snippet.html" %}
{% include "shared/compact_candidate_snippet.html" %}
{% endif %}
{% endfor %}
<template v-if="isCurrentView('fullCandidateTable')">
{% for person_page in self.candidate_list %}
{# Záměrně neomezuju list přes indexy, abych si držel counter pro snippet #}
{% if forloop.counter >= 16 %}
{% include "district/include/compact_candidate_snippet.html" %}
{% include "shared/compact_candidate_snippet.html" %}
{% endif %}
{% endfor %}
</template>
......
{% load wagtailimages_tags %}
{% image self.image width-1920 as img %}
<header
class="hero hero--image py-16 "
style="--image-url: url({{ img.url }})"
>
<div class="container container--default">
<h1 class="head-alt-md md:head-alt-lg max-w-2xl ">
{{ self.title }}
</h1>
<h2 class="head-xs mt-2 ">
{{ self.subtitle }}
</h2>
</div>
</header>
......@@ -23,7 +23,7 @@
<div class="content-block">
{{ page.text | richtext }}
</div>
{% include "district/include/small_calendar_snippet.html" %}
{% include "shared/small_calendar_snippet.html" %}
</div>
<div class="pt-8 lg:w-2/5 xl:w-1/3 lg:pt-0">
<div class="lg:card lg:elevation-10">
......
......@@ -46,7 +46,7 @@
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
{% for election_point_page in election_points %}
{% include "district/include/election_point_card_snippet.html" %}
{% include "shared/election_point_card_snippet.html" %}
{% endfor %}
</div>
</template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment