<?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;
/* Frontend/Customer/login.html.twig */
class __TwigTemplate_3e8aa6670c74afb45fe5f3f11ca43b9c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Frontend/base.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", "Frontend/Customer/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", "Frontend/Customer/login.html.twig"));
$this->parent = $this->loadTemplate("Frontend/base.html.twig", "Frontend/Customer/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 2
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 3
echo "
<br><br><br><br><br>
<div class='row'>
\t<div class='col-md-12 text-center'>
\t\t\t
<div class=\"cardd\" style=\"margin:0 auto; max-width:400px;\">
\t\t\t\t";
// line 13
echo twig_include($this->env, $context, "flash.html.twig");
echo "\t
<div class=\"card-bodyy\">
<div class=\"\">
\t\t\t\t\t\t<img class=\"logo-loginm\" src=\"";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["settings"]) || array_key_exists("settings", $context) ? $context["settings"] : (function () { throw new RuntimeError('Variable "settings" does not exist.', 17, $this->source); })()), "logoPath", [], "any", false, false, false, 17), "html", null, true);
echo "\" style='width:200px'>
</div>
<br><br>
\t\t\t\t\t";
// line 22
$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.', 22, $this->source); })()), "session", [], "any", false, false, false, 22), "flashbag", [], "any", false, false, false, 22), "get", [0 => "login_error"], "method", false, false, false, 22));
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
// line 23
echo "\t\t\t\t\t\t<div class=\"alert alert-danger\" role=\"alert\">";
echo $context["flashMessage"];
echo "</div>
\t\t\t ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
echo "\t\t\t ";
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 25, $this->source); })())) {
// line 26
echo "\t\t\t <div>";
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.', 26, $this->source); })()), "messageKey", [], "any", false, false, false, 26), [], "security"), "html", null, true);
echo "</div>
\t\t\t ";
}
// line 28
echo "\t\t\t
\t\t\t\t\t";
// line 29
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 29, $this->source); })()), 'form_start', ["attr" => ["id" => "loginForm"]]);
echo "
\t\t\t\t\t\t<div class=\"input-group mb-3\">
\t\t\t\t\t\t\t<input type=\"email\" class=\"form-control required email\" id=\"_xEmail\" placeholder=\"Email\" name=\"email\">
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"input-group mb-4\">
\t\t\t\t\t\t\t<input type=\"password\" class=\"form-control required\" id=\"_xData\" placeholder=\"Password\" name=\"password\">
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 37
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\">
<button type='submit' id=\"btn-login\" class=\"btn-login btn btn-primary shadow-2 mb-6\">Ingresar</button>
\t\t\t\t\t\t
\t\t\t\t\t";
// line 40
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 40, $this->source); })()), 'form_end');
echo "
\t\t\t\t\t<br>
\t\t\t
<a href=\"javascript:void(0)\" data-toggle=\"modal\" onclick=\"openModalRegister();\" data-target=\"#viewContentRegister\" >
¿Aún no tienes una cuenta?
</a>
</div>
</div>
\t</div>
\t\t\t
</div>
\t
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Frontend/Customer/login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 137 => 40, 131 => 37, 120 => 29, 117 => 28, 111 => 26, 108 => 25, 99 => 23, 95 => 22, 87 => 17, 80 => 13, 68 => 3, 58 => 2, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'Frontend/base.html.twig' %}
{% block body %}
<br><br><br><br><br>
<div class='row'>
\t<div class='col-md-12 text-center'>
\t\t\t
<div class=\"cardd\" style=\"margin:0 auto; max-width:400px;\">
\t\t\t\t{{ include('flash.html.twig') }}\t
<div class=\"card-bodyy\">
<div class=\"\">
\t\t\t\t\t\t<img class=\"logo-loginm\" src=\"{{settings.logoPath}}\" style='width:200px'>
</div>
<br><br>
\t\t\t\t\t{% for flashMessage in app.session.flashbag.get('login_error') %}
\t\t\t\t\t\t<div class=\"alert alert-danger\" role=\"alert\">{{ flashMessage | raw }}</div>
\t\t\t {% endfor %}
\t\t\t {% if error %}
\t\t\t <div>{{ error.messageKey|trans({}, 'security') }}</div>
\t\t\t {% endif %}
\t\t\t
\t\t\t\t\t{{ form_start(form,{'attr': {'id': 'loginForm'}}) }}
\t\t\t\t\t\t<div class=\"input-group mb-3\">
\t\t\t\t\t\t\t<input type=\"email\" class=\"form-control required email\" id=\"_xEmail\" placeholder=\"Email\" name=\"email\">
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"input-group mb-4\">
\t\t\t\t\t\t\t<input type=\"password\" class=\"form-control required\" id=\"_xData\" placeholder=\"Password\" name=\"password\">
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
<button type='submit' id=\"btn-login\" class=\"btn-login btn btn-primary shadow-2 mb-6\">Ingresar</button>
\t\t\t\t\t\t
\t\t\t\t\t{{ form_end(form) }}
\t\t\t\t\t<br>
\t\t\t
<a href=\"javascript:void(0)\" data-toggle=\"modal\" onclick=\"openModalRegister();\" data-target=\"#viewContentRegister\" >
¿Aún no tienes una cuenta?
</a>
</div>
</div>
\t</div>
\t\t\t
</div>
\t
{% endblock %}
", "Frontend/Customer/login.html.twig", "/home/sinfilas/public_html/templates/Frontend/Customer/login.html.twig");
}
}