<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* auth/login.html.twig */
class __TwigTemplate_fdb819e1e4784fdeca000268d0f355594bdaa7443b2e562160abb03617b05cde extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'authHeader' => [$this, 'block_authHeader'],
'authContent' => [$this, 'block_authContent'],
'authFooter' => [$this, 'block_authFooter'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "auth/auth-page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "auth/login.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "auth/login.html.twig"));
// line 3
$macros["button"] = $this->macros["button"] = $this->loadTemplate("macros/button.macro.twig", "auth/login.html.twig", 3)->unwrap();
// line 1
$this->parent = $this->loadTemplate("auth/auth-page.html.twig", "auth/login.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 5
public function block_authHeader($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "authHeader"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "authHeader"));
// line 6
echo " <h1 class=\"text-4xl font-bold uppercase mb-11\">
";
// line 7
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.form.login.headline"), "html", null, true);
echo "
</h1>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
public function block_authContent($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "authContent"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "authContent"));
// line 12
echo " <h2 class=\"mb-6 text-2xl font-bold uppercase\">
";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.form.login.subheadline"), "html", null, true);
echo "
</h2>
";
// line 16
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["flashesSuccess"]) || array_key_exists("flashesSuccess", $context) ? $context["flashesSuccess"] : (function () { throw new RuntimeError('Variable "flashesSuccess" does not exist.', 16, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 17
echo " <div class=\"p-2 my-4 border-2 alert alert-success bg-success-300 border-success-500\">
";
// line 18
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
echo "
";
// line 22
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 22, $this->source); })()), 'form_start', ["attr" => ["data-turbo" => "false"]]);
echo "
";
// line 23
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 23, $this->source); })()), "email", [], "any", false, false, false, 23), 'row');
echo "
";
// line 24
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 24, $this->source); })()), "password", [], "any", false, false, false, 24), 'row');
echo "
<p class=\"mb-6 text-center\">
";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.form.login.forgotPasswordMessage"), "html", null, true);
echo "
<a href=\"";
// line 27
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("auth_forgotpassword");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.form.login.forgotPasswordLink"), "html", null, true);
echo "</a>
</p>
";
// line 29
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 29, $this->source); })()), "flashes", [0 => "error"], "method", false, false, false, 29));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 30
echo " <div class=\"p-2 my-4 border-2 alert alert-error bg-danger-300 border-danger-500\">
";
// line 31
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo "
";
// line 35
echo twig_call_macro($macros["button"], "macro_submit", [$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.form.login.submit"), "primary", ["icon_after" => "arrow-right-tail", "attr" => ["class" => "w-full text-left"]]], 36, $context, $this->getSourceContext());
// line 41
echo "
";
// line 43
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 43, $this->source); })()), 'form_end');
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 46
public function block_authFooter($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "authFooter"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "authFooter"));
// line 47
echo " <p>
";
// line 48
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("auth.form.login.notregistered"), "html", null, true);
echo "
</p>
<div class=\"flex justify-center gap-10 mt-6\">
";
// line 51
echo twig_call_macro($macros["button"], "macro_link", [$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("signup"), "neutral", $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("auth_register"), ["size" => "sm"]], 51, $context, $this->getSourceContext());
echo "
";
// line 52
if (twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 52, $this->source); })()), "property", [0 => "page-faq"], "method", false, false, false, 52)) {
// line 53
echo " ";
echo twig_call_macro($macros["button"], "macro_link", [$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("faq"), "black", twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 53, $this->source); })()), "property", [0 => "page-faq"], "method", false, false, false, 53), ["size" => "sm"]], 53, $context, $this->getSourceContext());
echo "
";
}
// line 55
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "auth/login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 219 => 55, 213 => 53, 211 => 52, 207 => 51, 201 => 48, 198 => 47, 188 => 46, 176 => 43, 172 => 41, 170 => 35, 167 => 34, 158 => 31, 155 => 30, 151 => 29, 144 => 27, 140 => 26, 135 => 24, 131 => 23, 127 => 22, 124 => 21, 115 => 18, 112 => 17, 108 => 16, 102 => 13, 99 => 12, 89 => 11, 76 => 7, 73 => 6, 63 => 5, 52 => 1, 50 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'auth/auth-page.html.twig' %}
{% import 'macros/button.macro.twig' as button %}
{% block authHeader %}
<h1 class=\"text-4xl font-bold uppercase mb-11\">
{{ 'auth.form.login.headline'|trans }}
</h1>
{% endblock %}
{% block authContent %}
<h2 class=\"mb-6 text-2xl font-bold uppercase\">
{{ 'auth.form.login.subheadline'|trans }}
</h2>
{% for message in flashesSuccess %}
<div class=\"p-2 my-4 border-2 alert alert-success bg-success-300 border-success-500\">
{{ message }}
</div>
{% endfor %}
{{ form_start(loginForm, { attr: { 'data-turbo': 'false' } }) }}
{{ form_row(loginForm.email) }}
{{ form_row(loginForm.password) }}
<p class=\"mb-6 text-center\">
{{ 'auth.form.login.forgotPasswordMessage'|trans }}
<a href=\"{{ path('auth_forgotpassword') }}\">{{ 'auth.form.login.forgotPasswordLink'|trans }}</a>
</p>
{% for message in app.flashes('error') %}
<div class=\"p-2 my-4 border-2 alert alert-error bg-danger-300 border-danger-500\">
{{ message }}
</div>
{% endfor %}
{{
button.submit(
'auth.form.login.submit'|trans,
'primary',
{ icon_after: 'arrow-right-tail', attr: { class: 'w-full text-left' } }
)
}}
{{ form_end(loginForm) }}
{% endblock %}
{% block authFooter %}
<p>
{{ 'auth.form.login.notregistered'|trans }}
</p>
<div class=\"flex justify-center gap-10 mt-6\">
{{ button.link('signup'|trans, 'neutral', path('auth_register'), { size: 'sm' }) }}
{% if document.property('page-faq') %}
{{ button.link('faq'|trans, 'black', document.property('page-faq'), { size: 'sm' }) }}
{% endif %}
</div>
{% endblock %}
", "auth/login.html.twig", "/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/auth/login.html.twig");
}
}