{% extends 'layout/login.html.twig' %}{% form_theme requestForm '@EasyAdmin/symfony-form-themes/bootstrap_5_layout.html.twig' %}{% block page_title %}{{ btrans('login.registration.index.pageTitle', 'Ihre Registrierung bei {title}', {title: site.title}) }}{% endblock %}{# Kompilierte Assets fuer den Bot-Schutz (ALTCHA-Widget + Styling) nur auf dieser Seite laden #}{% block head_stylesheets %}{{ parent() }}{{ encore_entry_link_tags('registration', null, 'theme_brunex') }}{% endblock %}{% block head_javascript %}{{ parent() }}{{ encore_entry_script_tags('registration', null, 'theme_brunex') }}{% endblock %}{% block login_form %}{% for flashError in app.flashes('reset_password_error') %}<div class="alert alert-danger" role="alert">{{ flashError }}</div>{% endfor %}{% for flashError in app.flashes('registration_error') %}<div class="alert alert-danger" role="alert">{{ flashError }}</div>{% endfor %}{% if error|default(false) %}<div class="w-100 alert alert-danger rounded mb-3"><i class="fas fa-times-circle mr-1"></i>{{ error.messageKey|trans(error.messageData, 'security') }}</div>{% endif %}{{ form_start(requestForm) }}{{ form_row(requestForm.email) }}{# Honeypot: muss leer bleiben - nur Bots fuellen dieses versteckte Feld aus. #}<div aria-hidden="true" style="position:absolute;left:-9999px;top:-9999px;width:0;height:0;overflow:hidden;" tabindex="-1"><label for="homepage">Homepage</label><input type="text" id="homepage" name="homepage" value="" tabindex="-1" autocomplete="off"></div>{% if altcha.isEnabled() %}{# ALTCHA - selbst gehosteter Proof-of-Work-Captcha. Custom Element,Styling und Uebersetzungen kommen aus dem kompilierten registration-Bundle; die Sprache wird per language-Attribut an die Seiten-Localegekoppelt. Das Widget legt automatisch das Feld "altcha" an. #}<altcha-widgetclass="registration-altcha"challenge="{{ path('altcha_challenge') }}"language="{{ app.request.locale == 'fr' ? 'fr-fr' : 'de' }}"theme="light"></altcha-widget>{% endif %}<button type="submit" class="btn btn-primary btn-lg btn-block" onclick="this.form.submit(); this.disabled=true;">{{ btrans('login.registration.index.submit', 'Absenden') }}</button>{{ form_end(requestForm) }}<script type="text/javascript">const loginForm = document.querySelector('form');loginForm.addEventListener('submit', () => {loginForm.querySelector('button[type="submit"]').setAttribute('disabled', 'disabled');}, false);</script>{% endblock %}{% block login_box %}<h5>{{ btrans('login.registration.index.box.title', 'Ihre Registrierung') }}</h5><p>{{ btrans('login.registration.index.box.content', 'Bitte geben Sie Ihre E-Mail-Adresse ein!Sie erhalten von uns einen Link, über den Sie sich registrieren können.') | nl2br }}</p>{% endblock %}{% block login_footer %}<div class="mb-1"><a href="{{ path('app_login') }}">{{ btrans('login.link.backToLogin', 'Zurück zum Login') }}</a></div>{% endblock %}