var/cache/dev/twig/70/70daa212998e923698020aac3494cda8.php line 102

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_7d5625cc1d00b1bf7fb878c97527f02f 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 "layouts/login.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  39.         $this->parent $this->loadTemplate("layouts/login.html.twig""security/login.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo "SACO EDUCATION | Log in";
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.     }
  60.     // line 5
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         // line 6
  69.         echo "    <!-- /.login-logo -->
  70.     <div class=\"card\">
  71.         <div class=\"card-body login-card-body\">
  72.             ";
  73.         // line 9
  74.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'9$this->source); })())) {
  75.             // line 10
  76.             echo "                <div class=\"alert alert-danger\">";
  77.             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.'10$this->source); })()), "messageKey", [], "any"falsefalsefalse10), 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.'10$this->source); })()), "messageData", [], "any"falsefalsefalse10), "security"), "html"nulltrue);
  78.             echo "</div>
  79.             ";
  80.         }
  81.         // line 12
  82.         echo "            ";
  83.         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.'12$this->source); })()), "user", [], "any"falsefalsefalse12)) {
  84.             // line 13
  85.             echo "                <div class=\"mb-3\">
  86.                     You are logged in as ";
  87.             // line 14
  88.             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.'14$this->source); })()), "user", [], "any"falsefalsefalse14), "username", [], "any"falsefalsefalse14), "html"nulltrue);
  89.             echo ", <a href=\"";
  90.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  91.             echo "\">Logout</a>
  92.                 </div>
  93.             ";
  94.         }
  95.         // line 17
  96.         echo "
  97.             <p class=\"login-box-msg\">";
  98.         // line 18
  99.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Sign in to start your session", [], "messages");
  100.         echo "</p>
  101.             <form method=\"post\">
  102.                 <div class=\"input-group mb-3\">
  103.                     <input type=\"email\" value=\"";
  104.         // line 22
  105.         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.'22$this->source); })()), "html"nulltrue);
  106.         echo "\" name=\"email\" class=\"form-control\" placeholder=\"";
  107.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Email", [], "messages");
  108.         echo "\" required autofocus>
  109.                     <div class=\"input-group-append\">
  110.                         <div class=\"input-group-text\">
  111.                             <span class=\"fas fa-envelope\"></span>
  112.                         </div>
  113.                     </div>
  114.                 </div>
  115.                 <div class=\"input-group mb-3\">
  116.                     <input type=\"password\" name=\"password\" class=\"form-control\" placeholder=\"";
  117.         // line 30
  118.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Password", [], "messages");
  119.         echo "\" required>
  120.                     <div class=\"input-group-append\">
  121.                         <div class=\"input-group-text\">
  122.                             <span class=\"fas fa-lock\"></span>
  123.                         </div>
  124.                     </div>
  125.                 </div>
  126.                 <div class=\"row\">
  127.                     <div class=\"col-8\">
  128.                         <div class=\"icheck-primary\">
  129.                             <input type=\"checkbox\" id=\"remember\" name=\"_remember_me\">
  130.                             <label for=\"remember\">
  131.                                 ";
  132.         // line 42
  133.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Remember Me", [], "messages");
  134.         // line 43
  135.         echo "                            </label>
  136.                         </div>
  137.                     </div>
  138.                     <!-- /.col -->
  139.                     <div class=\"col-4\">
  140.                         <input type=\"hidden\" name=\"_csrf_token\"
  141.                                value=\"";
  142.         // line 49
  143.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  144.         echo "\"
  145.                         >
  146.                         <button type=\"submit\" class=\"btn btn-primary btn-block\">";
  147.         // line 51
  148.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Sign In", [], "messages");
  149.         echo "</button>
  150.                     </div>
  151.                     <!-- /.col -->
  152.                 </div>
  153.             </form>
  154.             <!-- /.social-auth-links -->
  155.         </div>
  156.         <!-- /.login-card-body -->
  157.     </div>
  158. ";
  159.         
  160.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  161.         
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  163.     }
  164.     public function getTemplateName()
  165.     {
  166.         return "security/login.html.twig";
  167.     }
  168.     public function isTraitable()
  169.     {
  170.         return false;
  171.     }
  172.     public function getDebugInfo()
  173.     {
  174.         return array (  168 => 51,  163 => 49,  155 => 43,  153 => 42,  138 => 30,  125 => 22,  118 => 18,  115 => 17,  107 => 14,  104 => 13,  101 => 12,  95 => 10,  93 => 9,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
  175.     }
  176.     public function getSourceContext()
  177.     {
  178.         return new Source("{% extends 'layouts/login.html.twig' %}
  179. {% block title %}SACO EDUCATION | Log in{% endblock %}
  180. {% block body %}
  181.     <!-- /.login-logo -->
  182.     <div class=\"card\">
  183.         <div class=\"card-body login-card-body\">
  184.             {% if error %}
  185.                 <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  186.             {% endif %}
  187.             {% if app.user %}
  188.                 <div class=\"mb-3\">
  189.                     You are logged in as {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">Logout</a>
  190.                 </div>
  191.             {% endif %}
  192.             <p class=\"login-box-msg\">{% trans %}Sign in to start your session{% endtrans %}</p>
  193.             <form method=\"post\">
  194.                 <div class=\"input-group mb-3\">
  195.                     <input type=\"email\" value=\"{{ last_username }}\" name=\"email\" class=\"form-control\" placeholder=\"{% trans %}Email{% endtrans %}\" required autofocus>
  196.                     <div class=\"input-group-append\">
  197.                         <div class=\"input-group-text\">
  198.                             <span class=\"fas fa-envelope\"></span>
  199.                         </div>
  200.                     </div>
  201.                 </div>
  202.                 <div class=\"input-group mb-3\">
  203.                     <input type=\"password\" name=\"password\" class=\"form-control\" placeholder=\"{% trans %}Password{% endtrans %}\" required>
  204.                     <div class=\"input-group-append\">
  205.                         <div class=\"input-group-text\">
  206.                             <span class=\"fas fa-lock\"></span>
  207.                         </div>
  208.                     </div>
  209.                 </div>
  210.                 <div class=\"row\">
  211.                     <div class=\"col-8\">
  212.                         <div class=\"icheck-primary\">
  213.                             <input type=\"checkbox\" id=\"remember\" name=\"_remember_me\">
  214.                             <label for=\"remember\">
  215.                                 {% trans %}Remember Me{% endtrans %}
  216.                             </label>
  217.                         </div>
  218.                     </div>
  219.                     <!-- /.col -->
  220.                     <div class=\"col-4\">
  221.                         <input type=\"hidden\" name=\"_csrf_token\"
  222.                                value=\"{{ csrf_token('authenticate') }}\"
  223.                         >
  224.                         <button type=\"submit\" class=\"btn btn-primary btn-block\">{% trans %}Sign In{% endtrans %}</button>
  225.                     </div>
  226.                     <!-- /.col -->
  227.                 </div>
  228.             </form>
  229.             <!-- /.social-auth-links -->
  230.         </div>
  231.         <!-- /.login-card-body -->
  232.     </div>
  233. {% endblock %}
  234. ""security/login.html.twig""/home/saco/subdomains/preprod/templates/security/login.html.twig");
  235.     }
  236. }