<?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_9482f1892dcf6eae6bc7ec37f7859a5a2eabe755db31bc5afbc885a2c15f80c2 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "layout_public.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Security/login.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Security/login.html.twig"));
$this->parent = $this->loadTemplate("layout_public.html.twig", "Security/login.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 5
echo " <div class=\"page\" id=\"security-login\">
<div class=\"login-content\">
<div class=\"LogoSecurity\">
<img src=\"";
// line 9
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/app/security/"), "html", null, true);
echo "munireg-finallogo.svg\" alt=\"\" >
</div>
";
// line 12
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 12, $this->source); })())) {
// line 13
echo " <div class=\"error\">The email/password combination is invalid.</div>
";
}
// line 15
echo "
";
// line 16
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, 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.', 16, $this->source); })()), "session", [], "any", false, false, false, 16), "flashbag", [], "any", false, false, false, 16), "get", [0 => "message_password"], "method", false, false, false, 16));
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
// line 17
echo " <div class=\"error\">";
echo twig_escape_filter($this->env, $context["flashMessage"], "html", null, true);
echo "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 19
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, 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.', 19, $this->source); })()), "session", [], "any", false, false, false, 19), "flashbag", [], "any", false, false, false, 19), "get", [0 => "message_register"], "method", false, false, false, 19));
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
// line 20
echo " <div class=\"success\">";
echo twig_escape_filter($this->env, $context["flashMessage"], "html", null, true);
echo "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 22
echo "
<form action=\"";
// line 23
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login_check");
echo "\" method=\"post\" class=\"form-security\">
<div class=\"formItemsContainer\">
<div>
<label for=\"email\">Email</label>
<input type=\"text\" id=\"email\" name=\"_email\" placeholder=\"johndoe3@gmail.com\" value=\"";
// line 27
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.', 27, $this->source); })()), "html", null, true);
echo "\">
</div>
<div>
<label for=\"password\">Password</label>
<input type=\"password\" id=\"password\" name=\"_password\">
</div>
<div class=\"forgot-pass\">
<a href=\"";
// line 34
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_reset_password");
echo "\">Forgot Password?</a>
</div>
<button type=\"submit\" class=\"btn-green\">Login</button>
</div>
<div class=\"create-account\">
<label for=\"remember-me\">
<input type=\"checkbox\" id=\"remember-me\" name=\"_remember_me\">
<span>Remember me</span>
</label>
<span>First time?</span>
<a href=\"";
// line 44
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_registration_index");
echo "\">Create an account</a>
</div>
</form>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Security/login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 149 => 44, 136 => 34, 126 => 27, 119 => 23, 116 => 22, 107 => 20, 102 => 19, 93 => 17, 89 => 16, 86 => 15, 82 => 13, 80 => 12, 74 => 9, 68 => 5, 58 => 4, 35 => 2,);
}
public function getSourceContext()
{
return new Source("
{% extends 'layout_public.html.twig' %}
{% block content %}
<div class=\"page\" id=\"security-login\">
<div class=\"login-content\">
<div class=\"LogoSecurity\">
<img src=\"{{ asset('images/app/security/') }}munireg-finallogo.svg\" alt=\"\" >
</div>
{% if error %}
<div class=\"error\">The email/password combination is invalid.</div>
{% endif %}
{% for flashMessage in app.session.flashbag.get('message_password') %}
<div class=\"error\">{{ flashMessage }}</div>
{% endfor %}
{% for flashMessage in app.session.flashbag.get('message_register') %}
<div class=\"success\">{{ flashMessage }}</div>
{% endfor %}
<form action=\"{{ path('app_login_check') }}\" method=\"post\" class=\"form-security\">
<div class=\"formItemsContainer\">
<div>
<label for=\"email\">Email</label>
<input type=\"text\" id=\"email\" name=\"_email\" placeholder=\"johndoe3@gmail.com\" value=\"{{ last_username }}\">
</div>
<div>
<label for=\"password\">Password</label>
<input type=\"password\" id=\"password\" name=\"_password\">
</div>
<div class=\"forgot-pass\">
<a href=\"{{ path('app_reset_password') }}\">Forgot Password?</a>
</div>
<button type=\"submit\" class=\"btn-green\">Login</button>
</div>
<div class=\"create-account\">
<label for=\"remember-me\">
<input type=\"checkbox\" id=\"remember-me\" name=\"_remember_me\">
<span>Remember me</span>
</label>
<span>First time?</span>
<a href=\"{{ path('app_registration_index')}}\">Create an account</a>
</div>
</form>
</div>
</div>
{% endblock %}
", "Security/login.html.twig", "/var/www/app-dev-munireg/templates/Security/login.html.twig");
}
}