<?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_5b9971dfd8f21171a8ff81d0e33b057e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 9
return "baselogin.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("baselogin.html.twig", "security/login.html.twig", 9);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 11
public function block_title($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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Log in!";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 13
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 14
echo "
<body class=\"app flex-row align-items-center\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-md-8\">
<div class=\"card-group mb-0\">
<div class=\"card p-4\">
<div class=\"card-body\">
<form method=\"post\">
";
// line 24
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 24, $this->source); })())) {
// line 25
echo " <div class=\"alert alert-danger\">";
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.', 25, $this->source); })()), "messageKey", [], "any", false, false, false, 25), 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.', 25, $this->source); })()), "messageData", [], "any", false, false, false, 25), "security"), "html", null, true);
echo "</div>
";
}
// line 27
echo "
";
// line 28
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.', 28, $this->source); })()), "user", [], "any", false, false, false, 28)) {
// line 29
echo " <div class=\"mb-3\">
Prijavljeni ste kot ";
// line 30
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.', 30, $this->source); })()), "user", [], "any", false, false, false, 30), "username", [], "any", false, false, false, 30), "html", null, true);
echo ", <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\">Odjava</a>
</div>
";
}
// line 33
echo " <h1>Prijava</h1>
<p class=\"text-muted\">Prijavite se v vaš račun</p>
<div class=\"input-group mb-3\">
<span class=\"input-group-addon\"><i class=\"icon-user\"></i></span>
<input type=\"text\" value=\"";
// line 37
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.', 37, $this->source); })()), "html", null, true);
echo "\" name=\"username\" id=\"inputUsername\" class=\"form-control\" required autofocus>
</div>
<div class=\"input-group mb-4\">
<span class=\"input-group-addon\"><i class=\"icon-lock\"></i></span>
<input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" required>
<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 "\">
</div>
<div class=\"row\">
<div class=\"col-6\">
<button class=\"btn btn-primary px-4\" type=\"submit\">Prijava</button>
</div>
</div>
<BR>
</form>
</div>
</div>
<div class=\"card text-white bg-primary py-5 d-md-down-none\" style=\"width:44%\">
<div class=\"card-body text-center\">
<div>
<img src=\"http://mamo.cloovis.si/admin/img/dancer_small.png\" style=\"background-color:#20a8d8;\" alt=\"Italian Trulli\">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "security/login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 138 => 42, 130 => 37, 124 => 33, 116 => 30, 113 => 29, 111 => 28, 108 => 27, 102 => 25, 100 => 24, 88 => 14, 78 => 13, 59 => 11, 36 => 9,);
}
public function getSourceContext()
{
return new Source("{#
---------------------------------------------------
v0.0001
9.6.2020 (Maa)
- prva verzija
--------------------------------------------------
#}
{% extends 'baselogin.html.twig' %}
{% block title %}Log in!{% endblock %}
{% block body %}
<body class=\"app flex-row align-items-center\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-md-8\">
<div class=\"card-group mb-0\">
<div class=\"card p-4\">
<div class=\"card-body\">
<form method=\"post\">
{% if error %}
<div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class=\"mb-3\">
Prijavljeni ste kot {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">Odjava</a>
</div>
{% endif %}
<h1>Prijava</h1>
<p class=\"text-muted\">Prijavite se v vaš račun</p>
<div class=\"input-group mb-3\">
<span class=\"input-group-addon\"><i class=\"icon-user\"></i></span>
<input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"inputUsername\" class=\"form-control\" required autofocus>
</div>
<div class=\"input-group mb-4\">
<span class=\"input-group-addon\"><i class=\"icon-lock\"></i></span>
<input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" required>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
</div>
<div class=\"row\">
<div class=\"col-6\">
<button class=\"btn btn-primary px-4\" type=\"submit\">Prijava</button>
</div>
</div>
<BR>
</form>
</div>
</div>
<div class=\"card text-white bg-primary py-5 d-md-down-none\" style=\"width:44%\">
<div class=\"card-body text-center\">
<div>
<img src=\"http://mamo.cloovis.si/admin/img/dancer_small.png\" style=\"background-color:#20a8d8;\" alt=\"Italian Trulli\">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
{% endblock %}
", "security/login.html.twig", "/var/www/nota/templates/security/login.html.twig");
}
}