src/StartPlatz/Bundle/EventBundle/Resources/views/Default/_section.anmeldung.html.twig line 1

Open in your IDE?
  1. <!-- Registration Section - Language: {{ lang|default('undefined') }} -->
  2. <section id="{{ isEnglish ? 'registration' : 'anmeldung' }}" class="bg-registration py-3">
  3. <div class="container">
  4.     <!-- Custom content-wrapper class to limit content width and improve readability -->
  5.     <div class="content-wrapper content-background">
  6.                 {% if event.alert == "Anfrage" %}
  7.                     <!-- start part anfrage and registering -->
  8.                     {% include "@StartPlatzEvent/Default/_registration.anfrage.html.twig"%}
  9.                     <!-- end part anfrage and registering -->
  10.                 {% else %}
  11.                     <!-- start part ticketing and registering -->
  12.                     {% if event.ticketing %}
  13.                         <h2 class="text-center">{{ phrases.registration_title }}</h2>
  14.                         <p>
  15.                             {{ event.ticketing|raw }}
  16.                         </p>
  17.                     {% elseif batch is defined and batch and batch.isExternalRegistration %}
  18.                         {# Batch with external registration — show button linking to external platform #}
  19.                         <h2 class="text-center">{{ phrases.registration_title }}</h2>
  20.                         <div class="text-center py-3">
  21.                             <a href="{{ batch.externalRegistrationUrl }}" target="_blank" rel="noopener"
  22.                                class="btn btn-primary btn-lg">
  23.                                 {{ isEnglish|default(false) ? 'Register' : 'Jetzt anmelden' }}
  24.                             </a>
  25.                         </div>
  26.                     {% elseif event.applicationUrl and 'startplatz.de' not in event.applicationUrl %}
  27.                         {# External URL always takes precedence, even with batch #}
  28.                         <h2 class="text-center">{{ phrases.registration_title }}</h2>
  29.                         {% include "@StartPlatzEvent/Default/_registration.appicationUrl.html.twig"%}
  30.                     {% elseif event.applicationUrl and not batch%}
  31.                         {# Internal startplatz.de URL only when no batch exists #}
  32.                         <h2 class="text-center">{{ phrases.registration_title }}</h2>
  33.                         {% include "@StartPlatzEvent/Default/_registration.appicationUrl.html.twig"%}
  34.                     {% elseif event.ctaContent or (settings.doNotshowApplicationSection is defined and settings.doNotshowApplicationSection) %}
  35.                         <!-- Application Section will not be shown -->
  36.                     {% elseif batch and batchIsOpen %}
  37.                         {% if batch.priceInEuroCent > 0 %}
  38.                             {% include "@StartPlatzEvent/Default/_registration.batch.html.twig"%}
  39.                         {% else  %}
  40.                             {% if settings.isPreRegistration is defined and settings.isPreRegistration %}
  41.                                 {% include "@StartPlatzEvent/Default/_registration.pre-registration-batch.html.twig"%}
  42.                             {% else %}
  43.                                 {% include "@StartPlatzEvent/Default/_registration.batch.html.twig"%}
  44.                             {% endif%}
  45.                         {% endif %}
  46.                     {% else %}
  47.                         <h2 class="text-center">{{ phrases.registration_not_possible }}</h2>
  48.                     {% endif %}
  49.                     <!-- end part ticketing and registering -->
  50.                 {% endif %}
  51.                 <!-- start cta content -->
  52.                 {% if event.ctaContent %}
  53.                     {{ include(template_from_string(event.ctaContent)) }}
  54.                 {% endif %}
  55.                 <!-- end cta content -->
  56.     </div> <!-- End of content-wrapper -->
  57. </div>
  58. </section>