{% extends "styleguide2/base.html" %}
{% load wagtailcore_tags wagtailimages_tags shared_filters %}
{% block content %}
{% block navbar %}
{% include 'styleguide2/includes/organisms/layout/navbar.html' with selected_item=page.get_menu_title %}
{% endblock %}
{% include 'styleguide2/includes/organisms/header/simple_header.html' with title=page.title %}
{{ page.title }}
{% for text_block in page.text %}
{{ text_block.value.text_column_1|richtext }}
{{ text_block.value.text_column_2|richtext }}
{% endfor %}
{% if not hide_regional_contacts %}
Regionální kontakty
{% endif %}
{% if page.contact_people %}
Kontakty pro média
{% for contact_person in page.contact_people %}
{% firstof contact_person.value.position conact_person.value.person.position as contact_position %}
{% with contact_person.value.person.specific.get_profile_image as profile_image %}
{% if profile_image %}
{% image profile_image fill-256x256 as contact_box_image %}
{% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=contact_box_image name=contact_person.value.person.title function=contact_position telephone=contact_person.value.person.phone mail=contact_person.value.person.email url=contact_person.value.person.url %}
{% else %}
{% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with name=contact_person.value.person.title function=contact_position telephone=contact_person.value.person.phone mail=contact_person.value.person.email url=contact_person.value.person.url %}
{% endif %}
{% endwith %}
{% endfor %}
{% endif %}
{% if page.contact_boxes %}
Další kontakty
{% for contact_block in page.contact_boxes %}
{% image contact_block.value.image fill-256x256 as contact_box_image %}
{% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=contact_box_image name=contact_block.value.title function=contact_block.value.subtitle %}
{% endfor %}