<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* user/register.html.twig */
class __TwigTemplate_4ab4d156754432c6bc9979e79dd331dc extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "user/register.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "user/register.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "user/register.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 4
yield " ";
if ( !CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 4, $this->source); })()), "user", [], "any", false, false, false, 4)) {
// line 5
yield " <section class=\"container mt-5\">
<div class=\"row justify-content-center\">
<div class=\"col-md-6\">
<h1 class=\"text-center mb-4\">Registrieren</h1>
<p class=\"text-center\">Erstelle noch heute ein Konto. Fülle dazu einfach das folgende Formular aus oder melde dich mit einem deiner sozialen Netzwerke an.</p>
<section class=\"registration-form card p-4 shadow\">
<!-- Registration Form -->
";
// line 14
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 14, $this->source); })()), 'form_start');
yield "
<div class=\"mb-3\">
";
// line 16
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 16, $this->source); })()), "email", [], "any", false, false, false, 16), 'label', ["label" => "E-Mail-Adresse"]);
yield "
";
// line 17
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 17, $this->source); })()), "email", [], "any", false, false, false, 17), 'widget', ["attr" => ["class" => "form-control"]]);
yield "
";
// line 18
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 18, $this->source); })()), "email", [], "any", false, false, false, 18), 'errors');
yield "
</div>
<div class=\"mb-3\">
";
// line 22
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 22, $this->source); })()), "plainPassword", [], "any", false, false, false, 22), "first", [], "any", false, false, false, 22), 'label', ["label" => "Passwort"]);
yield "
";
// line 23
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 23, $this->source); })()), "plainPassword", [], "any", false, false, false, 23), "first", [], "any", false, false, false, 23), 'widget', ["attr" => ["class" => "form-control"]]);
yield "
";
// line 24
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 24, $this->source); })()), "plainPassword", [], "any", false, false, false, 24), "first", [], "any", false, false, false, 24), 'errors');
yield "
</div>
<div class=\"mb-3\">
";
// line 28
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 28, $this->source); })()), "plainPassword", [], "any", false, false, false, 28), "second", [], "any", false, false, false, 28), 'label', ["label" => "Passwort wiederholen"]);
yield "
";
// line 29
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 29, $this->source); })()), "plainPassword", [], "any", false, false, false, 29), "second", [], "any", false, false, false, 29), 'widget', ["attr" => ["class" => "form-control"]]);
yield "
";
// line 30
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 30, $this->source); })()), "plainPassword", [], "any", false, false, false, 30), "second", [], "any", false, false, false, 30), 'errors');
yield "
</div>
<div class=\"mb-3 form-check\">
";
// line 34
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 34, $this->source); })()), "agreeTerms", [], "any", false, false, false, 34), 'widget', ["attr" => ["class" => "form-check-input"]]);
yield "
";
// line 35
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 35, $this->source); })()), "agreeTerms", [], "any", false, false, false, 35), 'label', ["attr" => ["class" => "form-check-label"], "label" => "Ich stimme den Nutzungsbedingungen zu"]);
yield "
";
// line 36
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 36, $this->source); })()), "agreeTerms", [], "any", false, false, false, 36), 'errors');
yield "
</div>
<!-- Social Login Buttons -->
<div class=\"d-flex justify-content-center mb-3\">
<a href=\"";
// line 41
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("connect_google_start");
yield "\" class=\"btn btn-danger mx-2\"><i class=\"fab fa-google\"></i> Mit Google registrieren</a>
<a href=\"#\" class=\"btn btn-info mx-2\"><i class=\"fab fa-twitter\"></i> Mit Twitter registrieren</a>
</div>
<p class=\"text-center\">Hast du bereits ein Konto? <a href=\"";
// line 44
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
yield "\">Hier anmelden</a>.</p>
<div class=\"d-grid\">
<button type=\"submit\" class=\"btn btn-primary btn-block\">Registrieren</button>
</div>
";
// line 48
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registrationForm"]) || array_key_exists("registrationForm", $context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.', 48, $this->source); })()), 'form_end');
yield "
</section>
</div>
</div>
</section>
";
} else {
// line 54
yield " ";
// line 55
yield " <div class=\"container mt-5\">
<div class=\"alert alert-warning text-center\">
Du bist bereits eingeloggt und kannst dich nicht erneut registrieren.
</div>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "user/register.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 180 => 55, 178 => 54, 169 => 48, 162 => 44, 156 => 41, 148 => 36, 144 => 35, 140 => 34, 133 => 30, 129 => 29, 125 => 28, 118 => 24, 114 => 23, 110 => 22, 103 => 18, 99 => 17, 95 => 16, 90 => 14, 79 => 5, 76 => 4, 63 => 3, 40 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'base.html.twig' %}
{% block body %}
{% if not app.user %}
<section class=\"container mt-5\">
<div class=\"row justify-content-center\">
<div class=\"col-md-6\">
<h1 class=\"text-center mb-4\">Registrieren</h1>
<p class=\"text-center\">Erstelle noch heute ein Konto. Fülle dazu einfach das folgende Formular aus oder melde dich mit einem deiner sozialen Netzwerke an.</p>
<section class=\"registration-form card p-4 shadow\">
<!-- Registration Form -->
{{ form_start(registrationForm) }}
<div class=\"mb-3\">
{{ form_label(registrationForm.email, 'E-Mail-Adresse') }}
{{ form_widget(registrationForm.email, { 'attr': {'class': 'form-control'} }) }}
{{ form_errors(registrationForm.email) }}
</div>
<div class=\"mb-3\">
{{ form_label(registrationForm.plainPassword.first, 'Passwort') }}
{{ form_widget(registrationForm.plainPassword.first, { 'attr': {'class': 'form-control'} }) }}
{{ form_errors(registrationForm.plainPassword.first) }}
</div>
<div class=\"mb-3\">
{{ form_label(registrationForm.plainPassword.second, 'Passwort wiederholen') }}
{{ form_widget(registrationForm.plainPassword.second, { 'attr': {'class': 'form-control'} }) }}
{{ form_errors(registrationForm.plainPassword.second) }}
</div>
<div class=\"mb-3 form-check\">
{{ form_widget(registrationForm.agreeTerms, { 'attr': {'class': 'form-check-input'} }) }}
{{ form_label(registrationForm.agreeTerms, 'Ich stimme den Nutzungsbedingungen zu', { 'attr': {'class': 'form-check-label'} }) }}
{{ form_errors(registrationForm.agreeTerms) }}
</div>
<!-- Social Login Buttons -->
<div class=\"d-flex justify-content-center mb-3\">
<a href=\"{{ path('connect_google_start') }}\" class=\"btn btn-danger mx-2\"><i class=\"fab fa-google\"></i> Mit Google registrieren</a>
<a href=\"#\" class=\"btn btn-info mx-2\"><i class=\"fab fa-twitter\"></i> Mit Twitter registrieren</a>
</div>
<p class=\"text-center\">Hast du bereits ein Konto? <a href=\"{{ path('app_login') }}\">Hier anmelden</a>.</p>
<div class=\"d-grid\">
<button type=\"submit\" class=\"btn btn-primary btn-block\">Registrieren</button>
</div>
{{ form_end(registrationForm) }}
</section>
</div>
</div>
</section>
{% else %}
{# Optional: Benutzer umleiten oder eine Nachricht anzeigen #}
<div class=\"container mt-5\">
<div class=\"alert alert-warning text-center\">
Du bist bereits eingeloggt und kannst dich nicht erneut registrieren.
</div>
</div>
{% endif %}
{% endblock %}
", "user/register.html.twig", "/var/www/html/templates/user/register.html.twig");
}
}