var/cache/dev/twig/37/37cf732e44604bbcc5f749513db4af39.php line 38

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. /* account/login.html.twig */
  14. class __TwigTemplate_b54f9cc2fdcd2ffc24bdd9cf95d7547f 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.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "layouts/layout.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""account/login.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""account/login.html.twig"));
  38.         // line 2
  39.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'2$this->source); })()), [=> "bootstrap_4_layout.html.twig"], true);
  40.         // line 1
  41.         $this->parent $this->loadTemplate("layouts/layout.html.twig""account/login.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 5
  49.     public function block_content($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  56.         // line 6
  57.         echo "
  58.     <div class=\"text-center\">
  59.         <div class=\"form-signin mb-5\">
  60.             ";
  61.         // line 12
  62.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'12$this->source); })())) {
  63.             // line 13
  64.             echo "                <div class=\"alert alert-danger\">
  65.                     ";
  66.             // line 14
  67.             echo twig_escape_filter($this->envtwig_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.'14$this->source); })()), "getMessage", [], "method"falsefalsefalse14), "html"nulltrue);
  68.             echo "
  69.                 </div>
  70.             ";
  71.         }
  72.         // line 17
  73.         echo "
  74.             ";
  75.         // line 18
  76.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'18$this->source); })()), 'form_start');
  77.         echo "
  78.                 <h1 class=\"display-3 mb-3 font-weight-normal\">";
  79.         // line 19
  80.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.please-sign-in"), "html"nulltrue);
  81.         echo "</h1>
  82.                 ";
  83.         // line 20
  84.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'20$this->source); })()), "_username", [], "any"falsefalsefalse20), 'widget', ["attr" => ["placeholder" => "Username"]]);
  85.         echo "
  86.                 ";
  87.         // line 21
  88.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'21$this->source); })()), "_password", [], "any"falsefalsefalse21), 'widget', ["attr" => ["placeholder" => "Password"]]);
  89.         echo "
  90.                 <input type=\"hidden\" name=\"_csrf_token\"
  91.                        value=\"";
  92.         // line 24
  93.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  94.         echo "\"
  95.                 >
  96.                 <div class=\"custom-control custom-checkbox mb-3\">
  97.                     <input name=\"_remember_me\" type=\"checkbox\" class=\"custom-control-input\" id=\"rememberMe\">
  98.                     <label class=\"custom-control-label\" for=\"rememberMe\">Remember me</label>
  99.                 </div>
  100.                 ";
  101.         // line 32
  102.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'32$this->source); })()), "_submit", [], "any"falsefalsefalse32), 'row', ["attr" => ["class" => "btn-success btn-lg btn-block mt-4"]]);
  103.         echo "
  104.             ";
  105.         // line 34
  106.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'34$this->source); })()), 'form_end');
  107.         echo "
  108.             <p>";
  109.         // line 36
  110.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("account.forgot-password"), "html"nulltrue);
  111.         echo " <a href=\"";
  112.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account-password-send-recovery");
  113.         echo "\">";
  114.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("account.password-recovery"), "html"nulltrue);
  115.         echo "</a></p>
  116.             <p>";
  117.         // line 37
  118.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.no-account"), "html"nulltrue);
  119.         echo " <a href=\"";
  120.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account-register");
  121.         echo "\">";
  122.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.register-now"), "html"nulltrue);
  123.         echo "</a></p>
  124.             ";
  125.         // line 40
  126.         $this->loadTemplate("account/partial/social_buttons.html.twig""account/login.html.twig"40)->display(twig_array_merge($context, ["connect" => false]));
  127.         // line 41
  128.         echo "
  129.         </div>
  130.     </div>
  131. ";
  132.         
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  134.         
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136.     }
  137.     public function getTemplateName()
  138.     {
  139.         return "account/login.html.twig";
  140.     }
  141.     public function isTraitable()
  142.     {
  143.         return false;
  144.     }
  145.     public function getDebugInfo()
  146.     {
  147.         return array (  152 => 41,  150 => 40,  140 => 37,  132 => 36,  127 => 34,  122 => 32,  111 => 24,  105 => 21,  101 => 20,  97 => 19,  93 => 18,  90 => 17,  84 => 14,  81 => 13,  79 => 12,  71 => 6,  61 => 5,  50 => 1,  48 => 2,  35 => 1,);
  148.     }
  149.     public function getSourceContext()
  150.     {
  151.         return new Source("{% extends 'layouts/layout.html.twig' %}
  152. {% form_theme form 'bootstrap_4_layout.html.twig' %}
  153. {% block content %}
  154.     <div class=\"text-center\">
  155.         <div class=\"form-signin mb-5\">
  156.             {% if error %}
  157.                 <div class=\"alert alert-danger\">
  158.                     {{ error.getMessage() }}
  159.                 </div>
  160.             {% endif %}
  161.             {{ form_start(form) }}
  162.                 <h1 class=\"display-3 mb-3 font-weight-normal\">{{ 'general.please-sign-in' | trans }}</h1>
  163.                 {{ form_widget(form._username, { 'attr': {'placeholder': 'Username'}}) }}
  164.                 {{ form_widget(form._password, { 'attr': {'placeholder': 'Password'}}) }}
  165.                 <input type=\"hidden\" name=\"_csrf_token\"
  166.                        value=\"{{ csrf_token('authenticate') }}\"
  167.                 >
  168.                 <div class=\"custom-control custom-checkbox mb-3\">
  169.                     <input name=\"_remember_me\" type=\"checkbox\" class=\"custom-control-input\" id=\"rememberMe\">
  170.                     <label class=\"custom-control-label\" for=\"rememberMe\">Remember me</label>
  171.                 </div>
  172.                 {{ form_row(form._submit, {'attr': {'class': 'btn-success btn-lg btn-block mt-4'}}) }}
  173.             {{ form_end(form) }}
  174.             <p>{{ 'account.forgot-password' | trans }} <a href=\"{{ path('account-password-send-recovery') }}\">{{ 'account.password-recovery' | trans }}</a></p>
  175.             <p>{{ 'general.no-account' | trans }} <a href=\"{{ path('account-register') }}\">{{ 'general.register-now' | trans }}</a></p>
  176.             {% include 'account/partial/social_buttons.html.twig' with {'connect': false} %}
  177.         </div>
  178.     </div>
  179. {% endblock %}""account/login.html.twig""/usr/local/www/apache24/data/pimcore.3.uniquos.digital/pimcore/templates/account/login.html.twig");
  180.     }
  181. }