var/cache/dev/twig/e3/e3ffb2373bd9a6a7ae9c3223b814a3a90d9080bf75cb7e3f93df1c41375026ad.php line 49

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. /* security/login.html.twig */
  14. class __TwigTemplate_fa4f99027a48e8649351f823d4d67f846a8bd24ac51aa33ac653152400d19533 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.             'title' => [$this'block_title'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base_simple.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  39.         $this->parent $this->loadTemplate("base_simple.html.twig""security/login.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo "Log in!";
  55.         
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.     }
  60.     // line 5
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         // line 6
  69.         echo "<!--begin::Main-->
  70.     <!--begin::Login-->
  71.     <div class=\"login login-1 login-signin-on d-flex flex-column flex-lg-row flex-column-fluid bg-dark-o-15\" id=\"kt_login\" style=\"background-color: #f3f5f9\">
  72.         <!--begin::Content-->
  73.         <div class=\"login-content flex-row-fluid d-flex flex-column justify-content-center position-relative overflow-hidden p-7 mx-auto\">
  74.             <!--begin::Content body-->
  75.             <div class=\"d-flex flex-column-fluid flex-center\" >
  76.                 <!--begin::Signin-->
  77.                 <div class=\"login-form login-signin\" >
  78.                     <!--begin::Form-->
  79.                     <div class=\"bg-white rounded p-10\">
  80.                         <!--begin::Card-->
  81.                         <div class=\"card card-custom card-fit card-border\">
  82.                             <div class=\"card-body pt-2\" style=\"width:450px;\">
  83.                                 <form class=\"form\" method=\"post\" novalidate=\"novalidate\" id=\"kt_login_signin_form\">
  84.                                     <!--begin::Title-->
  85.                                         ";
  86.         // line 22
  87.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'22$this->source); })())) {
  88.             // line 23
  89.             echo "                                            <div class=\"alert alert-danger\">";
  90.             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.'23$this->source); })()), "messageKey", [], "any"falsefalsefalse23), 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.'23$this->source); })()), "messageData", [], "any"falsefalsefalse23), "security"), "html"nulltrue);
  91.             echo "</div>
  92.                                         ";
  93.         }
  94.         // line 25
  95.         echo "
  96.                                         ";
  97.         // line 26
  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.'26$this->source); })()), "user", [], "any"falsefalsefalse26)) {
  99.             // line 27
  100.             echo "                                            <div class=\"mb-3\">
  101.                                                 You are logged in as ";
  102.             // line 28
  103.             echo twig_escape_filter($this->envtwig_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.'28$this->source); })()), "user", [], "any"falsefalsefalse28), "username", [], "any"falsefalsefalse28), "html"nulltrue);
  104.             echo ", <a href=\"";
  105.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  106.             echo "\">Logout</a>
  107.                                             </div>
  108.                                         ";
  109.         }
  110.         // line 31
  111.         echo "                                    <div class=\"pb-13 pt-lg-0 pt-5 text-center\">
  112.                                         <a href=\"#\" class=\"text-center mb-10\">
  113.                                             <img src=\"/imagenes/logos/moldes-picassent-logo.png\" class=\"max-h-70px\" alt=\"\" />
  114.                                         </a>
  115.                                         ";
  116.         // line 36
  117.         echo "                                    </div>
  118.                                     <!--begin::Title-->
  119.                                     <!--begin::Form group-->
  120.                                     <div class=\"form-group\">
  121.                                         <label class=\"font-size-h6 font-weight-bolder text-dark\">Nombre de usuario</label>
  122.                                         <input class=\"form-control form-control-solid h-auto py-6 px-6 rounded-lg\" id=\"inputUsername\"  value=\"";
  123.         // line 41
  124.         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.'41$this->source); })()), "html"nulltrue);
  125.         echo "\" type=\"text\" name=\"username\" autocomplete=\"off\" required autofocus/>
  126.                                     </div>
  127.                                     <!--end::Form group-->
  128.                                     <!--begin::Form group-->
  129.                                     <div class=\"form-group\">
  130.                                         <div class=\"d-flex justify-content-between mt-n5\">
  131.                                             <label class=\"font-size-h6 font-weight-bolder text-dark pt-5\">Contraseña</label>
  132.                                             ";
  133.         // line 49
  134.         echo "                                        </div>
  135.                                         <input class=\"form-control form-control-solid h-auto py-6 px-6 rounded-lg\" id=\"inputPassword\"  type=\"password\" name=\"password\" autocomplete=\"off\" required/>
  136.                                             <input type=\"hidden\" name=\"_csrf_token\"
  137.                                                 value=\"";
  138.         // line 52
  139.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  140.         echo "\"
  141.                                             >
  142.                                     </div>
  143.                                     <!--end::Form group-->
  144.                                     <!--begin::Action-->
  145.                                     <div class=\"pb-lg-0 pb-5 text-center\">
  146.                                         <button type=\"submit\" id=\"kt_login_signin_submit\" data-load-text=\"Iniciando sesión...\" class=\"btn btn-primary font-weight-bolder font-size-h6 px-8 py-4 my-3 mr-3\">Iniciar sesión</button>
  147.                                     </div>
  148.                                     <!--end::Action-->
  149.                                     <div class=\"pb-lg-0 pb-5 text-center pt-5\">
  150.                                         <a href=\"";
  151.         // line 62
  152.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("publico_orden_new");
  153.         echo "\" data-load-text=\"Cargando...\">Acceder al Taller</a>
  154.                                     </div>
  155.                                 </form>
  156.                             </div>
  157.                         </div>
  158.                         <!--end::Card-->
  159.                     </div>
  160.                     <!--end::Form-->
  161.                 </div>
  162.                 <!--end::Signin-->
  163.             </div>
  164.             <!--end::Content body-->
  165.             
  166.         </div>
  167.         <!--end::Content-->
  168.     </div>
  169.     <!--end::Login-->
  170. <!--end::Main-->
  171. ";
  172.         
  173.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  174.         
  175.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  176.     }
  177.     public function getTemplateName()
  178.     {
  179.         return "security/login.html.twig";
  180.     }
  181.     public function isTraitable()
  182.     {
  183.         return false;
  184.     }
  185.     public function getDebugInfo()
  186.     {
  187.         return array (  171 => 62,  158 => 52,  153 => 49,  143 => 41,  136 => 36,  130 => 31,  122 => 28,  119 => 27,  117 => 26,  114 => 25,  108 => 23,  106 => 22,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
  188.     }
  189.     public function getSourceContext()
  190.     {
  191.         return new Source("{% extends 'base_simple.html.twig' %}
  192. {% block title %}Log in!{% endblock %}
  193. {% block body %}
  194. <!--begin::Main-->
  195.     <!--begin::Login-->
  196.     <div class=\"login login-1 login-signin-on d-flex flex-column flex-lg-row flex-column-fluid bg-dark-o-15\" id=\"kt_login\" style=\"background-color: #f3f5f9\">
  197.         <!--begin::Content-->
  198.         <div class=\"login-content flex-row-fluid d-flex flex-column justify-content-center position-relative overflow-hidden p-7 mx-auto\">
  199.             <!--begin::Content body-->
  200.             <div class=\"d-flex flex-column-fluid flex-center\" >
  201.                 <!--begin::Signin-->
  202.                 <div class=\"login-form login-signin\" >
  203.                     <!--begin::Form-->
  204.                     <div class=\"bg-white rounded p-10\">
  205.                         <!--begin::Card-->
  206.                         <div class=\"card card-custom card-fit card-border\">
  207.                             <div class=\"card-body pt-2\" style=\"width:450px;\">
  208.                                 <form class=\"form\" method=\"post\" novalidate=\"novalidate\" id=\"kt_login_signin_form\">
  209.                                     <!--begin::Title-->
  210.                                         {% if error %}
  211.                                             <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  212.                                         {% endif %}
  213.                                         {% if app.user %}
  214.                                             <div class=\"mb-3\">
  215.                                                 You are logged in as {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">Logout</a>
  216.                                             </div>
  217.                                         {% endif %}
  218.                                     <div class=\"pb-13 pt-lg-0 pt-5 text-center\">
  219.                                         <a href=\"#\" class=\"text-center mb-10\">
  220.                                             <img src=\"/imagenes/logos/moldes-picassent-logo.png\" class=\"max-h-70px\" alt=\"\" />
  221.                                         </a>
  222.                                         {#<h3 class=\"font-weight-bolder text-dark font-size-h4 font-size-h1-lg text-center\">Bienvenido a <br/>Moldes Picassent</h3>#}
  223.                                     </div>
  224.                                     <!--begin::Title-->
  225.                                     <!--begin::Form group-->
  226.                                     <div class=\"form-group\">
  227.                                         <label class=\"font-size-h6 font-weight-bolder text-dark\">Nombre de usuario</label>
  228.                                         <input class=\"form-control form-control-solid h-auto py-6 px-6 rounded-lg\" id=\"inputUsername\"  value=\"{{ last_username }}\" type=\"text\" name=\"username\" autocomplete=\"off\" required autofocus/>
  229.                                     </div>
  230.                                     <!--end::Form group-->
  231.                                     <!--begin::Form group-->
  232.                                     <div class=\"form-group\">
  233.                                         <div class=\"d-flex justify-content-between mt-n5\">
  234.                                             <label class=\"font-size-h6 font-weight-bolder text-dark pt-5\">Contraseña</label>
  235.                                             {#<a href=\"javascript:;\" class=\"text-primary font-size-h6 font-weight-bolder text-hover-primary pt-5\" id=\"kt_login_forgot\">Forgot Password ?</a>#}
  236.                                         </div>
  237.                                         <input class=\"form-control form-control-solid h-auto py-6 px-6 rounded-lg\" id=\"inputPassword\"  type=\"password\" name=\"password\" autocomplete=\"off\" required/>
  238.                                             <input type=\"hidden\" name=\"_csrf_token\"
  239.                                                 value=\"{{ csrf_token('authenticate') }}\"
  240.                                             >
  241.                                     </div>
  242.                                     <!--end::Form group-->
  243.                                     <!--begin::Action-->
  244.                                     <div class=\"pb-lg-0 pb-5 text-center\">
  245.                                         <button type=\"submit\" id=\"kt_login_signin_submit\" data-load-text=\"Iniciando sesión...\" class=\"btn btn-primary font-weight-bolder font-size-h6 px-8 py-4 my-3 mr-3\">Iniciar sesión</button>
  246.                                     </div>
  247.                                     <!--end::Action-->
  248.                                     <div class=\"pb-lg-0 pb-5 text-center pt-5\">
  249.                                         <a href=\"{{ path('publico_orden_new') }}\" data-load-text=\"Cargando...\">Acceder al Taller</a>
  250.                                     </div>
  251.                                 </form>
  252.                             </div>
  253.                         </div>
  254.                         <!--end::Card-->
  255.                     </div>
  256.                     <!--end::Form-->
  257.                 </div>
  258.                 <!--end::Signin-->
  259.             </div>
  260.             <!--end::Content body-->
  261.             
  262.         </div>
  263.         <!--end::Content-->
  264.     </div>
  265.     <!--end::Login-->
  266. <!--end::Main-->
  267. {% endblock %}""security/login.html.twig""/var/www/vhosts/apunts.es/moldes.apunts.es/templates/security/login.html.twig");
  268.     }
  269. }