var/cache/dev/twig/85/854185a8833e95c1dca5b735c8b81673.php line 40

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. /* login.html.twig */
  14. class __TwigTemplate_af12aaf770d2b988bad100650798b331 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.             'content' => [$this, 'block_content'],
  24.         ];
  25.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros = $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "login.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "login.html.twig"));
  40.         $this->parent = $this->loadTemplate("layout.html.twig", "login.html.twig", 1);
  41.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros = $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  55.         // line 4
  56.         echo "
  57. <section class=\"section-intro\">
  58.     <div class=\"container-fluid\">
  59.         <div class=\"row align-items-center\">
  60.             <div class=\"col-auto\">
  61.                 <p class=\"h1\">Log in</p>
  62.             </div>
  63.         </div><!--/ .row -->
  64.     </div><!--/ .container -->
  65. </section>
  66. <section class=\"section-content\">
  67.     <div class=\"container-fluid\">
  68.         <div class=\"row justify-content-center\">
  69.             <div class=\"col-md-10 col-lg-8 col-xl-6\">
  70.                 <div class=\"card\">
  71.                     <div class=\"card-body\">
  72.                         <div class=\"row align-items-center mb-5\">
  73.                             <div class=\"col-sm-auto\">
  74.                                 <h3 class=\"mb-0\">";
  75.         // line 23
  76.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Inloggen bij Devlieger"), "html", null, true);
  77.         echo "</h3>
  78.                             </div>
  79.                             <div class=\"col-sm-auto ms-auto\">
  80.                                 ";
  81.         // line 27
  82.         $context["doc_account"] = 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.', 27, $this->source); })()), "getProperty", ["request_account_document"], "method", false, false, true, 27);
  83.         // line 28
  84.         echo "
  85.                                 <a href=\"";
  86.         // line 29
  87.         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["doc_account"]) || array_key_exists("doc_account", $context) ? $context["doc_account"] : (function () { throw new RuntimeError('Variable "doc_account" does not exist.', 29, $this->source); })()), "getHref", [], "method", false, false, true, 29), 29, $this->source), "html", null, true);
  88.         echo "\" class=\"btn btn-link px-0\">";
  89.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Geen account? Login aanvragen"), "html", null, true);
  90.         echo "</a>
  91.                             </div>
  92.                         </div><!--/ .row -->
  93.                         ";
  94.         // line 33
  95.         $context['_parent'] = $context;
  96.         $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.', 33, $this->source); })()), "flashes", [], "any", false, false, true, 33));
  97.         foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
  98.             // line 34
  99.             echo "                            ";
  100.             $context['_parent'] = $context;
  101.             $context['_seq'] = twig_ensure_traversable($context["messages"]);
  102.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  103.                 // line 35
  104.                 echo "                                <div class=\"alert alert-";
  105.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["label"], 35, $this->source), "html", null, true);
  106.                 echo "\">
  107.                                     ";
  108.                 // line 36
  109.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["message"], 36, $this->source), "html", null, true);
  110.                 echo "
  111.                                 </div>
  112.                             ";
  113.             }
  114.             $_parent = $context['_parent'];
  115.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  116.             $context = array_intersect_key($context, $_parent) + $_parent;
  117.             // line 39
  118.             echo "                        ";
  119.         }
  120.         $_parent = $context['_parent'];
  121.         unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
  122.         $context = array_intersect_key($context, $_parent) + $_parent;
  123.         // line 40
  124.         echo "
  125.                         ";
  126.         // line 41
  127.         if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 41, $this->source); })())) {
  128.             // line 42
  129.             echo "                            <div class=\"alert alert-danger\">
  130.                                 ";
  131.             // line 43
  132.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 43, $this->source); })()), "messageKey", [], "any", false, false, true, 43), 43, $this->source), $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 43, $this->source); })()), "messageData", [], "any", false, false, true, 43), 43, $this->source), "security"), "html", null, true);
  133.             echo "
  134.                             </div>
  135.                         ";
  136.         }
  137.         // line 46
  138.         echo "
  139.                         ";
  140.         // line 47
  141.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 47, $this->source); })()), 47, $this->source), 'form_start');
  142.         echo "
  143.                             ";
  144.         // line 48
  145.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 48, $this->source); })()), "_username", [], "any", false, false, true, 48), 48, $this->source), 'widget', ["attr" => ["placeholder" => "Login", "class" => "form-control mb-4"]]);
  146.         echo "
  147.                             ";
  148.         // line 50
  149.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 50, $this->source); })()), "_password", [], "any", false, false, true, 50), 50, $this->source), 'widget', ["attr" => ["placeholder" => "Wachtwoord", "class" => "form-control mb-4"]]);
  150.         echo "
  151.                             <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  152.         // line 52
  153.         echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
  154.         echo "\">
  155. ";
  156.         // line 58
  157.         echo "
  158.                             ";
  159.         // line 59
  160.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 59, $this->source); })()), "_submit", [], "any", false, false, true, 59), 59, $this->source), 'row', ["attr" => ["class" => "btn btn-primary"]]);
  161.         echo "
  162.                         ";
  163.         // line 60
  164.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 60, $this->source); })()), 60, $this->source), 'form_end');
  165.         echo "
  166.                         <div class=\"text-end\">
  167.                             <a class=\"btn btn-link\" href=\"";
  168.         // line 64
  169.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account_password_reset");
  170.         echo "\">Wachtwoord vergeten?</a>
  171.                         </div>
  172.                     </div>
  173.                 </div>
  174.             </div>
  175.         </div><!--/ .row -->
  176.     </div><!--/ .container-fluid -->
  177. </section>
  178. ";
  179.         
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  181.         
  182.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  183.     }
  184.     public function getTemplateName()
  185.     {
  186.         return "login.html.twig";
  187.     }
  188.     public function isTraitable()
  189.     {
  190.         return false;
  191.     }
  192.     public function getDebugInfo()
  193.     {
  194.         return array (  191 => 64,  184 => 60,  180 => 59,  177 => 58,  172 => 52,  167 => 50,  162 => 48,  158 => 47,  155 => 46,  149 => 43,  146 => 42,  144 => 41,  141 => 40,  135 => 39,  126 => 36,  121 => 35,  116 => 34,  112 => 33,  103 => 29,  100 => 28,  98 => 27,  91 => 23,  70 => 4,  60 => 3,  37 => 1,);
  195.     }
  196.     public function getSourceContext()
  197.     {
  198.         return new Source("{% extends 'layout.html.twig' %}
  199. {% block content %}
  200. <section class=\"section-intro\">
  201.     <div class=\"container-fluid\">
  202.         <div class=\"row align-items-center\">
  203.             <div class=\"col-auto\">
  204.                 <p class=\"h1\">Log in</p>
  205.             </div>
  206.         </div><!--/ .row -->
  207.     </div><!--/ .container -->
  208. </section>
  209. <section class=\"section-content\">
  210.     <div class=\"container-fluid\">
  211.         <div class=\"row justify-content-center\">
  212.             <div class=\"col-md-10 col-lg-8 col-xl-6\">
  213.                 <div class=\"card\">
  214.                     <div class=\"card-body\">
  215.                         <div class=\"row align-items-center mb-5\">
  216.                             <div class=\"col-sm-auto\">
  217.                                 <h3 class=\"mb-0\">{{ 'Inloggen bij Devlieger'|trans }}</h3>
  218.                             </div>
  219.                             <div class=\"col-sm-auto ms-auto\">
  220.                                 {% set doc_account = document.getProperty('request_account_document') %}
  221.                                 <a href=\"{{ doc_account.getHref() }}\" class=\"btn btn-link px-0\">{{ 'Geen account? Login aanvragen'|trans }}</a>
  222.                             </div>
  223.                         </div><!--/ .row -->
  224.                         {% for label, messages in app.flashes %}
  225.                             {% for message in messages %}
  226.                                 <div class=\"alert alert-{{ label }}\">
  227.                                     {{ message }}
  228.                                 </div>
  229.                             {% endfor %}
  230.                         {% endfor %}
  231.                         {% if error %}
  232.                             <div class=\"alert alert-danger\">
  233.                                 {{ error.messageKey|trans(error.messageData, 'security') }}
  234.                             </div>
  235.                         {% endif %}
  236.                         {{ form_start(form) }}
  237.                             {{ form_widget(form._username, { 'attr': {'placeholder': 'Login', 'class': 'form-control mb-4'}}) }}
  238.                             {{ form_widget(form._password, { 'attr': {'placeholder': 'Wachtwoord', 'class': 'form-control mb-4'}}) }}
  239.                             <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  240. {#                            <div class=\"custom-control custom-checkbox mb-3\">#}
  241. {#                                <input name=\"_remember_me\" type=\"checkbox\" class=\"custom-control-input\" id=\"rememberMe\">#}
  242. {#                                <label class=\"custom-control-label\" for=\"rememberMe\">Onthoud mij</label>#}
  243. {#                            </div>#}
  244.                             {{ form_row(form._submit, {'attr': {'class': 'btn btn-primary'}}) }}
  245.                         {{ form_end(form) }}
  246.                         <div class=\"text-end\">
  247.                             <a class=\"btn btn-link\" href=\"{{ path('account_password_reset') }}\">Wachtwoord vergeten?</a>
  248.                         </div>
  249.                     </div>
  250.                 </div>
  251.             </div>
  252.         </div><!--/ .row -->
  253.     </div><!--/ .container-fluid -->
  254. </section>
  255. {% endblock %}", "login.html.twig", "/data/sites/web/devliegerfilipbe/subsites/dev.devliegerfilip.dspdev.be/templates/login.html.twig");
  256.     }
  257.     
  258.     public function checkSecurity()
  259.     {
  260.         static $tags = array("set" => 27, "for" => 33, "if" => 41);
  261.         static $filters = array("escape" => 23, "trans" => 23);
  262.         static $functions = array("form_start" => 47, "form_widget" => 48, "csrf_token" => 52, "form_row" => 59, "form_end" => 60, "path" => 64);
  263.         try {
  264.             $this->sandbox->checkSecurity(
  265.                 ['set', 'for', 'if'],
  266.                 ['escape', 'trans'],
  267.                 ['form_start', 'form_widget', 'csrf_token', 'form_row', 'form_end', 'path']
  268.             );
  269.         } catch (SecurityError $e) {
  270.             $e->setSourceContext($this->source);
  271.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  272.                 $e->setTemplateLine($tags[$e->getTagName()]);
  273.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  274.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  275.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  276.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  277.             }
  278.             throw $e;
  279.         }
  280.     }
  281. }