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

fix templates

parent 89a66dde
No related branches found
No related tags found
2 merge requests!1143Release,!1142Fix templates, add card background image
Pipeline #19862 passed
{% include "styleguide2/contact_page.html" with show_regional_contacts=True %} {% extends "styleguide2/contact_page.html" %}
{% block navbar %} {% block navbar %}
{% include 'styleguide2/includes/organisms/layout/main/navbar.html' with selected_item=page.get_menu_title %} {% include 'styleguide2/includes/organisms/layout/main/navbar.html' with selected_item=page.get_menu_title %}
......
{% include "styleguide2/people_page.html" %} {% extends "styleguide2/people_page.html" %}
{% block navbar %} {% block navbar %}
{% include 'styleguide2/includes/organisms/layout/main/navbar.html' with selected_item=page.get_menu_title %} {% include 'styleguide2/includes/organisms/layout/main/navbar.html' with selected_item=page.get_menu_title %}
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
</div> </div>
{% if show_regional_contacts %} {% if not hide_regional_contacts %}
<div class="w-full max-w-2xl"> <div class="w-full max-w-2xl">
<h2 class="head-6xl mb-5"> <h2 class="head-6xl mb-5">
Regionální kontakty Regionální kontakty
......
...@@ -3,113 +3,113 @@ ...@@ -3,113 +3,113 @@
{% block content %} {% block content %}
{% block navbar %} {% block navbar %}
{% include 'styleguide2/includes/organisms/layout/navbar.html' with selected_item=page.get_menu_title %} {% include 'styleguide2/includes/organisms/layout/navbar.html' with selected_item=page.get_menu_title %}
{% endblock %} {% endblock %}
<div class="__js-root"> <div class="__js-root">
<ui-view-provider <ui-view-provider
:initial="{ :initial="{
{% for content_item in page.content %} {% for content_item in page.content %}
{% if content_item.block_type == "octopus_group" or content_item.block_type == "people_group" or content_item.block_type == "team_group" %} {% if content_item.block_type == "octopus_group" or content_item.block_type == "people_group" or content_item.block_type == "team_group" %}
'{{ content_item.value.slug }}-{{ forloop.counter }}': {% if page.content|is_first_people_type:forloop %}false{% else %}true{% endif %}, '{{ content_item.value.slug }}-{{ forloop.counter }}': {% if page.content|is_first_people_type:forloop %}false{% else %}true{% endif %},
{% endif %} {% endif %}
{% endfor %} {% endfor %}
}" }"
:sync-location="true" :sync-location="true"
v-slot="{ isCurrentView, toggleView }" v-slot="{ isCurrentView, toggleView }"
> >
{% include 'styleguide2/includes/organisms/header/people_header.html' with content=page.content title=page.title description_column_1=page.perex_col_1 description_column_2=page.perex_col_2 %} {% include 'styleguide2/includes/organisms/header/people_header.html' with content=page.content title=page.title description_column_1=page.perex_col_1 description_column_2=page.perex_col_2 %}
<main role="main" class="mb-20"> <main role="main" class="mb-20">
<div class="container--wide"> <div class="container--wide">
<div <div
class=" class="
flex flex-wrap justify-center gap-4 flex flex-wrap justify-center gap-4
xl:justify-start xl:justify-start
" "
> >
<div class="grid grid-cols-1 gap-4 md:grid-cols-2 w-full"> <div class="grid grid-cols-1 gap-4 md:grid-cols-2 w-full">
{% for block in page.content %} {% for block in page.content %}
{% if block.block_type == "octopus_group" %} {% if block.block_type == "octopus_group" %}
<template v-if="isCurrentView('{{ block.value.slug }}-{{ forloop.counter }}')"> <template v-if="isCurrentView('{{ block.value.slug }}-{{ forloop.counter }}')">
{% with block|get_block_octopus_person_list as person_list %} {% with block|get_block_octopus_person_list as person_list %}
{% if person_list|length %} {% if person_list|length %}
{% for person_page in person_list %} {% for person_page in person_list %}
{% image person_page.specific.get_profile_image fill-480x480 as profile_image %}
{% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=person_page.position telephone=person_page.phone mail=person_page.email url=person_page.url %}
{% endfor %}
{% endif %}
{% endwith %}
</template>
{% endif %}
{% endfor %}
</div>
<div class="grid grid-cols-1 gap-4 md:grid-cols-2 w-full">
{% for block in page.content %}
{% if block.block_type == "people_group" %}
<template v-if="isCurrentView('{{ block.value.slug }}-{{ forloop.counter }}')">
{% if block.value.person_list|length %}
{% for person_page in block.value.person_list %}
{% image person_page.specific.get_profile_image fill-480x480 as profile_image %} {% image person_page.specific.get_profile_image fill-480x480 as profile_image %}
{% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=person_page.position telephone=person_page.phone mail=person_page.email url=person_page.url %} {% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=person_page.position telephone=person_page.phone mail=person_page.email url=person_page.url %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endwith %}
</template>
{% endif %}
{% endfor %}
</div>
<div class="grid grid-cols-1 gap-4 md:grid-cols-2 w-full"> {% if block.value.person_list_with_custom_positions|length %}
{% for person in block.value.person_list_with_custom_positions %}
{% with person.page as person_page %}
{% image person_page.specific.get_profile_image fill-480x480 as profile_image %}
{% firstof person.position person_page.position as position %}
{% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=position telephone=person_page.phone mail=person_page.email url=person_page.url %}
{% endwith %}
{% endfor %}
{% endif %}
</template>
{% endif %}
{% endfor %}
</div>
{% for block in page.content %} {% for block in page.content %}
{% if block.block_type == "people_group" %} {% if block.block_type == "team_group" %}
<template v-if="isCurrentView('{{ block.value.slug }}-{{ forloop.counter }}')"> <template v-if="isCurrentView('{{ block.value.slug }}-{{ forloop.counter }}')">
{% if block.value.person_list|length %} {% for team in block.value.team_list %}
{% for person_page in block.value.person_list %}
{% image person_page.specific.get_profile_image fill-480x480 as profile_image %}
{% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=person_page.position telephone=person_page.phone mail=person_page.email url=person_page.url %} {% if team.headline %}
{% endfor %} <h2 class="head-6xl mt-5 mb-5">{{ team.headline }}</h2>
{% endif %} {% endif %}
{% if block.value.person_list_with_custom_positions|length %}
{% for person in block.value.person_list_with_custom_positions %}
{% with person.page as person_page %}
{% image person_page.specific.get_profile_image fill-480x480 as profile_image %}
{% firstof person.position person_page.position as position %} <ul class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 content-stretch gap-8">
{% for card in team.card_items %}
{% image card.image max-512x512 as card_image %}
{% firstof card.page.url card.link as card_url %}
{% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=position telephone=person_page.phone mail=person_page.email url=person_page.url %} {% include 'styleguide2/includes/molecules/boxes/card_box.html' with image=card_image header=card.title content=card.text url=card_url description_classes='!bg-grey-180' %}
{% endwith %} {% endfor %}
{% endfor %} </ul>
{% endif %} {% endfor %}
</template> </template>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
{% for block in page.content %} {% for block in page.content %}
{% if block.block_type == "team_group" %} {% if block.block_type != "octopus_group" and block.block_type != "people_group" and block.block_type != "team_group" %}
<template v-if="isCurrentView('{{ block.value.slug }}-{{ forloop.counter }}')"> {% include_block block %}
{% for team in block.value.team_list %}
{% if team.headline %}
<h2 class="head-6xl mt-5 mb-5">{{ team.headline }}</h2>
{% endif %}
<ul class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 content-stretch gap-8">
{% for card in team.card_items %}
{% image card.image max-512x512 as card_image %}
{% firstof card.page.url card.link as card_url %}
{% include 'styleguide2/includes/molecules/boxes/card_box.html' with image=card_image header=card.title content=card.text url=card_url description_classes='!bg-grey-180' %}
{% endfor %}
</ul>
{% endfor %}
</template>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
</main>
</ui-view-provider>
</div>
{% for block in page.content %} {% block newsletter %}
{% if block.block_type != "octopus_group" and block.block_type != "people_group" and block.block_type != "team_group" %} {% include 'styleguide2/includes/organisms/main_section/newsletter_section.html' %}
{% include_block block %} {% endblock %}
{% endif %}
{% endfor %}
</div>
</main>
</ui-view-provider>
</div>
{% block newsletter %}
{% include 'styleguide2/includes/organisms/main_section/newsletter_section.html' %}
{% endblock %}
{% endblock content %} {% endblock content %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment