<?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;
/* security/login.html.twig */
class __TwigTemplate_84f76c2fd3e28273b10b76a0ea87efd9 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "notloggedin.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", "security/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", "security/login.html.twig"));
$this->parent = $this->loadTemplate("notloggedin.html.twig", "security/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_stylesheets($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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 4
echo "\t<style>
\t\thtml,
\t\tbody {
\t\t height: 100%;
\t\t}
\t\tbody {
\t\t display: -ms-flexbox;
\t\t display: flex;
\t\t -ms-flex-align: center;
\t\t align-items: center;
\t\t padding-top: 40px;
\t\t padding-bottom: 40px;
\t\t background-color: #f5f5f5;
\t\t}
\t\t.form-signin {
\t\t width: 100%;
\t\t max-width: 330px;
\t\t padding: 15px;
\t\t margin: auto;
\t\t}
\t\t.form-signin .checkbox {
\t\t font-weight: 400;
\t\t}
\t\t.form-signin .form-control {
\t\t position: relative;
\t\t box-sizing: border-box;
\t\t height: auto;
\t\t padding: 10px;
\t\t font-size: 16px;
\t\t}
\t\t.form-signin .form-control:focus {
\t\t z-index: 2;
\t\t}
\t\t.form-signin input[type=\"email\"] {
\t\t margin-bottom: -1px;
\t\t border-bottom-right-radius: 0;
\t\t border-bottom-left-radius: 0;
\t\t}
\t\t.form-signin input[type=\"password\"] {
\t\t margin-bottom: 10px;
\t\t border-top-left-radius: 0;
\t\t border-top-right-radius: 0;
\t\t}
\t\t\t .bd-placeholder-img {
\t\t\t\tfont-size: 1.125rem;
\t\t\t\ttext-anchor: middle;
\t\t\t\t-webkit-user-select: none;
\t\t\t\t-moz-user-select: none;
\t\t\t\t-ms-user-select: none;
\t\t\t\tuser-select: none;
\t\t\t }
\t\t\t @media (min-width: 768px) {
\t\t\t\t.bd-placeholder-img-lg {
\t\t\t\t font-size: 3.5rem;
\t\t\t\t}
\t\t\t }
\t\t\t
\t</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 68
public function block_body($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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 69
echo "
\t<body class=\"text-center\">
\t\t<form method=\"post\" class=\"form-signin\">
\t\t\t<img class=\"mb-3\" width=\"200\" src=\"";
// line 73
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/public/uploads/" . (isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 73, $this->source); })()))), "html", null, true);
echo "\" >
\t\t\t<h1 class=\"h3 mb-3 mt-3 font-weight-normal\">Inloggen</h1>
\t\t\t
\t\t\t<label for=\"inputUsername\" class=\"sr-only\">Gebruikersnaam</label>
\t\t\t<input type=\"text\" value=\"";
// line 77
echo twig_escape_filter($this->env, (isset($context["last_username"]) || array_key_exists("last_username", $context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.', 77, $this->source); })()), "html", null, true);
echo "\" name=\"username\" id=\"inputUsername\" class=\"form-control\" placeholder=\"Gebruikersnaam\" required autofocus>
\t\t\t
\t\t\t<label for=\"inputPassword\" class=\"sr-only\">Wachtwoord</label>
\t\t\t<input type=\"password\" id=\"inputPassword\" name=\"password\" class=\"form-control\" placeholder=\"Wachtwoord\" required>
\t\t\t
\t\t\t<input type=\"hidden\" name=\"_csrf_token\"
\t\t\t\t value=\"";
// line 83
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\"
\t\t\t>
\t\t\t
\t\t\t ";
// line 93
echo "\t\t\t<button class=\"btn btn-lg btn-primary btn-block\" type=\"submit\">Inloggen</button>
\t\t\t\t\t\t";
// line 94
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 94, $this->source); })())) {
// line 95
echo "\t\t\t\t<div class=\"alert alert-danger mt-3\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(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.', 95, $this->source); })()), "messageKey", [], "any", false, false, false, 95), 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.', 95, $this->source); })()), "messageData", [], "any", false, false, false, 95), "security"), "html", null, true);
echo "</div>
\t\t\t";
}
// line 97
echo "
\t\t\t";
// line 98
if (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.', 98, $this->source); })()), "user", [], "any", false, false, false, 98)) {
// line 99
echo "\t\t\t\t<div class=\"mt-3 alert alert-danger\" role=\"alert\">
\t\t\t\t\tJe bent al ingelogd als ";
// line 100
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 100, $this->source); })()), "user", [], "any", false, false, false, 100), "username", [], "any", false, false, false, 100), "html", null, true);
echo ", <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\">klik hier om uit te loggen</a>
\t\t\t\t</div>
\t\t\t";
}
// line 103
echo "\t\t\t
\t\t\t<p class=\"mt-5 mb-3 text-muted\">© Twente PC 2020 - ";
// line 104
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
echo "</p>
\t\t</form>
\t</body>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "security/login.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 209 => 104, 206 => 103, 198 => 100, 195 => 99, 193 => 98, 190 => 97, 184 => 95, 182 => 94, 179 => 93, 173 => 83, 164 => 77, 157 => 73, 151 => 69, 141 => 68, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'notloggedin.html.twig' %}
{% block stylesheets %}
\t<style>
\t\thtml,
\t\tbody {
\t\t height: 100%;
\t\t}
\t\tbody {
\t\t display: -ms-flexbox;
\t\t display: flex;
\t\t -ms-flex-align: center;
\t\t align-items: center;
\t\t padding-top: 40px;
\t\t padding-bottom: 40px;
\t\t background-color: #f5f5f5;
\t\t}
\t\t.form-signin {
\t\t width: 100%;
\t\t max-width: 330px;
\t\t padding: 15px;
\t\t margin: auto;
\t\t}
\t\t.form-signin .checkbox {
\t\t font-weight: 400;
\t\t}
\t\t.form-signin .form-control {
\t\t position: relative;
\t\t box-sizing: border-box;
\t\t height: auto;
\t\t padding: 10px;
\t\t font-size: 16px;
\t\t}
\t\t.form-signin .form-control:focus {
\t\t z-index: 2;
\t\t}
\t\t.form-signin input[type=\"email\"] {
\t\t margin-bottom: -1px;
\t\t border-bottom-right-radius: 0;
\t\t border-bottom-left-radius: 0;
\t\t}
\t\t.form-signin input[type=\"password\"] {
\t\t margin-bottom: 10px;
\t\t border-top-left-radius: 0;
\t\t border-top-right-radius: 0;
\t\t}
\t\t\t .bd-placeholder-img {
\t\t\t\tfont-size: 1.125rem;
\t\t\t\ttext-anchor: middle;
\t\t\t\t-webkit-user-select: none;
\t\t\t\t-moz-user-select: none;
\t\t\t\t-ms-user-select: none;
\t\t\t\tuser-select: none;
\t\t\t }
\t\t\t @media (min-width: 768px) {
\t\t\t\t.bd-placeholder-img-lg {
\t\t\t\t font-size: 3.5rem;
\t\t\t\t}
\t\t\t }
\t\t\t
\t</style>
{% endblock %}
{% block body %}
\t<body class=\"text-center\">
\t\t<form method=\"post\" class=\"form-signin\">
\t\t\t<img class=\"mb-3\" width=\"200\" src=\"{{ asset('/public/uploads/' ~ logo) }}\" >
\t\t\t<h1 class=\"h3 mb-3 mt-3 font-weight-normal\">Inloggen</h1>
\t\t\t
\t\t\t<label for=\"inputUsername\" class=\"sr-only\">Gebruikersnaam</label>
\t\t\t<input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"inputUsername\" class=\"form-control\" placeholder=\"Gebruikersnaam\" required autofocus>
\t\t\t
\t\t\t<label for=\"inputPassword\" class=\"sr-only\">Wachtwoord</label>
\t\t\t<input type=\"password\" id=\"inputPassword\" name=\"password\" class=\"form-control\" placeholder=\"Wachtwoord\" required>
\t\t\t
\t\t\t<input type=\"hidden\" name=\"_csrf_token\"
\t\t\t\t value=\"{{ csrf_token('authenticate') }}\"
\t\t\t>
\t\t\t
\t\t\t {#
\t\t\t<div class=\"checkbox mb-3\">
\t\t\t<label>
\t\t\t <input type=\"checkbox\" value=\"remember-me\"> Remember me
\t\t\t</label>
\t\t\t</div>
\t\t\t #}
\t\t\t<button class=\"btn btn-lg btn-primary btn-block\" type=\"submit\">Inloggen</button>
\t\t\t\t\t\t{% if error %}
\t\t\t\t<div class=\"alert alert-danger mt-3\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
\t\t\t{% endif %}
\t\t\t{% if app.user %}
\t\t\t\t<div class=\"mt-3 alert alert-danger\" role=\"alert\">
\t\t\t\t\tJe bent al ingelogd als {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">klik hier om uit te loggen</a>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t\t
\t\t\t<p class=\"mt-5 mb-3 text-muted\">© Twente PC 2020 - {{ \"now\"|date(\"Y\") }}</p>
\t\t</form>
\t</body>
{% endblock %}
", "security/login.html.twig", "/var/www/dev.jotop.nl/templates/security/login.html.twig");
}
}