var/cache/dev/twig/59/592830d669b9ff17ab28608049e85953.php line 54

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* login/index.html.twig */
  16. class __TwigTemplate_131b490a98cc7efbc435664dd472d456 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "base-login.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""login/index.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""login/index.html.twig"));
  44.         $this->parent $this->loadTemplate("base-login.html.twig""login/index.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         yield "Air Peer Support - Login";
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         yield from [];
  68.     }
  69.     // line 5
  70.     /**
  71.      * @return iterable<null|scalar|\Stringable>
  72.      */
  73.     public function block_body(array $context, array $blocks = []): iterable
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  80.         // line 6
  81.         yield "    <div class=\"w-100 \">
  82.         <div class=\"login-left\">
  83.             <!-- Login Tab Content -->
  84.             <div class=\"account-content\">
  85.                 <div class=\"login-header\">
  86.                     <a href=\"#\">
  87.                         <img class=\"login-logo\" src=\"";
  88.         // line 12
  89.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/logo-full.png"), "html"nulltrue);
  90.         yield " \" alt=\"\" >
  91.                     </a>
  92.                 </div>
  93.                 <div class=\"form-col\">
  94.                     <div class=\"login-text-details\">
  95.                         <h3>Log in</h3>
  96.                         <p>Sign in with your nickname and password but your privacy is safe, APS doesn’t record anything about you!</p>
  97.                         ";
  98.         // line 19
  99.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'19$this->source); })())) {
  100.             // line 20
  101.             yield "                            <div>";
  102.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'20$this->source); })()), "messageKey", [], "any"falsefalsefalse20), CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'20$this->source); })()), "messageData", [], "any"falsefalsefalse20), "security"), "html"nulltrue);
  103.             yield "</div>
  104.                         ";
  105.         }
  106.         // line 22
  107.         yield "                    </div>
  108.                     <form action=\"";
  109.         // line 23
  110.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  111.         yield "\" method=\"post\">
  112.                         <div class=\"form-group\">
  113.                             <label>Your Email/Username</label>
  114.                             <input class=\"form-control form-control-lg group_formcontrol\" value=\"";
  115.         // line 26
  116.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'26$this->source); })()), "html"nulltrue);
  117.         yield "\" id=\"username\" name=\"_username\" type=\"string\">
  118.                         </div>
  119.                         <div class=\"form-group\">
  120.                             <label>Password</label>
  121.                             <input class=\"form-control form-control-lg group_formcontrol\" type=\"password\" id=\"password\" name=\"_password\">
  122.                         </div>
  123.                         <div class=\"form-group\">
  124.                             <label class=\"custom-check d-flex\">
  125.                                 <input type=\"checkbox\">Keep me logged in
  126.                                 <span class=\"checkmark\"></span>
  127.                             </label>
  128.                         </div>
  129.                         <div class=\"pt-1\">
  130.                             <div class=\"text-center\">
  131.                                  <button class=\"btn newgroup_create btn-block d-block w-100\" type=\"submit\">Login</button>
  132.                             </div>
  133.                         </div>
  134.                         <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  135.         // line 43
  136.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  137.         yield "\">
  138.                         <input type=\"hidden\" name=\"_target_path\" value=\"";
  139.         // line 44
  140.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_message_index");
  141.         yield "\">
  142.                         <div class=\"text-center mt-3\">
  143.                             <span class=\"forgot-link\">
  144.                                  ";
  145.         // line 48
  146.         yield "                            </span>
  147.                         </div>
  148.                         <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  149.         // line 50
  150.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  151.         yield "\">
  152.                     </form>
  153.                 </div>
  154.                 ";
  155.         // line 58
  156.         yield "            </div>
  157.             <!-- /Login Tab Content -->
  158.         </div>
  159.         <div class=\"login-right\">
  160.         </div>
  161.     </div>
  162. ";
  163.         
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  165.         
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  167.         yield from [];
  168.     }
  169.     /**
  170.      * @codeCoverageIgnore
  171.      */
  172.     public function getTemplateName(): string
  173.     {
  174.         return "login/index.html.twig";
  175.     }
  176.     /**
  177.      * @codeCoverageIgnore
  178.      */
  179.     public function isTraitable(): bool
  180.     {
  181.         return false;
  182.     }
  183.     /**
  184.      * @codeCoverageIgnore
  185.      */
  186.     public function getDebugInfo(): array
  187.     {
  188.         return array (  175 => 58,  169 => 50,  165 => 48,  159 => 44,  155 => 43,  135 => 26,  129 => 23,  126 => 22,  120 => 20,  118 => 19,  108 => 12,  100 => 6,  87 => 5,  64 => 3,  41 => 1,);
  189.     }
  190.     public function getSourceContext(): Source
  191.     {
  192.         return new Source("{% extends 'base-login.html.twig' %}
  193. {% block title %}Air Peer Support - Login{% endblock %}
  194. {% block body %}
  195.     <div class=\"w-100 \">
  196.         <div class=\"login-left\">
  197.             <!-- Login Tab Content -->
  198.             <div class=\"account-content\">
  199.                 <div class=\"login-header\">
  200.                     <a href=\"#\">
  201.                         <img class=\"login-logo\" src=\"{{ asset('assets/img/logo-full.png') }} \" alt=\"\" >
  202.                     </a>
  203.                 </div>
  204.                 <div class=\"form-col\">
  205.                     <div class=\"login-text-details\">
  206.                         <h3>Log in</h3>
  207.                         <p>Sign in with your nickname and password but your privacy is safe, APS doesn’t record anything about you!</p>
  208.                         {% if error %}
  209.                             <div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  210.                         {% endif %}
  211.                     </div>
  212.                     <form action=\"{{ path('app_login') }}\" method=\"post\">
  213.                         <div class=\"form-group\">
  214.                             <label>Your Email/Username</label>
  215.                             <input class=\"form-control form-control-lg group_formcontrol\" value=\"{{ last_username }}\" id=\"username\" name=\"_username\" type=\"string\">
  216.                         </div>
  217.                         <div class=\"form-group\">
  218.                             <label>Password</label>
  219.                             <input class=\"form-control form-control-lg group_formcontrol\" type=\"password\" id=\"password\" name=\"_password\">
  220.                         </div>
  221.                         <div class=\"form-group\">
  222.                             <label class=\"custom-check d-flex\">
  223.                                 <input type=\"checkbox\">Keep me logged in
  224.                                 <span class=\"checkmark\"></span>
  225.                             </label>
  226.                         </div>
  227.                         <div class=\"pt-1\">
  228.                             <div class=\"text-center\">
  229.                                  <button class=\"btn newgroup_create btn-block d-block w-100\" type=\"submit\">Login</button>
  230.                             </div>
  231.                         </div>
  232.                         <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  233.                         <input type=\"hidden\" name=\"_target_path\" value=\"{{ path('app_message_index') }}\">
  234.                         <div class=\"text-center mt-3\">
  235.                             <span class=\"forgot-link\">
  236.                                  {# <a href=\"{{ path('app_forgot_password_request') }}\" class=\"text-end\">Forgot Password ?</a> #}
  237.                             </span>
  238.                         </div>
  239.                         <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  240.                     </form>
  241.                 </div>
  242.                 {#
  243.                 <div class=\"back-btn-col text-center\">
  244.                     <a href=\"index.html\"><span><i class=\"fas fa-caret-left\"></i></span> Back</a>
  245.                 </div>
  246.                 #}
  247.             </div>
  248.             <!-- /Login Tab Content -->
  249.         </div>
  250.         <div class=\"login-right\">
  251.         </div>
  252.     </div>
  253. {% endblock %}
  254. ""login/index.html.twig""/var/www/luxwing/templates/login/index.html.twig");
  255.     }
  256. }