<?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;
/* security/request.html.twig */
class __TwigTemplate_5727ed1eb7716fde4266c9f8f1a7afd0 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'bodyclass' => [$this, 'block_bodyclass'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "security/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/request.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/request.html.twig"));
$this->parent = $this->loadTemplate("security/layout.html.twig", "security/request.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_bodyclass($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyclass"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyclass"));
yield "security";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 5
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
yield " ";
$context["pageData"] = false;
// line 7
yield " ";
if ($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.request")) {
// line 8
yield " ";
$context["pageData"] = $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.request");
// line 9
yield " ";
}
// line 10
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 10, $this->source); })()), 'form_start');
yield "
<div class=\"";
// line 11
if (((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 11, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "wrapper", [], "any", true, true, false, 11))) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 11, $this->source); })()), "wrapper", [], "any", false, false, false, 11), "html", null, true);
}
yield "\">
<div class=\"col-md-6 col-lg-4 ";
// line 12
if (((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 12, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "container", [], "any", true, true, false, 12))) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 12, $this->source); })()), "container", [], "any", false, false, false, 12), "html", null, true);
}
yield "\">
";
// line 13
if (CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "title", [], "any", true, true, false, 13)) {
// line 14
yield " ";
yield from $this->loadTemplate("@component/atom/title.html.twig", "security/request.html.twig", 14)->unwrap()->yield(CoreExtension::merge($context, ["title" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 14, $this->source); })()), "title", [], "any", false, false, false, 14)]));
// line 15
yield " ";
} else {
// line 16
yield " <h1>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), $this->extensions['App\Twig\TwigExtension']->customTrans("mot de passe oublié ?")), "html", null, true);
yield "</h1>
";
}
// line 18
yield " <div class=\"";
if ((((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 18, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "form", [], "any", true, true, false, 18)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "form", [], "any", false, true, false, 18), "row", [], "any", true, true, false, 18))) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 18, $this->source); })()), "form", [], "any", false, false, false, 18), "row", [], "any", false, false, false, 18), "html", null, true);
} else {
yield "col-12";
}
yield "\">
<div class=\"";
// line 19
if ((((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 19, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "form", [], "any", true, true, false, 19)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "form", [], "any", false, true, false, 19), "label", [], "any", true, true, false, 19))) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 19, $this->source); })()), "form", [], "any", false, false, false, 19), "label", [], "any", false, false, false, 19), "html", null, true);
} else {
yield "col-12";
}
yield "\">
";
// line 20
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 20, $this->source); })()), "email", [], "any", false, false, false, 20), 'label');
yield "
</div>
<div class=\"";
// line 22
if ((((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 22, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "form", [], "any", true, true, false, 22)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "form", [], "any", false, true, false, 22), "input", [], "any", true, true, false, 22))) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 22, $this->source); })()), "form", [], "any", false, false, false, 22), "input", [], "any", false, false, false, 22), "html", null, true);
} else {
yield "col-12";
}
yield "\">
";
// line 23
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 23, $this->source); })()), "email", [], "any", false, false, false, 23), 'widget');
yield "
</div>
</div>
<div class=\"";
// line 26
if ((((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 26, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "button", [], "any", true, true, false, 26)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "button", [], "any", false, true, false, 26), "wrapper", [], "any", true, true, false, 26))) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 26, $this->source); })()), "button", [], "any", false, false, false, 26), "wrapper", [], "any", false, false, false, 26), "html", null, true);
} else {
yield "col-12";
}
yield "\">
<input type=\"submit\"
class=\"";
// line 28
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "button", [], "any", false, true, false, 28), "class", [], "any", true, true, false, 28)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 28, $this->source); })()), "button", [], "any", false, false, false, 28), "class", [], "any", false, false, false, 28), "html", null, true);
} else {
yield "btn btn-secondary text-uppercase";
}
yield "\"
value=\"";
// line 29
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "button", [], "any", false, true, false, 29), "content", [], "any", true, true, false, 29)) {
yield $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 29, $this->source); })()), "button", [], "any", false, false, false, 29), "content", [], "any", false, false, false, 29));
} else {
yield "Réinitialiser le mot de passe";
}
yield "\">
</div>
<div class=\"";
// line 31
if ((((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 31, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "back", [], "any", true, true, false, 31)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "back", [], "any", false, true, false, 31), "wrapper", [], "any", true, true, false, 31))) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 31, $this->source); })()), "back", [], "any", false, false, false, 31), "wrapper", [], "any", false, false, false, 31), "html", null, true);
} else {
yield "col-12";
}
yield "\">
<a href=\"";
// line 32
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
yield "\"
class=\"btn-security-back ";
// line 33
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "back", [], "any", false, true, false, 33), "class", [], "any", true, true, false, 33)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 33, $this->source); })()), "back", [], "any", false, false, false, 33), "class", [], "any", false, false, false, 33), "html", null, true);
} else {
yield "btn btn-default";
}
yield "\">
<i class=\"fa fa-arrow-left\"></i>
";
// line 35
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "back", [], "any", false, true, false, 35), "content", [], "any", true, true, false, 35)) {
yield $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 35, $this->source); })()), "back", [], "any", false, false, false, 35), "content", [], "any", false, false, false, 35));
} else {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), $this->extensions['App\Twig\TwigExtension']->customTrans("retour")), "html", null, true);
}
// line 36
yield " </a>
</div>
</div>
</div>
";
// line 41
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 41, $this->source); })()), 'form_end');
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "security/request.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 231 => 41, 224 => 36, 218 => 35, 209 => 33, 205 => 32, 197 => 31, 188 => 29, 180 => 28, 171 => 26, 165 => 23, 157 => 22, 152 => 20, 144 => 19, 135 => 18, 129 => 16, 126 => 15, 123 => 14, 121 => 13, 114 => 12, 107 => 11, 102 => 10, 99 => 9, 96 => 8, 93 => 7, 90 => 6, 80 => 5, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'security/layout.html.twig' %}
{% block bodyclass %}security{% endblock %}
{% block content %}
{% set pageData = false %}
{% if platform_front('security.request') %}
{% set pageData = platform_front('security.request') %}
{% endif %}
{{ form_start(requestForm) }}
<div class=\"{% if pageData and pageData.wrapper is defined %} {{ pageData.wrapper}}{% endif %}\">
<div class=\"col-md-6 col-lg-4 {% if pageData and pageData.container is defined %} {{ pageData.container}}{% endif %}\">
{% if pageData.title is defined %}
{% include '@component/atom/title.html.twig' with {'title': pageData.title} %}
{% else %}
<h1>{{ 'mot de passe oublié ?'|trans|capitalize }}</h1>
{%endif%}
<div class=\"{% if pageData and pageData.form is defined and pageData.form.row is defined %}{{ pageData.form.row}}{%else%}col-12{% endif %}\">
<div class=\"{% if pageData and pageData.form is defined and pageData.form.label is defined %}{{ pageData.form.label }}{% else %}col-12{% endif %}\">
{{ form_label(requestForm.email) }}
</div>
<div class=\"{% if pageData and pageData.form is defined and pageData.form.input is defined %}{{ pageData.form.input }}{% else %}col-12{% endif %}\">
{{ form_widget(requestForm.email) }}
</div>
</div>
<div class=\"{% if pageData and pageData.button is defined and pageData.button.wrapper is defined %}{{ pageData.button.wrapper }}{% else %}col-12{% endif %}\">
<input type=\"submit\"
class=\"{% if pageData.button.class is defined %}{{ pageData.button.class }}{% else %}btn btn-secondary text-uppercase{% endif %}\"
value=\"{% if pageData.button.content is defined %}{{ pageData.button.content|trans }}{% else %}Réinitialiser le mot de passe{% endif %}\">
</div>
<div class=\"{% if pageData and pageData.back is defined and pageData.back.wrapper is defined %}{{ pageData.back.wrapper }}{% else %}col-12{% endif %}\">
<a href=\"{{ path('app_login') }}\"
class=\"btn-security-back {% if pageData.back.class is defined %}{{ pageData.back.class }}{% else %}btn btn-default{% endif %}\">
<i class=\"fa fa-arrow-left\"></i>
{% if pageData.back.content is defined %}{{ pageData.back.content|trans }}{% else %}{{ 'retour'|trans|capitalize }}{% endif %}
</a>
</div>
</div>
</div>
{{ form_end(requestForm) }}
{% endblock content %}
", "security/request.html.twig", "/var/www/dtv-preprod/current/templates/security/request.html.twig");
}
}