{% extends "core/base.html" %} {% load core_tags menu_tags static wagtailuserbar wagtailcore_tags wagtailimages_tags crispy_forms_tags %} {% block content %} {% if self.slide1_img %} {% endif %}
{% if self.img1_img or self.img2_img %}
{% if self.img1_img %} {% image self.img1_img max-400x400 as img1 %}
{% image self.img1_img original as img1_orig %} {{ img1.alt }} {% if self.img1_caption %}

{{ self.img1_caption }}

{% endif %}
{% endif %} {% if self.img2_img %} {% image self.img2_img max-400x400 as img2 %}
{% image self.img2_img original as img2_orig %} {{ img2.alt }} {% if self.img2_caption %}

{{ self.img2_caption }}

{% endif %}
{% endif %}
{% endif %}

{{ self.title }}

{{ self.subtitle }}

{{ self.start_date }}{% if self.end_date %} - {{ self.end_date }}{% endif %}

{% if self.is_registration_active %} {% if self.pretix_slug %} Jetzt anmelden {% elif self.registration_url %} Jetzt anmelden {% else %} {% endif %} {% endif %}
{{ self.description|richtext }}
{% if self.tabs %}
{% for tab in self.tabs %}
{% if tab.block_type == 'richtext_tab' %} {{ tab.value.content|richtext }} {% elif tab.block_type == 'media_tab' %}
{{ tab.value.pre_content|richtext }}
{% include 'core/blocks/media_tab.html' with value=tab.value.media_file autoplay=tab.value.autoplay muted=tab.value.muted %}
{{ tab.value.post_content|richtext }}
{% elif tab.block_type == 'sponsor_tab' %} {% for sponsor in tab.value.sponsors %} {% if sponsor.block_type == 'headline' %}

{{ sponsor }}

{% elif sponsor.block_type == 'sponsor' %}
{% if sponsor.value.logo %} {% image sponsor.value.logo max-250x250 as img %} {% image sponsor.value.logo original as img_orig %} {{ img.alt }} {% endif %}
{% if sponsor.value.logo %}
{% endif %} {% if sponsor.value.url %}

{{ sponsor.value.name }}

{% else %}

{{ sponsor.value.name }}

{% endif %}
{% endif %} {% endfor %} {% endif %}
{% endfor %}
{% endif %}
{% if self.location_name %}

Veranstaltungsort

{{ self.location_name }}
{% if self.location_street %}{{ self.location_street }}
{% endif %} {% if self.location_city %}{{ self.location_city }}{% endif %}
{% endif %} {% if self.flyer %}

Programm

Flyer herunterladen

{{ self.flyer.title}}
Stand: {{ self.flyer.created_at }}

{% endif %} {% if self.downloads %}

Downloads

{% for download in self.downloads %} {{ download.value.title }}

{{ download.value.file.title }}
Stand: {{ download.value.file.created_at }}

{% endfor %}
{% endif %} {% if self.is_registration_active %}

Online Anmeldung

{% if self.pretix_slug %} Jetzt anmelden {% elif self.registration_url %} Jetzt anmelden {% else %} {% endif %}
{% endif %}
{% if self.is_registration_active and not self.pretix_slug %} {% endif %} {% endblock content %} {% block ready_js %} {{ block.super }} {% if form.errors %} var myModal = new bootstrap.Modal(document.getElementById('registration-modal')); myModal.show(); {% endif %} {% endblock %}