var/cache/dev/twig/17/1734010dc72d49dd858bd460a22a8344.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. /* representatives/representative-login.html.twig */
  14. class __TwigTemplate_625b87f5b0064fe2693e3d462a0861a0 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", "representatives/representative-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", "representatives/representative-login.html.twig"));
  40.         $this->parent = $this->loadTemplate("layout.html.twig", "representatives/representative-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. ";
  58.         // line 5
  59.         $this->loadTemplate("includes/breadcrumb.html.twig", "representatives/representative-login.html.twig", 5)->display($context);
  60.         // line 6
  61.         echo "
  62. <section class=\"section-intro\">
  63.     <div class=\"container-fluid\">
  64.         <div class=\"row align-items-center\">
  65.             <div class=\"col-auto\">
  66.                 <p class=\"h1\">Vertegenwoordiger login</p>
  67.             </div>
  68.         </div><!--/ .row -->
  69.     </div><!--/ .container -->
  70. </section>
  71. <section class=\"section-content\">
  72.     <div class=\"container-fluid\">
  73.         <div class=\"row justify-content-center\">
  74.             <div class=\"col-lg-8 col-xl-6 mb-5\">
  75.                 <div class=\"card\">
  76.                     <div class=\"card-body\">
  77.                         ";
  78.         // line 23
  79.         $context['_parent'] = $context;
  80.         $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.', 23, $this->source); })()), "flashes", [], "any", false, false, true, 23));
  81.         foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
  82.             // line 24
  83.             echo "                            ";
  84.             $context['_parent'] = $context;
  85.             $context['_seq'] = twig_ensure_traversable($context["messages"]);
  86.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  87.                 // line 25
  88.                 echo "                                <div class=\"alert alert-";
  89.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["label"], 25, $this->source), "html", null, true);
  90.                 echo "\">
  91.                                     ";
  92.                 // line 26
  93.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["message"], 26, $this->source), "html", null, true);
  94.                 echo "
  95.                                 </div>
  96.                             ";
  97.             }
  98.             $_parent = $context['_parent'];
  99.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  100.             $context = array_intersect_key($context, $_parent) + $_parent;
  101.             // line 29
  102.             echo "                        ";
  103.         }
  104.         $_parent = $context['_parent'];
  105.         unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
  106.         $context = array_intersect_key($context, $_parent) + $_parent;
  107.         // line 30
  108.         echo "
  109.                         ";
  110.         // line 31
  111.         if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 31, $this->source); })())) {
  112.             // line 32
  113.             echo "                            <div class=\"alert alert-danger\">
  114.                                 ";
  115.             // line 33
  116.             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.', 33, $this->source); })()), "messageKey", [], "any", false, false, true, 33), 33, $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.', 33, $this->source); })()), "messageData", [], "any", false, false, true, 33), 33, $this->source), "security"), "html", null, true);
  117.             echo "
  118.                             </div>
  119.                         ";
  120.         }
  121.         // line 36
  122.         echo "
  123.                         ";
  124.         // line 37
  125.         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.', 37, $this->source); })()), 37, $this->source), 'form_start');
  126.         echo "
  127.                             ";
  128.         // line 38
  129.         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.', 38, $this->source); })()), "_username", [], "any", false, false, true, 38), 38, $this->source), 'widget', ["attr" => ["placeholder" => "Login", "class" => "form-control mb-4"]]);
  130.         echo "
  131.                             ";
  132.         // line 40
  133.         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.', 40, $this->source); })()), "_password", [], "any", false, false, true, 40), 40, $this->source), 'widget', ["attr" => ["placeholder" => "Wachtwoord", "class" => "form-control mb-4"]]);
  134.         echo "
  135.                             <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  136.         // line 42
  137.         echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
  138.         echo "\">
  139.                             ";
  140.         // line 44
  141.         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.', 44, $this->source); })()), "_submit", [], "any", false, false, true, 44), 44, $this->source), 'row', ["attr" => ["class" => "btn btn-primary"]]);
  142.         echo "
  143.                         ";
  144.         // line 45
  145.         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.', 45, $this->source); })()), 45, $this->source), 'form_end');
  146.         echo "
  147.                     </div>
  148.                 </div>
  149.             </div>
  150.         </div><!--/ .row -->
  151.     </div><!--/ .container-fluid -->
  152. </section>
  153. ";
  154.         
  155.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  156.         
  157.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  158.     }
  159.     public function getTemplateName()
  160.     {
  161.         return "representatives/representative-login.html.twig";
  162.     }
  163.     public function isTraitable()
  164.     {
  165.         return false;
  166.     }
  167.     public function getDebugInfo()
  168.     {
  169.         return array (  163 => 45,  159 => 44,  154 => 42,  149 => 40,  144 => 38,  140 => 37,  137 => 36,  131 => 33,  128 => 32,  126 => 31,  123 => 30,  117 => 29,  108 => 26,  103 => 25,  98 => 24,  94 => 23,  75 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  170.     }
  171.     public function getSourceContext()
  172.     {
  173.         return new Source("{% extends 'layout.html.twig' %}
  174. {% block content %}
  175. {% include 'includes/breadcrumb.html.twig' %}
  176. <section class=\"section-intro\">
  177.     <div class=\"container-fluid\">
  178.         <div class=\"row align-items-center\">
  179.             <div class=\"col-auto\">
  180.                 <p class=\"h1\">Vertegenwoordiger login</p>
  181.             </div>
  182.         </div><!--/ .row -->
  183.     </div><!--/ .container -->
  184. </section>
  185. <section class=\"section-content\">
  186.     <div class=\"container-fluid\">
  187.         <div class=\"row justify-content-center\">
  188.             <div class=\"col-lg-8 col-xl-6 mb-5\">
  189.                 <div class=\"card\">
  190.                     <div class=\"card-body\">
  191.                         {% for label, messages in app.flashes %}
  192.                             {% for message in messages %}
  193.                                 <div class=\"alert alert-{{ label }}\">
  194.                                     {{ message }}
  195.                                 </div>
  196.                             {% endfor %}
  197.                         {% endfor %}
  198.                         {% if error %}
  199.                             <div class=\"alert alert-danger\">
  200.                                 {{ error.messageKey|trans(error.messageData, 'security') }}
  201.                             </div>
  202.                         {% endif %}
  203.                         {{ form_start(form) }}
  204.                             {{ form_widget(form._username, { 'attr': {'placeholder': 'Login', 'class': 'form-control mb-4'}}) }}
  205.                             {{ form_widget(form._password, { 'attr': {'placeholder': 'Wachtwoord', 'class': 'form-control mb-4'}}) }}
  206.                             <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  207.                             {{ form_row(form._submit, {'attr': {'class': 'btn btn-primary'}}) }}
  208.                         {{ form_end(form) }}
  209.                     </div>
  210.                 </div>
  211.             </div>
  212.         </div><!--/ .row -->
  213.     </div><!--/ .container-fluid -->
  214. </section>
  215. {% endblock %}", "representatives/representative-login.html.twig", "/data/sites/web/devliegerfilipbe/subsites/dev.devliegerfilip.dspdev.be/templates/representatives/representative-login.html.twig");
  216.     }
  217.     
  218.     public function checkSecurity()
  219.     {
  220.         static $tags = array("include" => 5, "for" => 23, "if" => 31);
  221.         static $filters = array("escape" => 25, "trans" => 33);
  222.         static $functions = array("form_start" => 37, "form_widget" => 38, "csrf_token" => 42, "form_row" => 44, "form_end" => 45);
  223.         try {
  224.             $this->sandbox->checkSecurity(
  225.                 ['include', 'for', 'if'],
  226.                 ['escape', 'trans'],
  227.                 ['form_start', 'form_widget', 'csrf_token', 'form_row', 'form_end']
  228.             );
  229.         } catch (SecurityError $e) {
  230.             $e->setSourceContext($this->source);
  231.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  232.                 $e->setTemplateLine($tags[$e->getTagName()]);
  233.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  234.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  235.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  236.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  237.             }
  238.             throw $e;
  239.         }
  240.     }
  241. }