<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* representatives/representative-login.html.twig */
class __TwigTemplate_625b87f5b0064fe2693e3d462a0861a0 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "representatives/representative-login.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "representatives/representative-login.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "representatives/representative-login.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_content($context, array $blocks = [])
{
$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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
echo "
";
// line 5
$this->loadTemplate("includes/breadcrumb.html.twig", "representatives/representative-login.html.twig", 5)->display($context);
// line 6
echo "
<section class=\"section-intro\">
<div class=\"container-fluid\">
<div class=\"row align-items-center\">
<div class=\"col-auto\">
<p class=\"h1\">Vertegenwoordiger login</p>
</div>
</div><!--/ .row -->
</div><!--/ .container -->
</section>
<section class=\"section-content\">
<div class=\"container-fluid\">
<div class=\"row justify-content-center\">
<div class=\"col-lg-8 col-xl-6 mb-5\">
<div class=\"card\">
<div class=\"card-body\">
";
// line 23
$context['_parent'] = $context;
$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));
foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
// line 24
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 25
echo " <div class=\"alert alert-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["label"], 25, $this->source), "html", null, true);
echo "\">
";
// line 26
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["message"], 26, $this->source), "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 30
echo "
";
// line 31
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 31, $this->source); })())) {
// line 32
echo " <div class=\"alert alert-danger\">
";
// line 33
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);
echo "
</div>
";
}
// line 36
echo "
";
// line 37
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');
echo "
";
// line 38
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"]]);
echo "
";
// line 40
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"]]);
echo "
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 42
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\">
";
// line 44
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"]]);
echo "
";
// line 45
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');
echo "
</div>
</div>
</div>
</div><!--/ .row -->
</div><!--/ .container-fluid -->
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "representatives/representative-login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.html.twig' %}
{% block content %}
{% include 'includes/breadcrumb.html.twig' %}
<section class=\"section-intro\">
<div class=\"container-fluid\">
<div class=\"row align-items-center\">
<div class=\"col-auto\">
<p class=\"h1\">Vertegenwoordiger login</p>
</div>
</div><!--/ .row -->
</div><!--/ .container -->
</section>
<section class=\"section-content\">
<div class=\"container-fluid\">
<div class=\"row justify-content-center\">
<div class=\"col-lg-8 col-xl-6 mb-5\">
<div class=\"card\">
<div class=\"card-body\">
{% for label, messages in app.flashes %}
{% for message in messages %}
<div class=\"alert alert-{{ label }}\">
{{ message }}
</div>
{% endfor %}
{% endfor %}
{% if error %}
<div class=\"alert alert-danger\">
{{ error.messageKey|trans(error.messageData, 'security') }}
</div>
{% endif %}
{{ form_start(form) }}
{{ form_widget(form._username, { 'attr': {'placeholder': 'Login', 'class': 'form-control mb-4'}}) }}
{{ form_widget(form._password, { 'attr': {'placeholder': 'Wachtwoord', 'class': 'form-control mb-4'}}) }}
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
{{ form_row(form._submit, {'attr': {'class': 'btn btn-primary'}}) }}
{{ form_end(form) }}
</div>
</div>
</div>
</div><!--/ .row -->
</div><!--/ .container-fluid -->
</section>
{% endblock %}", "representatives/representative-login.html.twig", "/data/sites/web/devliegerfilipbe/subsites/dev.devliegerfilip.dspdev.be/templates/representatives/representative-login.html.twig");
}
public function checkSecurity()
{
static $tags = array("include" => 5, "for" => 23, "if" => 31);
static $filters = array("escape" => 25, "trans" => 33);
static $functions = array("form_start" => 37, "form_widget" => 38, "csrf_token" => 42, "form_row" => 44, "form_end" => 45);
try {
$this->sandbox->checkSecurity(
['include', 'for', 'if'],
['escape', 'trans'],
['form_start', 'form_widget', 'csrf_token', 'form_row', 'form_end']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}