var/cache/dev/twig/47/4776f050bf3c906a4c5285e67275a3f61afada42119359ac22b67ce3ee5f0808.php line 78

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_82ed8a949db08be0145bdf53f73c04f28f20b7cfe62153fc756c94323a9feded 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.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "security/login_base.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("security/login_base.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_main($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""main"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  68.         // line 6
  69.         echo "
  70.     <form method=\"post\">
  71.         <div class=\"login-wrapper\">
  72.             <header class=\"main-header\">
  73.                 <div id=\"header-logo\"></div>
  74.                 ";
  75.         // line 12
  76.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'12$this->source); })())) {
  77.             // line 13
  78.             echo "                    <div class=\"alert alert-danger\">";
  79.             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.'13$this->source); })()), "messageKey", [], "any"falsefalsefalse13), 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.'13$this->source); })()), "messageData", [], "any"falsefalsefalse13), "security"), "html"nulltrue);
  80.             echo "</div>
  81.                 ";
  82.         }
  83.         // line 15
  84.         echo "            </header>
  85.             ";
  86.         // line 17
  87.         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.'17$this->source); })()), "user", [], "any"falsefalsefalse17)) {
  88.             // line 18
  89.             echo "                <div class=\"mb-3\">
  90.                     You are logged in as ";
  91.             // line 19
  92.             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.'19$this->source); })()), "user", [], "any"falsefalsefalse19), "username", [], "any"falsefalsefalse19), "html"nulltrue);
  93.             echo ", <a href=\"";
  94.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  95.             echo "\">Logout</a>
  96.                 </div>
  97.             ";
  98.         }
  99.         // line 22
  100.         echo "
  101.             <section class=\"content\">
  102.                 <h1>Login </h1>
  103.                 ";
  104.         // line 27
  105.         echo "
  106.                 <div class=\"form-group\">
  107.                     <label class=\"form-control-label \" for=\"email\">Email <span class=\"required-red\"> *</span>  </label>
  108.                     <div class=\"form-widget\">
  109.                         <input class=\"form-control\" type=\"text\"  name=\"email\" id=\"inputEmail\" autocomplete=\"email\" required >
  110.                     </div>
  111.                 </div>
  112.                 <div class=\"form-group\">
  113.                     <label class=\"form-control-label \" for=\"password\">Password <span class=\"required-red\"> *</span> </label>
  114.                     <div class=\"form-widget\">
  115.                         <input class=\"form-control\" type=\"password\"  name=\"password\" id=\"inputPassword\" autocomplete=\"current-password\" required >
  116.                         <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  117.         // line 39
  118.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  119.         echo "\">
  120.                     </div>
  121.                 </div>
  122.                 <div class=\"form-group\">
  123.                     <button type=\"submit\" class=\"btn btn-primary btn-lg btn-block\" onclick=\"this.form.submit(); this.disabled=true;\">Sign in</button>
  124.                 </div>
  125.                 <script type=\"text/javascript\">
  126.                     const loginForm = document.querySelector('form');
  127.                     loginForm.addEventListener('submit', function () {
  128.                         loginForm.querySelector('button[type=\"submit\"]').setAttribute('disabled', 'disabled');
  129.                     }, false);
  130.                 </script>
  131.             </section>
  132.         </div>
  133.         ";
  134.         // line 70
  135.         echo "    </form>
  136. ";
  137.         
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  139.         
  140.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  141.     }
  142.     public function getTemplateName()
  143.     {
  144.         return "security/login.html.twig";
  145.     }
  146.     public function isTraitable()
  147.     {
  148.         return false;
  149.     }
  150.     public function getDebugInfo()
  151.     {
  152.         return array (  165 => 70,  141 => 39,  127 => 27,  121 => 22,  113 => 19,  110 => 18,  108 => 17,  104 => 15,  98 => 13,  96 => 12,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
  153.     }
  154.     public function getSourceContext()
  155.     {
  156.         return new Source("{% extends 'security/login_base.html.twig' %}
  157. {% block title %}Log in!{% endblock %}
  158. {% block main %}
  159.     <form method=\"post\">
  160.         <div class=\"login-wrapper\">
  161.             <header class=\"main-header\">
  162.                 <div id=\"header-logo\"></div>
  163.                 {% if error %}
  164.                     <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  165.                 {% endif %}
  166.             </header>
  167.             {% if app.user %}
  168.                 <div class=\"mb-3\">
  169.                     You are logged in as {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">Logout</a>
  170.                 </div>
  171.             {% endif %}
  172.             <section class=\"content\">
  173.                 <h1>Login </h1>
  174.                 {#    <input type=\"hidden\" name=\"_target_path\" value=\"/\" /> #}
  175.                 <div class=\"form-group\">
  176.                     <label class=\"form-control-label \" for=\"email\">Email <span class=\"required-red\"> *</span>  </label>
  177.                     <div class=\"form-widget\">
  178.                         <input class=\"form-control\" type=\"text\"  name=\"email\" id=\"inputEmail\" autocomplete=\"email\" required >
  179.                     </div>
  180.                 </div>
  181.                 <div class=\"form-group\">
  182.                     <label class=\"form-control-label \" for=\"password\">Password <span class=\"required-red\"> *</span> </label>
  183.                     <div class=\"form-widget\">
  184.                         <input class=\"form-control\" type=\"password\"  name=\"password\" id=\"inputPassword\" autocomplete=\"current-password\" required >
  185.                         <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  186.                     </div>
  187.                 </div>
  188.                 <div class=\"form-group\">
  189.                     <button type=\"submit\" class=\"btn btn-primary btn-lg btn-block\" onclick=\"this.form.submit(); this.disabled=true;\">Sign in</button>
  190.                 </div>
  191.                 <script type=\"text/javascript\">
  192.                     const loginForm = document.querySelector('form');
  193.                     loginForm.addEventListener('submit', function () {
  194.                         loginForm.querySelector('button[type=\"submit\"]').setAttribute('disabled', 'disabled');
  195.                     }, false);
  196.                 </script>
  197.             </section>
  198.         </div>
  199.         {#
  200.         Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  201.         See https://symfony.com/doc/current/security/remember_me.html
  202.         <div class=\"checkbox mb-3\">
  203.             <label>
  204.                 <input type=\"checkbox\" name=\"_remember_me\"> Remember me
  205.             </label>
  206.         </div>
  207.         #}
  208.     </form>
  209. {% endblock %}
  210. ""security/login.html.twig""/var/www/vhosts/dev.www.ro/ghidus-middleware.production/templates/security/login.html.twig");
  211.     }
  212. }