var/cache/dev/twig/11/113cde1d311e25ec74c24309d48ededd.php line 53

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* user/register.html.twig */
  16. class __TwigTemplate_4ab4d156754432c6bc9979e79dd331dc extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'body' => [$this'block_body'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32.     {
  33.         // line 1
  34.         return "base.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = []): iterable
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""user/register.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""user/register.html.twig"));
  43.         $this->parent $this->loadTemplate("base.html.twig""user/register.html.twig"1);
  44.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 3
  51.     /**
  52.      * @return iterable<null|scalar|\Stringable>
  53.      */
  54.     public function block_body(array $context, array $blocks = []): iterable
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  61.         // line 4
  62.         yield "    ";
  63.         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"falsefalsefalse4)) {
  64.             // line 5
  65.             yield "        <section class=\"container mt-5\">
  66.             <div class=\"row justify-content-center\">
  67.                 <div class=\"col-md-6\">
  68.                     <h1 class=\"text-center mb-4\">Registrieren</h1>
  69.                     
  70.                     <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>
  71.                     <section class=\"registration-form card p-4 shadow\">
  72.                         <!-- Registration Form -->
  73.                         ";
  74.             // line 14
  75.             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');
  76.             yield "
  77.                             <div class=\"mb-3\">
  78.                                 ";
  79.             // line 16
  80.             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"falsefalsefalse16), 'label', ["label" => "E-Mail-Adresse"]);
  81.             yield "
  82.                                 ";
  83.             // line 17
  84.             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"falsefalsefalse17), 'widget', ["attr" => ["class" => "form-control"]]);
  85.             yield "
  86.                                 ";
  87.             // line 18
  88.             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"falsefalsefalse18), 'errors');
  89.             yield "
  90.                             </div>
  91.                             <div class=\"mb-3\">
  92.                                 ";
  93.             // line 22
  94.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse22), "first", [], "any"falsefalsefalse22), 'label', ["label" => "Passwort"]);
  95.             yield "
  96.                                 ";
  97.             // line 23
  98.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse23), "first", [], "any"falsefalsefalse23), 'widget', ["attr" => ["class" => "form-control"]]);
  99.             yield "
  100.                                 ";
  101.             // line 24
  102.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse24), "first", [], "any"falsefalsefalse24), 'errors');
  103.             yield "
  104.                             </div>
  105.                             <div class=\"mb-3\">
  106.                                 ";
  107.             // line 28
  108.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse28), "second", [], "any"falsefalsefalse28), 'label', ["label" => "Passwort wiederholen"]);
  109.             yield "
  110.                                 ";
  111.             // line 29
  112.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse29), "second", [], "any"falsefalsefalse29), 'widget', ["attr" => ["class" => "form-control"]]);
  113.             yield "
  114.                                 ";
  115.             // line 30
  116.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse30), "second", [], "any"falsefalsefalse30), 'errors');
  117.             yield "
  118.                             </div>
  119.                             <div class=\"mb-3 form-check\">
  120.                                 ";
  121.             // line 34
  122.             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"falsefalsefalse34), 'widget', ["attr" => ["class" => "form-check-input"]]);
  123.             yield "
  124.                                 ";
  125.             // line 35
  126.             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"falsefalsefalse35), 'label', ["attr" => ["class" => "form-check-label"], "label" => "Ich stimme den Nutzungsbedingungen zu"]);
  127.             yield "
  128.                                 ";
  129.             // line 36
  130.             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"falsefalsefalse36), 'errors');
  131.             yield "
  132.                             </div>
  133.                             
  134.                             <!-- Social Login Buttons -->
  135.                             <div class=\"d-flex justify-content-center mb-3\">
  136.                                 <a href=\"";
  137.             // line 41
  138.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("connect_google_start");
  139.             yield "\" class=\"btn btn-danger mx-2\"><i class=\"fab fa-google\"></i> Mit Google registrieren</a>
  140.                                 <a href=\"#\" class=\"btn btn-info mx-2\"><i class=\"fab fa-twitter\"></i> Mit Twitter registrieren</a>
  141.                             </div>
  142.                             <p class=\"text-center\">Hast du bereits ein Konto? <a href=\"";
  143.             // line 44
  144.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  145.             yield "\">Hier anmelden</a>.</p>
  146.                             <div class=\"d-grid\">
  147.                                 <button type=\"submit\" class=\"btn btn-primary btn-block\">Registrieren</button>
  148.                             </div>
  149.                         ";
  150.             // line 48
  151.             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');
  152.             yield "
  153.                     </section>
  154.                 </div>
  155.             </div>
  156.         </section>
  157.     ";
  158.         } else {
  159.             // line 54
  160.             yield "        ";
  161.             // line 55
  162.             yield "        <div class=\"container mt-5\">
  163.             <div class=\"alert alert-warning text-center\">
  164.                 Du bist bereits eingeloggt und kannst dich nicht erneut registrieren.
  165.             </div>
  166.         </div>
  167.     ";
  168.         }
  169.         
  170.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  171.         
  172.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  173.         yield from [];
  174.     }
  175.     /**
  176.      * @codeCoverageIgnore
  177.      */
  178.     public function getTemplateName(): string
  179.     {
  180.         return "user/register.html.twig";
  181.     }
  182.     /**
  183.      * @codeCoverageIgnore
  184.      */
  185.     public function isTraitable(): bool
  186.     {
  187.         return false;
  188.     }
  189.     /**
  190.      * @codeCoverageIgnore
  191.      */
  192.     public function getDebugInfo(): array
  193.     {
  194.         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,);
  195.     }
  196.     public function getSourceContext(): Source
  197.     {
  198.         return new Source("{% extends 'base.html.twig' %}
  199. {% block body %}
  200.     {% if not app.user %}
  201.         <section class=\"container mt-5\">
  202.             <div class=\"row justify-content-center\">
  203.                 <div class=\"col-md-6\">
  204.                     <h1 class=\"text-center mb-4\">Registrieren</h1>
  205.                     
  206.                     <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>
  207.                     <section class=\"registration-form card p-4 shadow\">
  208.                         <!-- Registration Form -->
  209.                         {{ form_start(registrationForm) }}
  210.                             <div class=\"mb-3\">
  211.                                 {{ form_label(registrationForm.email, 'E-Mail-Adresse') }}
  212.                                 {{ form_widget(registrationForm.email, { 'attr': {'class': 'form-control'} }) }}
  213.                                 {{ form_errors(registrationForm.email) }}
  214.                             </div>
  215.                             <div class=\"mb-3\">
  216.                                 {{ form_label(registrationForm.plainPassword.first, 'Passwort') }}
  217.                                 {{ form_widget(registrationForm.plainPassword.first, { 'attr': {'class': 'form-control'} }) }}
  218.                                 {{ form_errors(registrationForm.plainPassword.first) }}
  219.                             </div>
  220.                             <div class=\"mb-3\">
  221.                                 {{ form_label(registrationForm.plainPassword.second, 'Passwort wiederholen') }}
  222.                                 {{ form_widget(registrationForm.plainPassword.second, { 'attr': {'class': 'form-control'} }) }}
  223.                                 {{ form_errors(registrationForm.plainPassword.second) }}
  224.                             </div>
  225.                             <div class=\"mb-3 form-check\">
  226.                                 {{ form_widget(registrationForm.agreeTerms, { 'attr': {'class': 'form-check-input'} }) }}
  227.                                 {{ form_label(registrationForm.agreeTerms, 'Ich stimme den Nutzungsbedingungen zu', { 'attr': {'class': 'form-check-label'} }) }}
  228.                                 {{ form_errors(registrationForm.agreeTerms) }}
  229.                             </div>
  230.                             
  231.                             <!-- Social Login Buttons -->
  232.                             <div class=\"d-flex justify-content-center mb-3\">
  233.                                 <a href=\"{{ path('connect_google_start') }}\" class=\"btn btn-danger mx-2\"><i class=\"fab fa-google\"></i> Mit Google registrieren</a>
  234.                                 <a href=\"#\" class=\"btn btn-info mx-2\"><i class=\"fab fa-twitter\"></i> Mit Twitter registrieren</a>
  235.                             </div>
  236.                             <p class=\"text-center\">Hast du bereits ein Konto? <a href=\"{{ path('app_login') }}\">Hier anmelden</a>.</p>
  237.                             <div class=\"d-grid\">
  238.                                 <button type=\"submit\" class=\"btn btn-primary btn-block\">Registrieren</button>
  239.                             </div>
  240.                         {{ form_end(registrationForm) }}
  241.                     </section>
  242.                 </div>
  243.             </div>
  244.         </section>
  245.     {% else %}
  246.         {# Optional: Benutzer umleiten oder eine Nachricht anzeigen #}
  247.         <div class=\"container mt-5\">
  248.             <div class=\"alert alert-warning text-center\">
  249.                 Du bist bereits eingeloggt und kannst dich nicht erneut registrieren.
  250.             </div>
  251.         </div>
  252.     {% endif %}
  253. {% endblock %}
  254. ""user/register.html.twig""/var/www/html/templates/user/register.html.twig");
  255.     }
  256. }