var/cache/dev/twig/78/783954bd2720505c777b471a6e7d37d5.php line 54

Open in your IDE?
  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. /* @BoldrUsers/login.html.twig */
  16. class __TwigTemplate_a2e9ff02afc358b4d20030de8ba4ef63 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.             'body' => [$this'block_body'],
  29.             'form_fields' => [$this'block_form_fields'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "base.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""@BoldrUsers/login.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""@BoldrUsers/login.html.twig"));
  44.         $this->parent $this->loadTemplate("base.html.twig""@BoldrUsers/login.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_body(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""body"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  62.         // line 4
  63.         yield "    <div class=\"boldr-shop-account-page\">
  64.         <span class=\"boldr-shop-account-page-heading\">";
  65.         // line 5
  66.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sign_in", [], "BoldrUsersBundle"), "html"nulltrue);
  67.         yield "</span>
  68.         <div class=\"boldr-shop-account-page-content\">
  69.             <div class=\"boldr-shop-account-section\">
  70.                 <span class=\"boldr-shop-account-section-heading\">";
  71.         // line 8
  72.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sign_in", [], "BoldrUsersBundle"), "html"nulltrue);
  73.         yield "</span>
  74.                 <form method=\"post\">
  75.                     ";
  76.         // line 11
  77.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'11$this->source); })())) {
  78.             // line 12
  79.             yield "                        <div class=\"form-errors\">";
  80.             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.'12$this->source); })()), "messageKey", [], "any"falsefalsefalse12), 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.'12$this->source); })()), "messageData", [], "any"falsefalsefalse12), "security"), "html"nulltrue);
  81.             yield "</div>
  82.                     ";
  83.         }
  84.         // line 14
  85.         yield "
  86.                     ";
  87.         // line 15
  88.         yield from         $this->unwrap()->yieldBlock("form_fields"$context$blocks);
  89.         yield "
  90.                     <p class=\"submit\">
  91.                         <button class=\"boldr-button boldr-button-filled\" type=\"submit\">
  92.                             ";
  93.         // line 19
  94.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sign_in", [], "BoldrUsersBundle"), "html"nulltrue);
  95.         yield "
  96.                         </button>
  97.                     </p>
  98.                 </form>
  99.                 <a href=\"";
  100.         // line 23
  101.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("boldr_users_api_forgot_password");
  102.         yield "\">";
  103.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("forgot_password", [], "BoldrUsersBundle"), "html"nulltrue);
  104.         yield "</a>
  105.                 <a class=\"header-login-form-register\" href=\"";
  106.         // line 24
  107.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_register");
  108.         yield "\" class=\"header-login-form-register\">
  109.                     ";
  110.         // line 25
  111.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no_account_click_here", [], "HelensBakery"), "html"nulltrue);
  112.         yield "
  113.                 </a>
  114.             </div>
  115.         </div>
  116.     </div>
  117. ";
  118.         
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  120.         
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  122.         yield from [];
  123.     }
  124.     // line 33
  125.     /**
  126.      * @return iterable<null|scalar|\Stringable>
  127.      */
  128.     public function block_form_fields(array $context, array $blocks = []): iterable
  129.     {
  130.         $macros $this->macros;
  131.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_fields"));
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  134.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_fields"));
  135.         // line 34
  136.         yield "    <div class=\"form-row\">
  137.         <div class=\"form-label-control\">
  138.             <input type=\"text\" value=\"";
  139.         // line 36
  140.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'36$this->source); })()), "_username", [], "any"falsefalsefalse36), "vars", [], "any"falsefalsefalse36), "data", [], "any"falsefalsefalse36), "html"nulltrue);
  141.         yield "\" name=\"_username\" id=\"inputUsername\" class=\"form-control\" required autofocus>
  142.             <label for=\"inputUsername\">";
  143.         // line 37
  144.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("email_address", [], "BoldrUsersBundle"), "html"nulltrue);
  145.         yield "</label>
  146.         </div>
  147.     </div>
  148.     <div class=\"form-row\">
  149.         <div class=\"form-label-control\">
  150.             <input type=\"password\" name=\"_password\" id=\"inputPassword\" class=\"form-control\" required>
  151.             <label for=\"inputPassword\">";
  152.         // line 44
  153.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password", [], "BoldrUsersBundle"), "html"nulltrue);
  154.         yield "</label>
  155.         </div>
  156.     </div>
  157.     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  158.         // line 48
  159.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  160.         yield "\" />
  161.     <div class=\"form-label-control\">
  162.         <input type=\"checkbox\" id=\"rememberme\" name=\"_remember_me\" />
  163.         <label for=\"rememberme\">";
  164.         // line 52
  165.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("remember_me", [], "BoldrUsersBundle"), "html"nulltrue);
  166.         yield "</label>
  167.     </div>
  168. ";
  169.         
  170.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  171.         
  172.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  173.         yield from [];
  174.     }
  175.     /**
  176.      * @codeCoverageIgnore
  177.      */
  178.     public function getTemplateName(): string
  179.     {
  180.         return "@BoldrUsers/login.html.twig";
  181.     }
  182.     /**
  183.      * @codeCoverageIgnore
  184.      */
  185.     public function isTraitable(): bool
  186.     {
  187.         return false;
  188.     }
  189.     /**
  190.      * @codeCoverageIgnore
  191.      */
  192.     public function getDebugInfo(): array
  193.     {
  194.         return array (  189 => 52,  182 => 48,  175 => 44,  165 => 37,  161 => 36,  157 => 34,  144 => 33,  127 => 25,  123 => 24,  117 => 23,  110 => 19,  103 => 15,  100 => 14,  94 => 12,  92 => 11,  86 => 8,  80 => 5,  77 => 4,  64 => 3,  41 => 1,);
  195.     }
  196.     public function getSourceContext(): Source
  197.     {
  198.         return new Source("{% extends 'base.html.twig' %}
  199. {% block body %}
  200.     <div class=\"boldr-shop-account-page\">
  201.         <span class=\"boldr-shop-account-page-heading\">{{ 'sign_in'|trans({}, 'BoldrUsersBundle') }}</span>
  202.         <div class=\"boldr-shop-account-page-content\">
  203.             <div class=\"boldr-shop-account-section\">
  204.                 <span class=\"boldr-shop-account-section-heading\">{{ 'sign_in'|trans({}, 'BoldrUsersBundle') }}</span>
  205.                 <form method=\"post\">
  206.                     {% if error %}
  207.                         <div class=\"form-errors\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  208.                     {% endif %}
  209.                     {{ block('form_fields') }}
  210.                     <p class=\"submit\">
  211.                         <button class=\"boldr-button boldr-button-filled\" type=\"submit\">
  212.                             {{ 'sign_in'|trans({}, 'BoldrUsersBundle') }}
  213.                         </button>
  214.                     </p>
  215.                 </form>
  216.                 <a href=\"{{ url('boldr_users_api_forgot_password')}}\">{{ 'forgot_password'|trans([], 'BoldrUsersBundle') }}</a>
  217.                 <a class=\"header-login-form-register\" href=\"{{ url('app_register') }}\" class=\"header-login-form-register\">
  218.                     {{ 'no_account_click_here'|trans({}, 'HelensBakery') }}
  219.                 </a>
  220.             </div>
  221.         </div>
  222.     </div>
  223. {% endblock %}
  224. {% block form_fields %}
  225.     <div class=\"form-row\">
  226.         <div class=\"form-label-control\">
  227.             <input type=\"text\" value=\"{{ form._username.vars.data }}\" name=\"_username\" id=\"inputUsername\" class=\"form-control\" required autofocus>
  228.             <label for=\"inputUsername\">{{ 'email_address'|trans({}, 'BoldrUsersBundle') }}</label>
  229.         </div>
  230.     </div>
  231.     <div class=\"form-row\">
  232.         <div class=\"form-label-control\">
  233.             <input type=\"password\" name=\"_password\" id=\"inputPassword\" class=\"form-control\" required>
  234.             <label for=\"inputPassword\">{{ 'password'|trans({}, 'BoldrUsersBundle') }}</label>
  235.         </div>
  236.     </div>
  237.     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\" />
  238.     <div class=\"form-label-control\">
  239.         <input type=\"checkbox\" id=\"rememberme\" name=\"_remember_me\" />
  240.         <label for=\"rememberme\">{{ 'remember_me'|trans({}, 'BoldrUsersBundle') }}</label>
  241.     </div>
  242. {% endblock %}
  243. ""@BoldrUsers/login.html.twig""/home/boldrdev/sites/hb/app/templates/bundles/BoldrUsersBundle/login.html.twig");
  244.     }
  245. }