<?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;
/* login.html.twig */
class __TwigTemplate_af12aaf770d2b988bad100650798b331 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", "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", "login.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "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 "
<section class=\"section-intro\">
<div class=\"container-fluid\">
<div class=\"row align-items-center\">
<div class=\"col-auto\">
<p class=\"h1\">Log in</p>
</div>
</div><!--/ .row -->
</div><!--/ .container -->
</section>
<section class=\"section-content\">
<div class=\"container-fluid\">
<div class=\"row justify-content-center\">
<div class=\"col-md-10 col-lg-8 col-xl-6\">
<div class=\"card\">
<div class=\"card-body\">
<div class=\"row align-items-center mb-5\">
<div class=\"col-sm-auto\">
<h3 class=\"mb-0\">";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Inloggen bij Devlieger"), "html", null, true);
echo "</h3>
</div>
<div class=\"col-sm-auto ms-auto\">
";
// line 27
$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);
// line 28
echo "
<a href=\"";
// line 29
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);
echo "\" class=\"btn btn-link px-0\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Geen account? Login aanvragen"), "html", null, true);
echo "</a>
</div>
</div><!--/ .row -->
";
// line 33
$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.', 33, $this->source); })()), "flashes", [], "any", false, false, true, 33));
foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
// line 34
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 35
echo " <div class=\"alert alert-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["label"], 35, $this->source), "html", null, true);
echo "\">
";
// line 36
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["message"], 36, $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 39
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 40
echo "
";
// line 41
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 41, $this->source); })())) {
// line 42
echo " <div class=\"alert alert-danger\">
";
// line 43
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);
echo "
</div>
";
}
// line 46
echo "
";
// line 47
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');
echo "
";
// line 48
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"]]);
echo "
";
// line 50
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"]]);
echo "
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 52
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\">
";
// line 58
echo "
";
// line 59
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"]]);
echo "
";
// line 60
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');
echo "
<div class=\"text-end\">
<a class=\"btn btn-link\" href=\"";
// line 64
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account_password_reset");
echo "\">Wachtwoord vergeten?</a>
</div>
</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 "login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.html.twig' %}
{% block content %}
<section class=\"section-intro\">
<div class=\"container-fluid\">
<div class=\"row align-items-center\">
<div class=\"col-auto\">
<p class=\"h1\">Log in</p>
</div>
</div><!--/ .row -->
</div><!--/ .container -->
</section>
<section class=\"section-content\">
<div class=\"container-fluid\">
<div class=\"row justify-content-center\">
<div class=\"col-md-10 col-lg-8 col-xl-6\">
<div class=\"card\">
<div class=\"card-body\">
<div class=\"row align-items-center mb-5\">
<div class=\"col-sm-auto\">
<h3 class=\"mb-0\">{{ 'Inloggen bij Devlieger'|trans }}</h3>
</div>
<div class=\"col-sm-auto ms-auto\">
{% set doc_account = document.getProperty('request_account_document') %}
<a href=\"{{ doc_account.getHref() }}\" class=\"btn btn-link px-0\">{{ 'Geen account? Login aanvragen'|trans }}</a>
</div>
</div><!--/ .row -->
{% 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') }}\">
{# <div class=\"custom-control custom-checkbox mb-3\">#}
{# <input name=\"_remember_me\" type=\"checkbox\" class=\"custom-control-input\" id=\"rememberMe\">#}
{# <label class=\"custom-control-label\" for=\"rememberMe\">Onthoud mij</label>#}
{# </div>#}
{{ form_row(form._submit, {'attr': {'class': 'btn btn-primary'}}) }}
{{ form_end(form) }}
<div class=\"text-end\">
<a class=\"btn btn-link\" href=\"{{ path('account_password_reset') }}\">Wachtwoord vergeten?</a>
</div>
</div>
</div>
</div>
</div><!--/ .row -->
</div><!--/ .container-fluid -->
</section>
{% endblock %}", "login.html.twig", "/data/sites/web/devliegerfilipbe/subsites/dev.devliegerfilip.dspdev.be/templates/login.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 27, "for" => 33, "if" => 41);
static $filters = array("escape" => 23, "trans" => 23);
static $functions = array("form_start" => 47, "form_widget" => 48, "csrf_token" => 52, "form_row" => 59, "form_end" => 60, "path" => 64);
try {
$this->sandbox->checkSecurity(
['set', 'for', 'if'],
['escape', 'trans'],
['form_start', 'form_widget', 'csrf_token', 'form_row', 'form_end', 'path']
);
} 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;
}
}
}