var/cache/dev/twig/dd/ddfd6ad0aee17c5120a1e3d4ca5a6719.php line 38

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Frontend/Customer/login.html.twig */
  14. class __TwigTemplate_3e8aa6670c74afb45fe5f3f11ca43b9c extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "Frontend/base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Frontend/Customer/login.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Frontend/Customer/login.html.twig"));
  38.         $this->parent $this->loadTemplate("Frontend/base.html.twig""Frontend/Customer/login.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 2
  46.     public function block_body($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 3
  54.         echo "
  55. <br><br><br><br><br>
  56. <div class='row'>
  57. \t<div class='col-md-12 text-center'>
  58. \t\t\t
  59.             <div class=\"cardd\" style=\"margin:0 auto; max-width:400px;\">
  60. \t\t\t\t";
  61.         // line 13
  62.         echo twig_include($this->env$context"flash.html.twig");
  63.         echo "\t            
  64.                 <div class=\"card-bodyy\">
  65.                     <div class=\"\">                        
  66. \t\t\t\t\t\t<img class=\"logo-loginm\" src=\"";
  67.         // line 17
  68.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse17), "html"nulltrue);
  69.         echo "\" style='width:200px'>
  70.                     </div>
  71.                     
  72.                     <br><br>
  73.                     
  74. \t\t\t\t\t";
  75.         // line 22
  76.         $context['_parent'] = $context;
  77.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse22), "flashbag", [], "any"falsefalsefalse22), "get", [=> "login_error"], "method"falsefalsefalse22));
  78.         foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  79.             // line 23
  80.             echo "\t\t\t\t\t\t<div class=\"alert alert-danger\" role=\"alert\">";
  81.             echo $context["flashMessage"];
  82.             echo "</div>
  83. \t\t\t        ";
  84.         }
  85.         $_parent $context['_parent'];
  86.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
  87.         $context array_intersect_key($context$_parent) + $_parent;
  88.         // line 25
  89.         echo "\t\t\t        ";
  90.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'25$this->source); })())) {
  91.             // line 26
  92.             echo "\t\t\t            <div>";
  93.             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"falsefalsefalse26), [], "security"), "html"nulltrue);
  94.             echo "</div>
  95. \t\t\t        ";
  96.         }
  97.         // line 28
  98.         echo "\t\t\t
  99. \t\t\t\t\t";
  100.         // line 29
  101.         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"]]);
  102.         echo "
  103. \t\t\t\t\t\t<div class=\"input-group mb-3\">
  104. \t\t\t\t\t\t\t<input type=\"email\" class=\"form-control required email\" id=\"_xEmail\" placeholder=\"Email\" name=\"email\">
  105. \t\t\t\t\t\t</div>
  106. \t\t\t\t\t\t<div class=\"input-group mb-4\">
  107. \t\t\t\t\t\t\t<input type=\"password\" class=\"form-control required\" id=\"_xData\" placeholder=\"Password\" name=\"password\">
  108. \t\t\t\t\t\t</div>
  109. \t\t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"";
  110.         // line 37
  111.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  112.         echo "\">
  113.                         <button type='submit' id=\"btn-login\" class=\"btn-login btn btn-primary shadow-2 mb-6\">Ingresar</button>
  114. \t\t\t\t\t\t
  115. \t\t\t\t\t";
  116.         // line 40
  117.         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');
  118.         echo "
  119. \t\t\t\t\t<br>
  120. \t\t\t
  121.                     <a href=\"javascript:void(0)\" data-toggle=\"modal\" onclick=\"openModalRegister();\" data-target=\"#viewContentRegister\" >
  122.                         ¿Aún no tienes una cuenta?
  123.                     </a>
  124.             
  125.                 </div>                                   
  126.             </div>  
  127. \t</div>
  128. \t\t\t
  129. </div>
  130. \t
  131. ";
  132.         
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  134.         
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136.     }
  137.     public function getTemplateName()
  138.     {
  139.         return "Frontend/Customer/login.html.twig";
  140.     }
  141.     public function isTraitable()
  142.     {
  143.         return false;
  144.     }
  145.     public function getDebugInfo()
  146.     {
  147.         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,);
  148.     }
  149.     public function getSourceContext()
  150.     {
  151.         return new Source("{% extends 'Frontend/base.html.twig' %}
  152. {% block body %}
  153. <br><br><br><br><br>
  154. <div class='row'>
  155. \t<div class='col-md-12 text-center'>
  156. \t\t\t
  157.             <div class=\"cardd\" style=\"margin:0 auto; max-width:400px;\">
  158. \t\t\t\t{{ include('flash.html.twig') }}\t            
  159.                 <div class=\"card-bodyy\">
  160.                     <div class=\"\">                        
  161. \t\t\t\t\t\t<img class=\"logo-loginm\" src=\"{{settings.logoPath}}\" style='width:200px'>
  162.                     </div>
  163.                     
  164.                     <br><br>
  165.                     
  166. \t\t\t\t\t{% for flashMessage in app.session.flashbag.get('login_error') %}
  167. \t\t\t\t\t\t<div class=\"alert alert-danger\" role=\"alert\">{{ flashMessage | raw }}</div>
  168. \t\t\t        {% endfor %}
  169. \t\t\t        {% if error %}
  170. \t\t\t            <div>{{ error.messageKey|trans({}, 'security') }}</div>
  171. \t\t\t        {% endif %}
  172. \t\t\t
  173. \t\t\t\t\t{{ form_start(form,{'attr': {'id': 'loginForm'}}) }}
  174. \t\t\t\t\t\t<div class=\"input-group mb-3\">
  175. \t\t\t\t\t\t\t<input type=\"email\" class=\"form-control required email\" id=\"_xEmail\" placeholder=\"Email\" name=\"email\">
  176. \t\t\t\t\t\t</div>
  177. \t\t\t\t\t\t<div class=\"input-group mb-4\">
  178. \t\t\t\t\t\t\t<input type=\"password\" class=\"form-control required\" id=\"_xData\" placeholder=\"Password\" name=\"password\">
  179. \t\t\t\t\t\t</div>
  180. \t\t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  181.                         <button type='submit' id=\"btn-login\" class=\"btn-login btn btn-primary shadow-2 mb-6\">Ingresar</button>
  182. \t\t\t\t\t\t
  183. \t\t\t\t\t{{ form_end(form) }}
  184. \t\t\t\t\t<br>
  185. \t\t\t
  186.                     <a href=\"javascript:void(0)\" data-toggle=\"modal\" onclick=\"openModalRegister();\" data-target=\"#viewContentRegister\" >
  187.                         ¿Aún no tienes una cuenta?
  188.                     </a>
  189.             
  190.                 </div>                                   
  191.             </div>  
  192. \t</div>
  193. \t\t\t
  194. </div>
  195. \t
  196. {% endblock %}
  197. ""Frontend/Customer/login.html.twig""/home/sinfilas/public_html/templates/Frontend/Customer/login.html.twig");
  198.     }
  199. }