var/cache/dev/twig/59/59dd22c54c891a84ade1b16eac8ba07a.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. /* @App/division/auth/login.html.twig */
  15. class __TwigTemplate_028a485b17fd30ff8d665c9edaa73f98 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'contentBlock' => [$this'block_contentBlock'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension(SandboxExtension::class);
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "layout/default.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  38.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/division/auth/login.html.twig"));
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/division/auth/login.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/division/auth/login.html.twig"));
  43.         $this->parent $this->loadTemplate("layout/default.html.twig""@App/division/auth/login.html.twig"1);
  44.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 3
  53.     public function block_contentBlock($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  57.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  62.         // line 4
  63.         yield "
  64. <main class=\"loginPage\">
  65.     <div class=\"container my-5 my-lg-5 my-md-5\">
  66.         <div class=\"row\">
  67.             <div class=\"col-lg-4 offset-lg-1\">
  68.                 <div class=\"d-flex flex-column\">
  69.                     <h1 class=\"font-weight-bold mb-4 mb-lg-4 mb-md-4 font-italic\">Login</h1>
  70.                     <p>
  71.                         ";
  72.         // line 13
  73.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("If you have an account with us, please log in."), "html"nulltrue);
  74.         yield "
  75.                     </p>
  76.                     <p>
  77.                         ";
  78.         // line 16
  79.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("If you are not a current customer please"), "html"nulltrue);
  80.         yield "
  81.                         <a href=\"/";
  82.         // line 17
  83.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->getSiteDivision(), "html"nulltrue);
  84.         yield "/register\">Register now.</a>
  85.                     </p>
  86.                         ";
  87.         // line 20
  88.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'20$this->source); })()), 20$this->source), 'form_start', ["attr" => ["novalidate" => "novalidate"]]);
  89.         yield "
  90.                             <div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 ";
  91.         // line 21
  92.         yield (($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($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); })()), "_username", [], "any"falsefalsetrue21), 21$this->source), 'errors')) ? ("input-error") : (""));
  93.         yield "\">
  94.                                 <div class=\"ml-3 ml-lg-3 ml-md-3\">
  95.                                     ";
  96.         // line 23
  97.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'23$this->source); })()), "_username", [], "any"falsefalsetrue23), 23$this->source), 'label');
  98.         yield "
  99.                                 </div>
  100.                                 ";
  101.         // line 26
  102.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'26$this->source); })()), "_username", [], "any"falsefalsetrue26), 26$this->source), 'widget');
  103.         yield "
  104.                                 ";
  105.         // line 27
  106.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'27$this->source); })()), "_username", [], "any"falsefalsetrue27), 27$this->source), 'errors');
  107.         yield "
  108.                             </div>
  109.                             <div class=\"d-flex flex-column mb-4 mb-lg-4 mb-md-4 ";
  110.         // line 29
  111.         yield (($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'29$this->source); })()), "_password", [], "any"falsefalsetrue29), 29$this->source), 'errors')) ? ("input-error") : (""));
  112.         yield "\">
  113.                                 <div class=\"ml-3 ml-lg-3 ml-md-3\">
  114.                                     ";
  115.         // line 31
  116.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'31$this->source); })()), "_password", [], "any"falsefalsetrue31), 31$this->source), 'label');
  117.         yield "
  118.                                 </div>
  119.                                 <div class=\"position-relative\">
  120.                                     ";
  121.         // line 35
  122.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'35$this->source); })()), "_password", [], "any"falsefalsetrue35), 35$this->source), 'widget');
  123.         yield "
  124.                                     <span toggle=\"#_password\" class=\"field-icon toggle-password\">
  125.                                         <img src=\"";
  126.         // line 37
  127.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/images/icons/icon_eye.svg"), "html"nulltrue);
  128.         yield "\" alt=\"ICon eye\" style=\"width: 18px;\">
  129.                                     </span>
  130.                                 </div>
  131.                                 ";
  132.         // line 40
  133.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'40$this->source); })()), "_password", [], "any"falsefalsetrue40), 40$this->source), 'errors');
  134.         yield "
  135.                                 ";
  136.         // line 42
  137.         if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["errorBag"]) || array_key_exists("errorBag"$context) ? $context["errorBag"] : (function () { throw new RuntimeError('Variable "errorBag" does not exist.'42$this->source); })())) > 0)) {
  138.             // line 43
  139.             yield "                                    ";
  140.             $context['_parent'] = $context;
  141.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["errorBag"]) || array_key_exists("errorBag"$context) ? $context["errorBag"] : (function () { throw new RuntimeError('Variable "errorBag" does not exist.'43$this->source); })()));
  142.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  143.                 // line 44
  144.                 yield "
  145.                                         <p class=\"text-error mt-2 mt-lg-2 mt-md-2 mb-0\">";
  146.                 // line 45
  147.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["message"], 0, [], "array"falsefalsetrue45), 45$this->source), "html"nulltrue);
  148.                 yield "</p>
  149.                                     ";
  150.             }
  151.             $_parent $context['_parent'];
  152.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  153.             $context array_intersect_key($context$_parent) + $_parent;
  154.             // line 48
  155.             yield "                                ";
  156.         }
  157.         // line 49
  158.         yield "                            </div>
  159.                             <div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 align-items-start\">
  160.                                 ";
  161.         // line 51
  162.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'51$this->source); })()), "_submit", [], "any"falsefalsetrue51), 51$this->source), 'widget');
  163.         yield "
  164.                             </div>
  165.                         ";
  166.         // line 53
  167.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'53$this->source); })()), 53$this->source), 'form_end');
  168.         yield "
  169.                     <p class=\"mt-4 mt-lg-4 mt-md-4\">";
  170.         // line 57
  171.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forgot password?"), "html"nulltrue);
  172.         yield " <a href=\"/";
  173.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->getSiteDivision(), "html"nulltrue);
  174.         yield "/password-reset-request\">";
  175.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Recover now."), "html"nulltrue);
  176.         yield "</a></p>
  177.                     <p>
  178.                         ";
  179.         // line 59
  180.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Having trouble logging in?"), "html"nulltrue);
  181.         yield " <a href=\"javascript:;\" data-toggle=\"modal\" data-target=\"#modalHelpLogin\">";
  182.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Click here."), "html"nulltrue);
  183.         yield "</a>
  184.                     </p>
  185.                     ";
  186.         // line 62
  187.         yield $this->env->getFunction('pimcore_inc')->getCallable()("/Segments/helpPopup");
  188.         yield "
  189.                 </div>
  190.             </div>
  191.         </div>
  192.     </div>
  193. </main>
  194. ";
  195.         
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  197.         
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  199.         
  200.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  201.         return; yield '';
  202.     }
  203.     /**
  204.      * @codeCoverageIgnore
  205.      */
  206.     public function getTemplateName()
  207.     {
  208.         return "@App/division/auth/login.html.twig";
  209.     }
  210.     /**
  211.      * @codeCoverageIgnore
  212.      */
  213.     public function isTraitable()
  214.     {
  215.         return false;
  216.     }
  217.     /**
  218.      * @codeCoverageIgnore
  219.      */
  220.     public function getDebugInfo()
  221.     {
  222.         return array (  214 => 62,  206 => 59,  197 => 57,  190 => 53,  185 => 51,  181 => 49,  178 => 48,  169 => 45,  166 => 44,  161 => 43,  159 => 42,  154 => 40,  148 => 37,  143 => 35,  136 => 31,  131 => 29,  126 => 27,  122 => 26,  116 => 23,  111 => 21,  107 => 20,  101 => 17,  97 => 16,  91 => 13,  80 => 4,  67 => 3,  38 => 1,);
  223.     }
  224.     public function getSourceContext()
  225.     {
  226.         return new Source("{% extends 'layout/default.html.twig' %}
  227. {% block contentBlock %}
  228. <main class=\"loginPage\">
  229.     <div class=\"container my-5 my-lg-5 my-md-5\">
  230.         <div class=\"row\">
  231.             <div class=\"col-lg-4 offset-lg-1\">
  232.                 <div class=\"d-flex flex-column\">
  233.                     <h1 class=\"font-weight-bold mb-4 mb-lg-4 mb-md-4 font-italic\">Login</h1>
  234.                     <p>
  235.                         {{ 'If you have an account with us, please log in.' | trans }}
  236.                     </p>
  237.                     <p>
  238.                         {{ 'If you are not a current customer please' | trans }}
  239.                         <a href=\"/{{getSiteDivision()}}/register\">Register now.</a>
  240.                     </p>
  241.                         {{ form_start(form,{'attr': {'novalidate': 'novalidate'}}) }}
  242.                             <div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 {{ form_errors(form._username) ? 'input-error' }}\">
  243.                                 <div class=\"ml-3 ml-lg-3 ml-md-3\">
  244.                                     {{ form_label(form._username) }}
  245.                                 </div>
  246.                                 {{ form_widget(form._username) }}
  247.                                 {{ form_errors(form._username) }}
  248.                             </div>
  249.                             <div class=\"d-flex flex-column mb-4 mb-lg-4 mb-md-4 {{ form_errors(form._password) ? 'input-error' }}\">
  250.                                 <div class=\"ml-3 ml-lg-3 ml-md-3\">
  251.                                     {{ form_label(form._password) }}
  252.                                 </div>
  253.                                 <div class=\"position-relative\">
  254.                                     {{ form_widget(form._password) }}
  255.                                     <span toggle=\"#_password\" class=\"field-icon toggle-password\">
  256.                                         <img src=\"{{ asset('/static/images/icons/icon_eye.svg') }}\" alt=\"ICon eye\" style=\"width: 18px;\">
  257.                                     </span>
  258.                                 </div>
  259.                                 {{ form_errors(form._password) }}
  260.                                 {% if errorBag|length > 0 %}
  261.                                     {% for message in errorBag %}
  262.                                         <p class=\"text-error mt-2 mt-lg-2 mt-md-2 mb-0\">{{ message[0] }}</p>
  263.                                     {% endfor %}
  264.                                 {% endif %}
  265.                             </div>
  266.                             <div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 align-items-start\">
  267.                                 {{ form_widget(form._submit) }}
  268.                             </div>
  269.                         {{ form_end(form) }}
  270.                     <p class=\"mt-4 mt-lg-4 mt-md-4\">{{ 'Forgot password?' | trans }} <a href=\"/{{getSiteDivision()}}/password-reset-request\">{{ 'Recover now.' | trans }}</a></p>
  271.                     <p>
  272.                         {{ 'Having trouble logging in?' | trans }} <a href=\"javascript:;\" data-toggle=\"modal\" data-target=\"#modalHelpLogin\">{{ 'Click here.' | trans }}</a>
  273.                     </p>
  274.                     {{ pimcore_inc('/Segments/helpPopup') }}
  275.                 </div>
  276.             </div>
  277.         </div>
  278.     </div>
  279. </main>
  280. {% endblock %}""@App/division/auth/login.html.twig""/var/www/webovi/stoelting/pimcore/templates/division/auth/login.html.twig");
  281.     }
  282.     
  283.     public function checkSecurity()
  284.     {
  285.         static $tags = array("if" => 42"for" => 43);
  286.         static $filters = array("escape" => 13"trans" => 13"length" => 42);
  287.         static $functions = array("getSiteDivision" => 17"form_start" => 20"form_errors" => 21"form_label" => 23"form_widget" => 26"asset" => 37"form_end" => 53"pimcore_inc" => 62);
  288.         try {
  289.             $this->sandbox->checkSecurity(
  290.                 ['if''for'],
  291.                 ['escape''trans''length'],
  292.                 ['getSiteDivision''form_start''form_errors''form_label''form_widget''asset''form_end''pimcore_inc'],
  293.                 $this->source
  294.             );
  295.         } catch (SecurityError $e) {
  296.             $e->setSourceContext($this->source);
  297.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  298.                 $e->setTemplateLine($tags[$e->getTagName()]);
  299.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  300.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  301.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  302.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  303.             }
  304.             throw $e;
  305.         }
  306.     }
  307. }