var/cache/dev/twig/4c/4ca670a01d30d213c2a2c2f1085fe6b0007945cb98d500ae82f807409357fb89.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\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* auth/login.html.twig */
  14. class __TwigTemplate_fdb819e1e4784fdeca000268d0f355594bdaa7443b2e562160abb03617b05cde extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'authHeader' => [$this'block_authHeader'],
  24.             'authContent' => [$this'block_authContent'],
  25.             'authFooter' => [$this'block_authFooter'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "auth/auth-page.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""auth/login.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""auth/login.html.twig"));
  40.         // line 3
  41.         $macros["button"] = $this->macros["button"] = $this->loadTemplate("macros/button.macro.twig""auth/login.html.twig"3)->unwrap();
  42.         // line 1
  43.         $this->parent $this->loadTemplate("auth/auth-page.html.twig""auth/login.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 5
  51.     public function block_authHeader($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""authHeader"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""authHeader"));
  58.         // line 6
  59.         echo "  <h1 class=\"text-4xl font-bold uppercase mb-11\">
  60.     ";
  61.         // line 7
  62.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.form.login.headline"), "html"nulltrue);
  63.         echo "
  64.   </h1>
  65. ";
  66.         
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  68.         
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  70.     }
  71.     // line 11
  72.     public function block_authContent($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""authContent"));
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""authContent"));
  79.         // line 12
  80.         echo "  <h2 class=\"mb-6 text-2xl font-bold uppercase\">
  81.     ";
  82.         // line 13
  83.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.form.login.subheadline"), "html"nulltrue);
  84.         echo "
  85.   </h2>
  86.   ";
  87.         // line 16
  88.         $context['_parent'] = $context;
  89.         $context['_seq'] = twig_ensure_traversable((isset($context["flashesSuccess"]) || array_key_exists("flashesSuccess"$context) ? $context["flashesSuccess"] : (function () { throw new RuntimeError('Variable "flashesSuccess" does not exist.'16$this->source); })()));
  90.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  91.             // line 17
  92.             echo "    <div class=\"p-2 my-4 border-2 alert alert-success bg-success-300 border-success-500\">
  93.       ";
  94.             // line 18
  95.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  96.             echo "
  97.     </div>
  98.   ";
  99.         }
  100.         $_parent $context['_parent'];
  101.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  102.         $context array_intersect_key($context$_parent) + $_parent;
  103.         // line 21
  104.         echo "
  105.   ";
  106.         // line 22
  107.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["loginForm"]) || array_key_exists("loginForm"$context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.'22$this->source); })()), 'form_start', ["attr" => ["data-turbo" => "false"]]);
  108.         echo "
  109.   ";
  110.         // line 23
  111.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["loginForm"]) || array_key_exists("loginForm"$context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.'23$this->source); })()), "email", [], "any"falsefalsefalse23), 'row');
  112.         echo "
  113.   ";
  114.         // line 24
  115.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["loginForm"]) || array_key_exists("loginForm"$context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.'24$this->source); })()), "password", [], "any"falsefalsefalse24), 'row');
  116.         echo "
  117.   <p class=\"mb-6 text-center\">
  118.     ";
  119.         // line 26
  120.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.form.login.forgotPasswordMessage"), "html"nulltrue);
  121.         echo "
  122.     <a href=\"";
  123.         // line 27
  124.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("auth_forgotpassword");
  125.         echo "\">";
  126.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.form.login.forgotPasswordLink"), "html"nulltrue);
  127.         echo "</a>
  128.   </p>
  129.   ";
  130.         // line 29
  131.         $context['_parent'] = $context;
  132.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'29$this->source); })()), "flashes", [=> "error"], "method"falsefalsefalse29));
  133.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  134.             // line 30
  135.             echo "    <div class=\"p-2 my-4 border-2 alert alert-error bg-danger-300 border-danger-500\">
  136.       ";
  137.             // line 31
  138.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  139.             echo "
  140.     </div>
  141.   ";
  142.         }
  143.         $_parent $context['_parent'];
  144.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  145.         $context array_intersect_key($context$_parent) + $_parent;
  146.         // line 34
  147.         echo "
  148.   ";
  149.         // line 35
  150.         echo twig_call_macro($macros["button"], "macro_submit", [$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.form.login.submit"), "primary", ["icon_after" => "arrow-right-tail""attr" => ["class" => "w-full text-left"]]], 36$context$this->getSourceContext());
  151.         // line 41
  152.         echo "
  153.   ";
  154.         // line 43
  155.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["loginForm"]) || array_key_exists("loginForm"$context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.'43$this->source); })()), 'form_end');
  156.         echo "
  157. ";
  158.         
  159.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  160.         
  161.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  162.     }
  163.     // line 46
  164.     public function block_authFooter($context, array $blocks = [])
  165.     {
  166.         $macros $this->macros;
  167.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  168.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""authFooter"));
  169.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  170.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""authFooter"));
  171.         // line 47
  172.         echo "  <p>
  173.     ";
  174.         // line 48
  175.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.form.login.notregistered"), "html"nulltrue);
  176.         echo "
  177.   </p>
  178.   <div class=\"flex justify-center gap-10 mt-6\">
  179.     ";
  180.         // line 51
  181.         echo twig_call_macro($macros["button"], "macro_link", [$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("signup"), "neutral"$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("auth_register"), ["size" => "sm"]], 51$context$this->getSourceContext());
  182.         echo "
  183.     ";
  184.         // line 52
  185.         if (twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'52$this->source); })()), "property", [=> "page-faq"], "method"falsefalsefalse52)) {
  186.             // line 53
  187.             echo "      ";
  188.             echo twig_call_macro($macros["button"], "macro_link", [$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("faq"), "black"twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'53$this->source); })()), "property", [=> "page-faq"], "method"falsefalsefalse53), ["size" => "sm"]], 53$context$this->getSourceContext());
  189.             echo "
  190.     ";
  191.         }
  192.         // line 55
  193.         echo "  </div>
  194. ";
  195.         
  196.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  197.         
  198.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  199.     }
  200.     public function getTemplateName()
  201.     {
  202.         return "auth/login.html.twig";
  203.     }
  204.     public function isTraitable()
  205.     {
  206.         return false;
  207.     }
  208.     public function getDebugInfo()
  209.     {
  210.         return array (  219 => 55,  213 => 53,  211 => 52,  207 => 51,  201 => 48,  198 => 47,  188 => 46,  176 => 43,  172 => 41,  170 => 35,  167 => 34,  158 => 31,  155 => 30,  151 => 29,  144 => 27,  140 => 26,  135 => 24,  131 => 23,  127 => 22,  124 => 21,  115 => 18,  112 => 17,  108 => 16,  102 => 13,  99 => 12,  89 => 11,  76 => 7,  73 => 6,  63 => 5,  52 => 1,  50 => 3,  37 => 1,);
  211.     }
  212.     public function getSourceContext()
  213.     {
  214.         return new Source("{% extends 'auth/auth-page.html.twig' %}
  215. {% import 'macros/button.macro.twig' as button %}
  216. {% block authHeader %}
  217.   <h1 class=\"text-4xl font-bold uppercase mb-11\">
  218.     {{ 'auth.form.login.headline'|trans }}
  219.   </h1>
  220. {% endblock %}
  221. {% block authContent %}
  222.   <h2 class=\"mb-6 text-2xl font-bold uppercase\">
  223.     {{ 'auth.form.login.subheadline'|trans }}
  224.   </h2>
  225.   {% for message in flashesSuccess %}
  226.     <div class=\"p-2 my-4 border-2 alert alert-success bg-success-300 border-success-500\">
  227.       {{ message }}
  228.     </div>
  229.   {% endfor %}
  230.   {{ form_start(loginForm, { attr: { 'data-turbo': 'false' } }) }}
  231.   {{ form_row(loginForm.email) }}
  232.   {{ form_row(loginForm.password) }}
  233.   <p class=\"mb-6 text-center\">
  234.     {{ 'auth.form.login.forgotPasswordMessage'|trans }}
  235.     <a href=\"{{ path('auth_forgotpassword') }}\">{{ 'auth.form.login.forgotPasswordLink'|trans }}</a>
  236.   </p>
  237.   {% for message in app.flashes('error') %}
  238.     <div class=\"p-2 my-4 border-2 alert alert-error bg-danger-300 border-danger-500\">
  239.       {{ message }}
  240.     </div>
  241.   {% endfor %}
  242.   {{
  243.     button.submit(
  244.       'auth.form.login.submit'|trans,
  245.       'primary',
  246.       { icon_after: 'arrow-right-tail', attr: { class: 'w-full text-left' } }
  247.     )
  248.   }}
  249.   {{ form_end(loginForm) }}
  250. {% endblock %}
  251. {% block authFooter %}
  252.   <p>
  253.     {{ 'auth.form.login.notregistered'|trans }}
  254.   </p>
  255.   <div class=\"flex justify-center gap-10 mt-6\">
  256.     {{ button.link('signup'|trans, 'neutral', path('auth_register'), { size: 'sm' }) }}
  257.     {% if document.property('page-faq') %}
  258.       {{ button.link('faq'|trans, 'black', document.property('page-faq'), { size: 'sm' }) }}
  259.     {% endif %}
  260.   </div>
  261. {% endblock %}
  262. ""auth/login.html.twig""/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/auth/login.html.twig");
  263.     }
  264. }