@ -1,210 +1,345 @@
{% extends "core/base.html" %}
{% load core_tags menu_tags static wagtailuserbar wagtailcore_tags wagtailimages_tags crispy_forms_tags %}
{% block extra_css %}
< style >
/* Event page specific styles - Hero sections moved to theme.css */
/* event-date-card styles moved to theme.css */
/* Image gallery and cards moved to theme.css */
/* Content sections moved to theme.css */
/* Tabs styling moved to theme.css */
/* Sponsor styling moved to theme.css */
/* Event page specific styles - common components moved to theme.css */
/* Responsive adjustments moved to theme.css */
< / style >
{% endblock %}
{% block content %}
<!-- Hero Section with Carousel -->
{% if self.slide1_img %}
< div id = "eventCarousel" class = "carousel slide mb-4" data-bs-ride = "carousel" >
< div class = "carousel-indicators" >
< button type = "button" data-bs-target = "#eventCarousel" data-bs-slide-to = "0" class = "active" aria-current = "true" aria-label = "Slide 1" > < / button >
{% if self.slide2_img %}
< button type = "button" data-bs-target = "#eventCarousel" data-bs-slide-to = "1" aria-label = "Slide 2" > < / button >
{% endif %}
{% if self.slide3_img %}
< button type = "button" data-bs-target = "#eventCarousel" data-bs-slide-to = "2" aria-label = "Slide 3" > < / button >
{% endif %}
< / div >
< div class = "carousel-inner" >
< div class = "carousel-item active" >
{% image self.slide1_img fill-2000x500 class="d-block w-100" alt=self.slide1_headline %}
{% if self.slide1_headline or self.slide1_subline %}
< div class = "carousel-caption d-none d-md-block" >
{% if self.slide1_headline %}
< h2 > {{ self.slide1_headline }}< / h2 >
{% endif %}
{% if self.slide1_subline %}
< p > {{ self.slide1_subline }}< / p >
{% endif %}
{% if self.slide1_link_url and self.slide1_link_text %}
< a href = "{{ self.slide1_link_url }}" class = "btn btn-outline-light mt-3" > {{ self.slide1_link_text }}< / a >
{% endif %}
< / div >
< div class = "event-hero" >
< div id = "eventCarousel" class = "carousel slide event-hero-carousel" data-bs-ride = "carousel" >
< div class = "carousel-indicators" >
< button type = "button" data-bs-target = "#eventCarousel" data-bs-slide-to = "0" class = "active" aria-current = "true" aria-label = "Slide 1" > < / button >
{% if self.slide2_img %}
< button type = "button" data-bs-target = "#eventCarousel" data-bs-slide-to = "1" aria-label = "Slide 2" > < / button >
{% endif %}
{% if self.slide3_img %}
< button type = "button" data-bs-target = "#eventCarousel" data-bs-slide-to = "2" aria-label = "Slide 3" > < / button >
{% endif %}
< / div >
{% if self.slide2_img %}
< div class = "carousel-item" >
{% image self.slide2_img fill-2000x500 class="d-block w-100" alt=self.slide2_headline %}
{% if self.slide2_headline or self.slide2_subline %}
< div class = "carousel-caption d-none d-md-block" >
{% if self.slide2_headline %}
< h2 > {{ self.slide2_headline }}< / h2 >
{% endif %}
{% if self.slide2_subline %}
< p > {{ self.slide2_subline }}< / p >
< div class = "carousel-inner" >
< div class = "carousel-item active" >
{% image self.slide1_img fill-2000x500 class="d-block w-100" alt=self.slide1_headline %}
{% if self.slide1_headline or self.slide1_subline %}
< div class = "carousel-caption" >
{% if self.slide1_headline %}
< h2 class = "display-4 fw-light" > {{ self.slide1_headline }}< / h2 >
{% endif %}
{% if self.slide1_subline %}
< p class = "lead" > {{ self.slide1_subline }}< / p >
{% endif %}
{% if self.slide1_link_url and self.slide1_link_text %}
< a href = "{{ self.slide1_link_url }}" class = "btn btn-outline-light btn-lg mt-3" >
< i class = "bi bi-arrow-right-circle me-2" > < / i > {{ self.slide1_link_text }}
< / a >
{% endif %}
< / div >
{% endif %}
{% if self.slide2_link_url and self.slide2_link_text %}
< a href = "{{ self.slide2_link_url }}" class = "btn btn-outline-light mt-3" > {{ self.slide2_link_text }}< / a >
< / div >
{% if self.slide2_img %}
< div class = "carousel-item" >
{% image self.slide2_img fill-2000x500 class="d-block w-100" alt=self.slide2_headline %}
{% if self.slide2_headline or self.slide2_subline %}
< div class = "carousel-caption" >
{% if self.slide2_headline %}
< h2 class = "display-4 fw-light" > {{ self.slide2_headline }}< / h2 >
{% endif %}
{% if self.slide2_subline %}
< p class = "lead" > {{ self.slide2_subline }}< / p >
{% endif %}
{% if self.slide2_link_url and self.slide2_link_text %}
< a href = "{{ self.slide2_link_url }}" class = "btn btn-outline-light btn-lg mt-3" >
< i class = "bi bi-arrow-right-circle me-2" > < / i > {{ self.slide2_link_text }}
< / a >
{% endif %}
< / div >
{% endif %}
< / div >
{% endif %}
< / div >
{% endif %}
{% if self.slide3_img %}
< div class = "carousel-item" >
{% image self.slide3_img fill-2000x500 class="d-block w-100" alt=self.slide3_headline %}
{% if self.slide3_headline or self.slide3_subline %}
< div class = "carousel-caption d-none d-md-block" >
{% if self.slide3_headline %}
< h2 > {{ self.slide3_headline }}< / h2 >
{% endif %}
{% if self.slide3_subline %}
< p > {{ self.slide3_subline }}< / p >
{% endif %}
{% if self.slide3_link_url and self.slide3_link_text %}
< a href = "{{ self.slide3_link_url }}" class = "btn btn-outline-light mt-3" > {{ self.slide3_link_text }}< / a >
{% if self.slide3_img %}
< div class = "carousel-item" >
{% image self.slide3_img fill-2000x500 class="d-block w-100" alt=self.slide3_headline %}
{% if self.slide3_headline or self.slide3_subline %}
< div class = "carousel-caption" >
{% if self.slide3_headline %}
< h2 class = "display-4 fw-light" > {{ self.slide3_headline }}< / h2 >
{% endif %}
{% if self.slide3_subline %}
< p class = "lead" > {{ self.slide3_subline }}< / p >
{% endif %}
{% if self.slide3_link_url and self.slide3_link_text %}
< a href = "{{ self.slide3_link_url }}" class = "btn btn-outline-light btn-lg mt-3" >
< i class = "bi bi-arrow-right-circle me-2" > < / i > {{ self.slide3_link_text }}
< / a >
{% endif %}
< / div >
{% endif %}
< / div >
{% endif %}
< / div >
{% endif %}
< button class = "carousel-control-prev" type = "button" data-bs-target = "#eventCarousel" data-bs-slide = "prev" >
< span class = "carousel-control-prev-icon" aria-hidden = "true" > < / span >
< span class = "visually-hidden" > Previous< / span >
< / button >
< button class = "carousel-control-next" type = "button" data-bs-target = "#eventCarousel" data-bs-slide = "next" >
< span class = "carousel-control-next-icon" aria-hidden = "true" > < / span >
< span class = "visually-hidden" > Next< / span >
< / button >
< / div >
< button class = "carousel-control-prev" type = "button" data-bs-target = "#eventCarousel" data-bs-slide = "prev" >
< span class = "carousel-control-prev-icon" aria-hidden = "true" > < / span >
< span class = "visually-hidden" > Previous< / span >
< / button >
< button class = "carousel-control-next" type = "button" data-bs-target = "#eventCarousel" data-bs-slide = "next" >
< span class = "carousel-control-next-icon" aria-hidden = "true" > < / span >
< span class = "visually-hidden" > Next< / span >
< / button >
< / div >
{% endif %}
<!-- Event Header -->
< div class = "event-title-container" >
< h1 class = "event-title display-4" > {{ self.title }}< / h1 >
{% if self.subtitle %}
< h2 class = "event-subtitle h3" > {{ self.subtitle }}< / h2 >
{% endif %}
< / div >
< div class = "row" >
{% if self.img1_img or self.img2_img %}
< div class = "col-md-4 col-sm-5 d-none d-sm-block" >
{% if self.img1_img %}
{% image self.img1_img max-400x400 as img1 %}
< div class = "card mb-4" >
<!-- Event Images (Moved to left) -->
< div class = "col-lg-4" >
{% if self.img1_img or self.img2_img %}
< div class = "event-image-gallery" >
{% if self.img1_img %}
{% image self.img1_img width-400 as img1 %}
{% image self.img1_img original as img1_orig %}
< a href = "{{ img1_orig.url }}" data-bs-toggle = "modal" data-bs-target = "#imageModal{{ img1.id }}" >
< img src = "{{ img1.url }}" width = "{{ img1.width }}"
height="{{ img1.height }}" alt="{{ img1.alt }}" class="img-fluid card-img-top" />
< / a >
{% if self.img1_caption %}
< div class = "card-body" >
< p class = "card-text" > {{ self.img1_caption }}< / p >
< / div >
{% endif %}
< / div >
<!-- Modal for image 1 -->
< div class = "modal fade" id = "imageModal{{ img1.id }}" tabindex = "-1" aria-labelledby = "imageModalLabel{{ img1.id }}" aria-hidden = "true" >
< div class = "modal-dialog modal-lg" >
< div class = "modal-content" >
< div class = "modal-header" >
< h5 class = "modal-title" id = "imageModalLabel{{ img1.id }}" > {{ self.img1_caption|default:"Bild" }}< / h5 >
< button type = "button" class = "btn-close" data-bs-dismiss = "modal" aria-label = "Close" > < / button >
< div class = "event-image-card mb-4" >
< a href = "{{ img1_orig.url }}" data-bs-toggle = "modal" data-bs-target = "#imageModal{{ img1.id }}" class = "d-block" >
< img src = "{{ img1.url }}" width = "{{ img1.width }}"
height="{{ img1.height }}" alt="{{ img1.alt }}" class="img-fluid card-img-top" />
< / a >
{% if self.img1_caption %}
< div class = "card-body" >
< p class = "card-text" > {{ self.img1_caption }}< / p >
< / div >
< div class = "modal-body text-center" >
< img src = "{{ img1_orig.url }}" alt = "{{ img1.alt }}" class = "img-fluid" / >
{% endif %}
< / div >
<!-- Modal for image 1 -->
< div class = "modal fade" id = "imageModal{{ img1.id }}" tabindex = "-1" aria-labelledby = "imageModalLabel{{ img1.id }}" aria-hidden = "true" >
< div class = "modal-dialog modal-lg" >
< div class = "modal-content" >
< div class = "modal-header" >
< h5 class = "modal-title" id = "imageModalLabel{{ img1.id }}" > {{ self.img1_caption|default:"Bild" }}< / h5 >
< button type = "button" class = "btn-close" data-bs-dismiss = "modal" aria-label = "Close" > < / button >
< / div >
< div class = "modal-body text-center" >
< img src = "{{ img1_orig.url }}" alt = "{{ img1.alt }}" class = "img-fluid" / >
< / div >
< / div >
< / div >
< / div >
< / div >
{% endif %}
{% if self.img2_img %}
{% image self.img2_img max-400x400 as img2 %}
< div class = "card mb-4" >
{% endif %}
{% if self.img2_img %}
{% image self.img2_img width-400 as img2 %}
{% image self.img2_img original as img2_orig %}
< a href = "{{ img2_orig.url }}" data-bs-toggle = "modal" data-bs-target = "#imageModal{{ img2.id }}" >
< img src = "{{ img2.url }}" width = "{{ img2.width }}"
height="{{ img2.height }}" alt="{{ img2.alt }}" class="img-fluid card-img-top" />
< / a >
{% if self.img2_caption %}
< div class = "card-body" >
< p class = "card-text" > {{ self.img2_caption }}< / p >
< / div >
{% endif %}
< / div >
<!-- Modal for image 2 -->
< div class = "modal fade" id = "imageModal{{ img2.id }}" tabindex = "-1" aria-labelledby = "imageModalLabel{{ img2.id }}" aria-hidden = "true" >
< div class = "modal-dialog modal-lg" >
< div class = "modal-content" >
< div class = "modal-header" >
< h5 class = "modal-title" id = "imageModalLabel{{ img2.id }}" > {{ self.img2_caption|default:"Bild" }}< / h5 >
< button type = "button" class = "btn-close" data-bs-dismiss = "modal" aria-label = "Close" > < / button >
< div class = "event-image-card mb-4" >
< a href = "{{ img2_orig.url }}" data-bs-toggle = "modal" data-bs-target = "#imageModal{{ img2.id }}" class = "d-block" >
< img src = "{{ img2.url }}" width = "{{ img2.width }}"
height="{{ img2.height }}" alt="{{ img2.alt }}" class="img-fluid card-img-top" />
< / a >
{% if self.img2_caption %}
< div class = "card-body" >
< p class = "card-text" > {{ self.img2_caption }}< / p >
< / div >
< div class = "modal-body text-center" >
< img src = "{{ img2_orig.url }}" alt = "{{ img2.alt }}" class = "img-fluid" / >
{% endif %}
< / div >
<!-- Modal for image 2 -->
< div class = "modal fade" id = "imageModal{{ img2.id }}" tabindex = "-1" aria-labelledby = "imageModalLabel{{ img2.id }}" aria-hidden = "true" >
< div class = "modal-dialog modal-lg" >
< div class = "modal-content" >
< div class = "modal-header" >
< h5 class = "modal-title" id = "imageModalLabel{{ img2.id }}" > {{ self.img2_caption|default:"Bild" }}< / h5 >
< button type = "button" class = "btn-close" data-bs-dismiss = "modal" aria-label = "Close" > < / button >
< / div >
< div class = "modal-body text-center" >
< img src = "{{ img2_orig.url }}" alt = "{{ img2.alt }}" class = "img-fluid" / >
< / div >
< / div >
< / div >
< / div >
{% endif %}
< / div >
{% endif %}
< / div >
< div class = "col-lg-8" >
<!-- Event Date Card -->
< div class = "event-date-card" >
< div class = "row align-items-center" >
< div class = "col-md-7" >
< h3 class = "card-title mb-2" >
< i class = "bi bi-calendar-event me-2" > < / i >
{{ self.start_date }}{% if self.end_date %} - {{ self.end_date }}{% endif %}
< / h3 >
{% if self.location_name %}
< p class = "mb-0" >
< i class = "bi bi-geo-alt me-2" > < / i >
{{ self.location_name }}{% if self.location_city %}, {{ self.location_city }}{% endif %}
< / p >
{% endif %}
< / div >
{% endif %}
< / div >
{% endif %}
< div class = "col-md-8 col-sm-7" >
< div class = "border-bottom mb-3" >
< h2 > {{ self.title }}< / h2 >
< / div >
< h3 class = "text-muted mb-4" > {{ self.subtitle }}< / h3 >
< div class = "card bg-light mb-4" >
< div class = "card-body text-center" >
< h3 class = "card-title" > {{ self.start_date }}{% if self.end_date %} - {{ self.end_date }}{% endif %}< / h3 >
{% if self.is_registration_active %}
{% if self.pretix_slug %}
< a class = "btn btn-primary btn-lg" href = "{{ self.pretix_url }}" target = "_blank" > < i class = "bi bi-people" > < / i > Jetzt anmelden< / a >
{% elif self.registration_url %}
< a class = "btn btn-primary btn-lg" href = "{{ self.registration_url }}" target = "_blank" > < i class = "bi bi-people" > < / i > Jetzt anmelden< / a >
{% else %}
< button class = "btn btn-primary btn-lg" data-bs-toggle = "modal" data-bs-target = "#registration-modal" > < i class = "bi bi-people" > < / i > Jetzt anmelden< / button >
< div class = "col-md-5 text-md-end mt-3 mt-md-0" >
{% if self.is_registration_active %}
{% if self.pretix_slug %}
< a class = "btn btn-light btn-lg" href = "{{ self.pretix_url }}" target = "_blank" >
< i class = "bi bi-people me-2" > < / i > Jetzt anmelden
< / a >
{% elif self.registration_url %}
< a class = "btn btn-light btn-lg" href = "{{ self.registration_url }}" target = "_blank" >
< i class = "bi bi-people me-2" > < / i > Jetzt anmelden
< / a >
{% else %}
{% endif %}
{% endif %}
{% endif %}
< / div >
< / div >
< / div >
< div class = "mb-4" >
<!-- Event Description -->
< div class = "event-description" >
{{ self.description|richtext }}
< / div >
{% if self.tabs %}
< div class = "mb-4" >
< ul class = "nav nav-tabs" role = "tablist" >
{% for tab in self.tabs %}
< li class = "nav-item" >
< a class = "nav-link {{ forloop.counter0|yesno:" , active " } } "
id="tab-{{ forloop.counter }}-tab"
data-bs-toggle="tab"
href="#tab-{{ forloop.counter }}"
role="tab"
aria-controls="tab-{{ forloop.counter }}"
aria-selected="{{ forloop.counter0|yesno:"false,true" }}">
{{ tab.value.title }}
<!-- Event Details Cards -->
< div class = "row mb-4" >
{% if self.location_name %}
< div class = "col-lg-4 col-md-6 col-12 mb-4" >
< div class = "card h-100 border-0 shadow-sm event-detail-card" >
< div class = "card-body" >
< h3 class = "card-title mb-4" >
< i class = "bi bi-geo-alt-fill text-primary me-2" > < / i > Veranstaltungsort
< / h3 >
< address class = "mb-0" >
< strong > {{ self.location_name }}< / strong > < br >
{% if self.location_street %}{{ self.location_street }}< br > {% endif %}
{% if self.location_city %}{{ self.location_city }}{% endif %}
< / address >
< / div >
< / div >
< / div >
{% endif %}
{% if self.flyer %}
< div class = "col-lg-4 col-md-6 col-12 mb-4" >
< div class = "card h-100 border-0 shadow-sm event-detail-card" >
< div class = "card-body" >
< h3 class = "card-title mb-4" >
< i class = "bi bi-file-earmark-text text-primary me-2" > < / i > Programm
< / h3 >
< a class = "btn btn-outline-primary btn-lg w-100 mb-3" href = "{{ self.flyer.url }}" target = "_blank" >
< i class = "bi bi-cloud-download me-2" > < / i > Flyer herunterladen
< / a >
< p class = "small text-muted mb-0" >
{{ self.flyer.title }}< br >
Stand: {{ self.flyer.created_at }}
< / p >
< / div >
< / div >
< / div >
{% endif %}
{% if self.downloads %}
< div class = "col-lg-4 col-md-6 col-12 mb-4" >
< div class = "card h-100 border-0 shadow-sm event-detail-card" >
< div class = "card-body" >
< h3 class = "card-title mb-4" >
< i class = "bi bi-download text-primary me-2" > < / i > Downloads
< / h3 >
{% for download in self.downloads %}
< a class = "btn btn-outline-primary mb-3 w-100" href = "{{ download.value.file.url }}" target = "_blank" >
< i class = "bi bi-cloud-download me-2" > < / i > {{ download.value.title }}
< / a >
< / li >
{% endfor %}
< / ul >
< div class = "tab-content pt-3" >
{% for tab in self.tabs %}
< div class = "tab-pane fade{{ forloop.counter0|yesno:" , active show " } } "
id="tab-{{ forloop.counter }}"
role="tabpanel"
aria-labelledby="tab-{{ forloop.counter }}-tab">
{% if tab.block_type == 'richtext_tab' %}
{{ tab.value.content|richtext }}
{% elif tab.block_type == 'media_tab' %}
< div class = "mb-3" > {{ tab.value.pre_content|richtext }}< / div >
< div class = "mb-3" > {% include 'core/blocks/media_tab.html' with value=tab.value.media_file autoplay=tab.value.autoplay muted=tab.value.muted %}< / div >
< div > {{ tab.value.post_content|richtext }}< / div >
{% elif tab.block_type == 'sponsor_tab' %}
{% for sponsor in tab.value.sponsors %}
{% if sponsor.block_type == 'headline' %}
< h3 class = "border-bottom pb-2 mb-3" > {{ sponsor }}< / h3 >
{% elif sponsor.block_type == 'sponsor' %}
< div class = "row mb-4" >
< div class = "col-md-3 col-sm-5 col-12" >
< p class = "small text-muted {% if not forloop.last %}mb-4{% else %}mb-0{% endif %}" >
{{ download.value.file.title }}< br >
Stand: {{ download.value.file.created_at }}
< / p >
{% endfor %}
< / div >
< / div >
< / div >
{% endif %}
< / div >
< / div >
< / div >
<!-- Tabs Section -->
{% if self.tabs %}
< div class = "event-tabs mb-4 mt-4" >
< ul class = "nav nav-pills nav-fill mb-4" role = "tablist" >
{% for tab in self.tabs %}
< li class = "nav-item" >
< a class = "nav-link {{ forloop.counter0|yesno:" , active " } } "
id="tab-{{ forloop.counter }}-tab"
data-bs-toggle="tab"
href="#tab-{{ forloop.counter }}"
role="tab"
aria-controls="tab-{{ forloop.counter }}"
aria-selected="{{ forloop.counter0|yesno:"false,true" }}">
{{ tab.value.title }}
< / a >
< / li >
{% endfor %}
< / ul >
< div class = "tab-content p-4 bg-white rounded-3 shadow-sm" >
{% for tab in self.tabs %}
< div class = "tab-pane fade{{ forloop.counter0|yesno:" , active show " } } "
id="tab-{{ forloop.counter }}"
role="tabpanel"
aria-labelledby="tab-{{ forloop.counter }}-tab">
{% if tab.block_type == 'richtext_tab' %}
{{ tab.value.content|richtext }}
{% elif tab.block_type == 'media_tab' %}
< div class = "mb-4" > {{ tab.value.pre_content|richtext }}< / div >
< div class = "mb-4 rounded overflow-hidden" >
{% include 'core/blocks/media_tab.html' with value=tab.value.media_file autoplay=tab.value.autoplay muted=tab.value.muted %}
< / div >
< div > {{ tab.value.post_content|richtext }}< / div >
{% elif tab.block_type == 'image_tab' %}
< div class = "image-tab-container text-{{ tab.value.alignment }}" >
< div class = "image-tab-wrapper image-size-{{ tab.value.size }}" >
{% image tab.value.image original as img %}
< img src = "{{ img.url }}" alt = "{{ img.alt }}" class = "img-fluid rounded" / >
{% if tab.value.caption %}
< div class = "image-tab-caption mt-2" > {{ tab.value.caption }}< / div >
{% endif %}
< / div >
< / div >
{% elif tab.block_type == 'sponsor_tab' %}
{% for sponsor in tab.value.sponsors %}
{% if sponsor.block_type == 'headline' %}
< h3 class = "mb-4 pb-2 position-relative sponsor-heading" > {{ sponsor }}< / h3 >
{% elif sponsor.block_type == 'sponsor' %}
< div class = "card sponsor-card mb-4 border-0 shadow-sm" >
< div class = "card-body" >
< div class = "row align-items-center" >
< div class = "col-md-3 col-sm-5 col-12 text-center mb-3 mb-md-0" >
{% if sponsor.value.logo %}
{% image sponsor.value.logo max-250x250 as img %}
{% image sponsor.value.logo original as img_orig %}
< a href = "{{ img_orig.url }}" data-bs-toggle = "modal" data-bs-target = "#sponsorModal{{ img.id }}" >
< a href = "{{ img_orig.url }}" data-bs-toggle = "modal" data-bs-target = "#sponsorModal{{ img.id }}" class = "d-inline-block" >
< img src = "{{ img.url }}" width = "{{ img.width }}"
height="{{ img.height }}" alt="{{ img.alt }}" class="img-fluid" />
height="{{ img.height }}" alt="{{ img.alt }}" class="img-fluid sponsor-logo " />
< / a >
<!-- Modal for sponsor logo -->
< div class = "modal fade" id = "sponsorModal{{ img.id }}" tabindex = "-1" aria-labelledby = "sponsorModalLabel{{ img.id }}" aria-hidden = "true" >
@ -223,112 +358,58 @@
{% endif %}
< / div >
< div class = "col-md-9 col-sm-7 col-12" >
{% if sponsor.value.logo %}
< div class = "d-none d-md-block mb-4" > < / div >
{% endif %}
{% if sponsor.value.url %}
< p > < a href = "{{ sponsor.value.url }}" target = "_blank" > {{ sponsor.value.name }}< / a > < / p >
{% else %}
< p > {{ sponsor.value.name }}< / p >
{% endif %}
< h4 class = "mb-2" >
{% if sponsor.value.url %}
< a href = "{{ sponsor.value.url }}" target = "_blank" class = "text-decoration-none" >
{{ sponsor.value.name }}
< i class = "bi bi-box-arrow-up-right ms-2 small" > < / i >
< / a >
{% else %}
{{ sponsor.value.name }}
{% endif %}
< / h4 >
< / div >
< / div >
{% endif %}
{% endfor %}
< / div >
< / div >
{% endif %}
< / div >
{% endfor %}
< / div >
< / div >
{% endif %}
< div class = "row mb-4" >
{% if self.location_name %}
< div class = "col-lg-4 col-md-6 col-12 mb-4" >
< div class = "border-bottom pb-2 mb-3" >
< h3 > Veranstaltungsort< / h3 >
< / div >
< address class = "mb-4" >
< strong > {{ self.location_name }}< / strong > < br >
{% if self.location_street %}{{ self.location_street }}< br > {% endif %}
{% if self.location_city %}{{ self.location_city }}{% endif %}
< / address >
< / div >
{% endif %}
{% if self.flyer %}
< div class = "col-lg-4 col-md-6 col-12 mb-4" >
< div class = "border-bottom pb-2 mb-3" >
< h3 > Programm< / h3 >
< / div >
< a class = "btn btn-primary mb-2" href = "{{ self.flyer.url }}" target = "_blank" > < i class = "bi bi-cloud-download" > < / i > Flyer herunterladen< / a >
< p > {{ self.flyer.title}}< br >
Stand: {{ self.flyer.created_at }}< / p >
< / div >
{% endif %}
{% if self.downloads %}
< div class = "col-lg-4 col-md-6 col-12 mb-4" >
< div class = "border-bottom pb-2 mb-3" >
< h3 > Downloads< / h3 >
< / div >
{% for download in self.downloads %}
< a class = "btn btn-primary mb-2 d-block" href = "{{ download.value.file.url }}" target = "_blank" > < i class = "bi bi-cloud-download" > < / i > {{ download.value.title }}< / a >
< p > {{ download.value.file.title }}< br >
Stand: {{ download.value.file.created_at }}< / p >
{% endfor %}
< / div >
{% endif %}
{% if self.is_registration_active %}
< div class = "col-lg-4 col-md-6 col-12 mb-4" >
< div class = "border-bottom pb-2 mb-3" >
< h3 > Online Anmeldung< / h3 >
< / div >
{% if self.pretix_slug %}
< a class = "btn btn-primary" href = "{{ self.pretix_url }}" target = "_blank" > < i class = "bi bi-people" > < / i > Jetzt anmelden< / a >
{% elif self.registration_url %}
< a class = "btn btn-primary" href = "{{ self.registration_url }}" target = "_blank" > < i class = "bi bi-people" > < / i > Jetzt anmelden< / a >
{% else %}
< button class = "btn btn-primary" data-bs-toggle = "modal" data-bs-target = "#registration-modal" > < i class = "bi bi-people" > < / i > Jetzt anmelden< / button >
{% endfor %}
{% endif %}
< / div >
{% endi f %}
{% endfor %}
< / div >
< / div >
< / div >
{% if self.is_registration_active and not self.pretix_slug %}
< div class = "modal fade" id = "registration-modal" tabindex = "-1" aria-labelledby = "registrationModalLabel" aria-hidden = "true" >
< div class = "modal-dialog modal-lg" >
< div class = "modal-content" >
< div class = "modal-header" >
< h5 class = "modal-title" id = "registrationModalLabel" > Online-Anmeldung {{ self.title }}< / h5 >
< button type = "button" class = "btn-close" data-bs-dismiss = "modal" aria-label = "Close" > < / button >
< / div >
{% if self.external_registration_code %}
< div class = "modal-body" style = "max-height: 80vh; overflow-y: auto;" >
{{ self.external_registration_code|safe }}
< / div >
{% endif %}
<!-- Event CTA Section -->
{% if self.is_registration_active %}
< div class = "event-cta mt-5 mb-5 p-4 p-md-5 text-center text-md-start" >
< div class = "row align-items-center" >
< div class = "col-md-8 mb-4 mb-md-0" >
< h2 class = "text-white mb-3" > Jetzt für "{{ self.title }}" anmelden!< / h2 >
< p class = "text-white-75 mb-0" > Sichern Sie sich Ihren Platz bei dieser Veranstaltung und profitieren Sie von spannenden Vorträgen und wertvollen Networking-Möglichkeiten.< / p >
< / div >
< div class = "col-md-4 text-center text-md-end" >
{% if self.is_registration_active %}
{% if self.pretix_slug %}
< a class = "btn btn-light btn-lg" href = "{{ self.pretix_url }}" target = "_blank" >
< i class = "bi bi-people me-2" > < / i > Jetzt anmelden
< / a >
{% elif self.registration_url %}
< a class = "btn btn-light btn-lg" href = "{{ self.registration_url }}" target = "_blank" >
< i class = "bi bi-people me-2" > < / i > Jetzt anmelden
< / a >
{% else %}
< form action = "{% pageurl self %}" method = "POST" >
< div class = "modal-body" >
{% csrf_token %}
{% crispy form self.get_form_helper %}
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-secondary" data-bs-dismiss = "modal" > Abbrechen< / button >
< button type = "submit" class = "btn btn-primary" > {{ self.is_free|yesno:"Verbindlich,Kostenpflichtig" }} anmelden< / button >
< / div >
< / form >
{% endif %}
< / div >
{% endif %}
< / div >
< / div >
< / div >
{% endif %}
{% endblock content %}
{% block r eady _js %}
{% block extra_js %}
{{ block.super }}
{% if form.errors %}
var myModal = new bootstrap.Modal(document.getElementById('registration-modal'));
myModal.show();
{% endif %}
{% endblock %}