<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @App/division/auth/login.html.twig */
class __TwigTemplate_028a485b17fd30ff8d665c9edaa73f98 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'contentBlock' => [$this, 'block_contentBlock'],
];
$this->sandbox = $this->env->getExtension(SandboxExtension::class);
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layout/default.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/division/auth/login.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/division/auth/login.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/division/auth/login.html.twig"));
$this->parent = $this->loadTemplate("layout/default.html.twig", "@App/division/auth/login.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_contentBlock($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
// line 4
yield "
<main class=\"loginPage\">
<div class=\"container my-5 my-lg-5 my-md-5\">
<div class=\"row\">
<div class=\"col-lg-4 offset-lg-1\">
<div class=\"d-flex flex-column\">
<h1 class=\"font-weight-bold mb-4 mb-lg-4 mb-md-4 font-italic\">Login</h1>
<p>
";
// line 13
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", null, true);
yield "
</p>
<p>
";
// line 16
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", null, true);
yield "
<a href=\"/";
// line 17
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->getSiteDivision(), "html", null, true);
yield "/register\">Register now.</a>
</p>
";
// line 20
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"]]);
yield "
<div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 ";
// line 21
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", false, false, true, 21), 21, $this->source), 'errors')) ? ("input-error") : (""));
yield "\">
<div class=\"ml-3 ml-lg-3 ml-md-3\">
";
// line 23
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", false, false, true, 23), 23, $this->source), 'label');
yield "
</div>
";
// line 26
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", false, false, true, 26), 26, $this->source), 'widget');
yield "
";
// line 27
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", false, false, true, 27), 27, $this->source), 'errors');
yield "
</div>
<div class=\"d-flex flex-column mb-4 mb-lg-4 mb-md-4 ";
// line 29
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", false, false, true, 29), 29, $this->source), 'errors')) ? ("input-error") : (""));
yield "\">
<div class=\"ml-3 ml-lg-3 ml-md-3\">
";
// line 31
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", false, false, true, 31), 31, $this->source), 'label');
yield "
</div>
<div class=\"position-relative\">
";
// line 35
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", false, false, true, 35), 35, $this->source), 'widget');
yield "
<span toggle=\"#_password\" class=\"field-icon toggle-password\">
<img src=\"";
// line 37
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/images/icons/icon_eye.svg"), "html", null, true);
yield "\" alt=\"ICon eye\" style=\"width: 18px;\">
</span>
</div>
";
// line 40
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", false, false, true, 40), 40, $this->source), 'errors');
yield "
";
// line 42
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)) {
// line 43
yield " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 44
yield "
<p class=\"text-error mt-2 mt-lg-2 mt-md-2 mb-0\">";
// line 45
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["message"], 0, [], "array", false, false, true, 45), 45, $this->source), "html", null, true);
yield "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 48
yield " ";
}
// line 49
yield " </div>
<div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 align-items-start\">
";
// line 51
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", false, false, true, 51), 51, $this->source), 'widget');
yield "
</div>
";
// line 53
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');
yield "
<p class=\"mt-4 mt-lg-4 mt-md-4\">";
// line 57
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forgot password?"), "html", null, true);
yield " <a href=\"/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->getSiteDivision(), "html", null, true);
yield "/password-reset-request\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Recover now."), "html", null, true);
yield "</a></p>
<p>
";
// line 59
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Having trouble logging in?"), "html", null, true);
yield " <a href=\"javascript:;\" data-toggle=\"modal\" data-target=\"#modalHelpLogin\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Click here."), "html", null, true);
yield "</a>
</p>
";
// line 62
yield $this->env->getFunction('pimcore_inc')->getCallable()("/Segments/helpPopup");
yield "
</div>
</div>
</div>
</div>
</main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@App/division/auth/login.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout/default.html.twig' %}
{% block contentBlock %}
<main class=\"loginPage\">
<div class=\"container my-5 my-lg-5 my-md-5\">
<div class=\"row\">
<div class=\"col-lg-4 offset-lg-1\">
<div class=\"d-flex flex-column\">
<h1 class=\"font-weight-bold mb-4 mb-lg-4 mb-md-4 font-italic\">Login</h1>
<p>
{{ 'If you have an account with us, please log in.' | trans }}
</p>
<p>
{{ 'If you are not a current customer please' | trans }}
<a href=\"/{{getSiteDivision()}}/register\">Register now.</a>
</p>
{{ form_start(form,{'attr': {'novalidate': 'novalidate'}}) }}
<div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 {{ form_errors(form._username) ? 'input-error' }}\">
<div class=\"ml-3 ml-lg-3 ml-md-3\">
{{ form_label(form._username) }}
</div>
{{ form_widget(form._username) }}
{{ form_errors(form._username) }}
</div>
<div class=\"d-flex flex-column mb-4 mb-lg-4 mb-md-4 {{ form_errors(form._password) ? 'input-error' }}\">
<div class=\"ml-3 ml-lg-3 ml-md-3\">
{{ form_label(form._password) }}
</div>
<div class=\"position-relative\">
{{ form_widget(form._password) }}
<span toggle=\"#_password\" class=\"field-icon toggle-password\">
<img src=\"{{ asset('/static/images/icons/icon_eye.svg') }}\" alt=\"ICon eye\" style=\"width: 18px;\">
</span>
</div>
{{ form_errors(form._password) }}
{% if errorBag|length > 0 %}
{% for message in errorBag %}
<p class=\"text-error mt-2 mt-lg-2 mt-md-2 mb-0\">{{ message[0] }}</p>
{% endfor %}
{% endif %}
</div>
<div class=\"d-flex flex-column mb-3 mb-lg-3 mb-md-3 align-items-start\">
{{ form_widget(form._submit) }}
</div>
{{ form_end(form) }}
<p class=\"mt-4 mt-lg-4 mt-md-4\">{{ 'Forgot password?' | trans }} <a href=\"/{{getSiteDivision()}}/password-reset-request\">{{ 'Recover now.' | trans }}</a></p>
<p>
{{ 'Having trouble logging in?' | trans }} <a href=\"javascript:;\" data-toggle=\"modal\" data-target=\"#modalHelpLogin\">{{ 'Click here.' | trans }}</a>
</p>
{{ pimcore_inc('/Segments/helpPopup') }}
</div>
</div>
</div>
</div>
</main>
{% endblock %}", "@App/division/auth/login.html.twig", "/var/www/webovi/stoelting/pimcore/templates/division/auth/login.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 42, "for" => 43);
static $filters = array("escape" => 13, "trans" => 13, "length" => 42);
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);
try {
$this->sandbox->checkSecurity(
['if', 'for'],
['escape', 'trans', 'length'],
['getSiteDivision', 'form_start', 'form_errors', 'form_label', 'form_widget', 'asset', 'form_end', 'pimcore_inc'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}