<?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;
use Twig\TemplateWrapper;
/* pages/sim/contact.html.twig */
class __TwigTemplate_721d094d6ee46661d355cdcde271a80f extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'head_scripts_requirements' => [$this, 'block_head_scripts_requirements'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layouts/common/default.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "pages/sim/contact.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/sim/contact.html.twig"));
// line 2
$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); })()), ["includes/common/form-theme.html.twig"], true);
// line 4
if ((false == (isset($context["subject"]) || array_key_exists("subject", $context) ? $context["subject"] : (function () { throw new RuntimeError('Variable "subject" does not exist.', 4, $this->source); })()))) {
// line 5
$context["subject"] = "default";
}
// line 7
$context["name"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("form.subject." . (isset($context["subject"]) || array_key_exists("subject", $context) ? $context["subject"] : (function () { throw new RuntimeError('Variable "subject" does not exist.', 7, $this->source); })())));
// line 9
$context["pageAttributes"] = ((array_key_exists("pageAttributes", $context)) ? ((isset($context["pageAttributes"]) || array_key_exists("pageAttributes", $context) ? $context["pageAttributes"] : (function () { throw new RuntimeError('Variable "pageAttributes" does not exist.', 9, $this->source); })())) : (["group" => "common", "section" => "sim"]));
// line 10
$context["page_title"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact.title_new_format", ["name" => (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 10, $this->source); })())]);
// line 1
$this->parent = $this->load("layouts/common/default.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 12
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_head_scripts_requirements(array $context, array $blocks = []): iterable
{
$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", "head_scripts_requirements"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_scripts_requirements"));
// line 13
yield " <!--[if !IE 8]><!--><script src=\"https://www.google.com/recaptcha/api.js\"></script><!--<![endif]-->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 16
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$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 17
yield "
";
// line 18
if (((isset($context["subject"]) || array_key_exists("subject", $context) ? $context["subject"] : (function () { throw new RuntimeError('Variable "subject" does not exist.', 18, $this->source); })()) == "zou")) {
// line 19
yield " <h1 class=\"is-title-contact\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact.title_zou"), "html", null, true);
yield "</h1>
";
} else {
// line 21
yield " <h1 class=\"is-text-center\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact.title_new_format", ["name" => (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 21, $this->source); })())]), "html", null, true);
yield "</h1>
";
}
// line 23
yield "
";
// line 24
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 24, $this->source); })()), "session", [], "any", false, false, false, 24), "flashbag", [], "any", false, false, false, 24), "all", [], "any", false, false, false, 24));
foreach ($context['_seq'] as $context["type"] => $context["message"]) {
// line 25
yield " <p class=\"is-Alert is-Alert_";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), $context["type"]), "html", null, true);
yield " is-Alert_Dismissible\" role=\"alert\">
<button type=\"button\" class=\"is-Close\" data-dismiss=\"alert\" aria-label=\"";
// line 26
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("close"), "html", null, true);
yield "\"><span aria-hidden=\"true\">×</span></button>
<span class=\"is-Alert-Title\"><i class=\"is-Icon is-Icon-sim-";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["type"], "html", null, true);
yield "\"></i>
";
// line 28
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("forms." . $context["type"])), "html", null, true);
yield "
</span>
";
// line 30
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["message"], 0, [], "array", false, false, false, 30), "html", null, true);
yield "
</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['type'], $context['message'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
yield "
<p>";
// line 34
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact.disclaimer"), "html", null, true);
yield "</p>
";
// line 36
if ((($tmp = !(isset($context["postResponse"]) || array_key_exists("postResponse", $context) ? $context["postResponse"] : (function () { throw new RuntimeError('Variable "postResponse" does not exist.', 36, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 37
yield "
";
// line 38
yield $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.', 38, $this->source); })()), 'form_start', ["attr" => ["class" => (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "attr", [], "any", false, true, false, 38), "class", [], "any", true, true, false, 38) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, 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.', 38, $this->source); })()), "attr", [], "any", false, false, false, 38), "class", [], "any", false, false, false, 38)))) ? (((CoreExtension::getAttribute($this->env, $this->source, 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.', 38, $this->source); })()), "attr", [], "any", false, false, false, 38), "class", [], "any", false, false, false, 38) . " is-ContactForm_") . Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), (isset($context["subject"]) || array_key_exists("subject", $context) ? $context["subject"] : (function () { throw new RuntimeError('Variable "subject" does not exist.', 38, $this->source); })())))) : (("is-ContactForm_" . Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), (isset($context["subject"]) || array_key_exists("subject", $context) ? $context["subject"] : (function () { throw new RuntimeError('Variable "subject" does not exist.', 38, $this->source); })()))))), "novalidate" => "novalidate"]]);
yield "
<div class=\"is-Form-Error\">
";
// line 40
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 40, $this->source); })()), 'errors');
yield "
</div>
";
// line 43
yield from $this->load((("pages/sim/include/forms/contact/" . (isset($context["formTemplate"]) || array_key_exists("formTemplate", $context) ? $context["formTemplate"] : (function () { throw new RuntimeError('Variable "formTemplate" does not exist.', 43, $this->source); })())) . ".html.twig"), 43)->unwrap()->yield($context);
// line 44
yield "
";
// line 45
if (((isset($context["subject"]) || array_key_exists("subject", $context) ? $context["subject"] : (function () { throw new RuntimeError('Variable "subject" does not exist.', 45, $this->source); })()) == "zou")) {
// line 46
yield " <div class=\"is-row\">
<div class=\"is-col-xs-12 is-col-sm-12 is-col-md-8 is-col-lg-4\">
<div id=\"is-contact-recaptcha\" class=\"g-recaptcha\"
data-sitekey=\"";
// line 49
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["captcha_public_key"]) || array_key_exists("captcha_public_key", $context) ? $context["captcha_public_key"] : (function () { throw new RuntimeError('Variable "captcha_public_key" does not exist.', 49, $this->source); })()), "html", null, true);
yield "\"></div>
</div>
</div>
<div class=\"is-row\">
<div class=\"is-col-xs-12 is-col-sm-12 is-col-md-12 is-col-lg-offset-8 is-col-lg-4\">
<button id=\"is-Button-Send\" type=\"submit\" disabled=\"disabled\"
class=\"is-Button is-Button-Disabled is-Button_Primary is-full-width\"
onClick=\"this.form.submit(); this.disabled=true; this.innerHTML ='";
// line 56
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("forms.sending"), "html", null, true);
yield "';\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("forms.submit_btn"), "html", null, true);
yield "</button>
</div>
</div>
";
} else {
// line 60
yield " <div class=\"is-row is-Field\">
<div class=\"is-col-md-offset-2 is-col-lg-offset-2 is-col-xs-12 is-col-sm-12 is-col-md-8 is-col-lg-8\">
<div id=\"is-contact-recaptcha\" class=\"g-recaptcha\"
data-sitekey=\"";
// line 63
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["captcha_public_key"]) || array_key_exists("captcha_public_key", $context) ? $context["captcha_public_key"] : (function () { throw new RuntimeError('Variable "captcha_public_key" does not exist.', 63, $this->source); })()), "html", null, true);
yield "\"></div>
</div>
</div>
<button type=\"submit\" class=\"is-Button is-Button_Primary is-full-width\"
onClick=\"this.form.submit(); this.disabled=true; this.innerHTML ='";
// line 67
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("forms.sending"), "html", null, true);
yield "';\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("forms.submit_btn"), "html", null, true);
yield "</button>
";
}
// line 69
yield " ";
yield $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.', 69, $this->source); })()), 'form_end');
yield "
";
}
// line 72
yield "
";
// line 73
if ((($tmp = (isset($context["rgpd_link"]) || array_key_exists("rgpd_link", $context) ? $context["rgpd_link"] : (function () { throw new RuntimeError('Variable "rgpd_link" does not exist.', 73, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 74
yield " <p class=\"is-Rgpd-Policy\">
";
// line 75
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact.rgpd", ["rgpd_link" => (isset($context["rgpd_link"]) || array_key_exists("rgpd_link", $context) ? $context["rgpd_link"] : (function () { throw new RuntimeError('Variable "rgpd_link" does not exist.', 75, $this->source); })())]);
yield "
</p>
";
}
// line 78
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/sim/contact.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 262 => 78, 256 => 75, 253 => 74, 251 => 73, 248 => 72, 241 => 69, 234 => 67, 227 => 63, 222 => 60, 213 => 56, 203 => 49, 198 => 46, 196 => 45, 193 => 44, 191 => 43, 185 => 40, 180 => 38, 177 => 37, 175 => 36, 170 => 34, 167 => 33, 158 => 30, 153 => 28, 149 => 27, 145 => 26, 140 => 25, 136 => 24, 133 => 23, 127 => 21, 121 => 19, 119 => 18, 116 => 17, 103 => 16, 91 => 13, 78 => 12, 67 => 1, 65 => 10, 63 => 9, 61 => 7, 58 => 5, 56 => 4, 54 => 2, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'layouts/common/default.html.twig' %}
{% form_theme form 'includes/common/form-theme.html.twig' %}
{% if false == subject %}
{% set subject = 'default' %}
{% endif %}
{% set name = ('form.subject.' ~ subject) | trans %}
{% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'common', section: 'sim' } %}
{% set page_title = 'contact.title_new_format'|trans({'name': name }) %}
{% block head_scripts_requirements %}
<!--[if !IE 8]><!--><script src=\"https://www.google.com/recaptcha/api.js\"></script><!--<![endif]-->
{% endblock %}
{% block content %}
{% if subject == 'zou' %}
<h1 class=\"is-title-contact\">{{ 'contact.title_zou' | trans }}</h1>
{% else %}
<h1 class=\"is-text-center\">{{ 'contact.title_new_format' | trans({'name': name })}}</h1>
{% endif %}
{% for type, message in app.session.flashbag.all %}
<p class=\"is-Alert is-Alert_{{ type|capitalize }} is-Alert_Dismissible\" role=\"alert\">
<button type=\"button\" class=\"is-Close\" data-dismiss=\"alert\" aria-label=\"{{ 'close' | trans }}\"><span aria-hidden=\"true\">×</span></button>
<span class=\"is-Alert-Title\"><i class=\"is-Icon is-Icon-sim-{{ type }}\"></i>
{{ ('forms.'~type)|trans }}
</span>
{{ message[0] }}
</p>
{% endfor %}
<p>{{ 'contact.disclaimer' | trans }}</p>
{% if not postResponse %}
{{ form_start(form, {'attr': {'class' : ((form.attr.class is defined and form.attr.class is not empty) ? form.attr.class ~ ' is-ContactForm_' ~ subject|capitalize : 'is-ContactForm_' ~ subject|capitalize), 'novalidate': 'novalidate'}}) }}
<div class=\"is-Form-Error\">
{{ form_errors(form) }}
</div>
{% include \"pages/sim/include/forms/contact/\" ~ formTemplate ~ \".html.twig\" %}
{% if subject == 'zou' %}
<div class=\"is-row\">
<div class=\"is-col-xs-12 is-col-sm-12 is-col-md-8 is-col-lg-4\">
<div id=\"is-contact-recaptcha\" class=\"g-recaptcha\"
data-sitekey=\"{{ captcha_public_key }}\"></div>
</div>
</div>
<div class=\"is-row\">
<div class=\"is-col-xs-12 is-col-sm-12 is-col-md-12 is-col-lg-offset-8 is-col-lg-4\">
<button id=\"is-Button-Send\" type=\"submit\" disabled=\"disabled\"
class=\"is-Button is-Button-Disabled is-Button_Primary is-full-width\"
onClick=\"this.form.submit(); this.disabled=true; this.innerHTML ='{{ 'forms.sending'|trans }}';\">{{ 'forms.submit_btn'|trans }}</button>
</div>
</div>
{% else %}
<div class=\"is-row is-Field\">
<div class=\"is-col-md-offset-2 is-col-lg-offset-2 is-col-xs-12 is-col-sm-12 is-col-md-8 is-col-lg-8\">
<div id=\"is-contact-recaptcha\" class=\"g-recaptcha\"
data-sitekey=\"{{ captcha_public_key }}\"></div>
</div>
</div>
<button type=\"submit\" class=\"is-Button is-Button_Primary is-full-width\"
onClick=\"this.form.submit(); this.disabled=true; this.innerHTML ='{{ 'forms.sending'|trans }}';\">{{ 'forms.submit_btn'|trans }}</button>
{% endif %}
{{ form_end(form) }}
{% endif %}
{% if rgpd_link %}
<p class=\"is-Rgpd-Policy\">
{{'contact.rgpd'|trans({\"rgpd_link\": rgpd_link})|raw}}
</p>
{% endif %}
{% endblock %}
", "pages/sim/contact.html.twig", "/var/www/html/templates/pages/sim/contact.html.twig");
}
}