<?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\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* pages/form.html.twig */
class __TwigTemplate_0b78330482da08264d4d839bd49aba52 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 = [
'page_class' => [$this, 'block_page_class'],
'stylesheets' => [$this, 'block_stylesheets'],
'header_search' => [$this, 'block_header_search'],
'header_search_mobile' => [$this, 'block_header_search_mobile'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.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/form.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/form.html.twig"));
// line 3
$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.', 3, $this->source); })()), ["form_theme.html.twig"], true);
// line 5
$context["showContactConfirmation"] = (((isset($context["formType"]) || array_key_exists("formType", $context) ? $context["formType"] : (function () { throw new RuntimeError('Variable "formType" does not exist.', 5, $this->source); })()) == "contact") && (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.', 5, $this->source); })()), "request", [], "any", false, false, false, 5), "query", [], "any", false, false, false, 5), "get", ["contactConfirmation"], "method", false, false, false, 5) == "1"));
// line 1
$this->parent = $this->load("base.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 7
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_page_class(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", "page_class"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
// line 8
yield " ";
if ((($tmp = (isset($context["showContactConfirmation"]) || array_key_exists("showContactConfirmation", $context) ? $context["showContactConfirmation"] : (function () { throw new RuntimeError('Variable "showContactConfirmation" does not exist.', 8, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 9
yield " page ddd step-5
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 13
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 14
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
";
// line 15
if ((($tmp = (isset($context["showContactConfirmation"]) || array_key_exists("showContactConfirmation", $context) ? $context["showContactConfirmation"] : (function () { throw new RuntimeError('Variable "showContactConfirmation" does not exist.', 15, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 16
yield " ";
yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("ddd_styles");
yield "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 20
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_search(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", "header_search"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 23
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_search_mobile(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", "header_search_mobile"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search_mobile"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 26
/**
* @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 27
yield "
";
// line 28
$context["formBannerId"] = ("form-banner-" . Twig\Extension\CoreExtension::random($this->env->getCharset()));
// line 29
yield "
<div class=\"form-banner\" id=";
// line 30
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["formBannerId"]) || array_key_exists("formBannerId", $context) ? $context["formBannerId"] : (function () { throw new RuntimeError('Variable "formBannerId" does not exist.', 30, $this->source); })()), "html", null, true);
yield ">
<div class=\"media\">
";
// line 32
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "formBanner", [], "any", true, true, false, 32) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 32, $this->source); })()), "formBanner", [], "any", false, false, false, 32)))) {
// line 33
yield " ";
$context["media"] = $this->extensions['Sulu\Bundle\MediaBundle\Twig\MediaTwigExtension']->resolveMediaFunction(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 33, $this->source); })()), "formBanner", [], "any", false, false, false, 33), "id", [], "any", false, false, false, 33), 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.', 33, $this->source); })()), "request", [], "any", false, false, false, 33), "locale", [], "any", false, false, false, 33));
// line 34
yield " ";
$context["mediaUrl"] = $this->extensions['App\Twig\MediaExtension']->getMediaOriginalUrl((isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 34, $this->source); })()));
// line 35
yield " ";
$context["mediaMimeType"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["media"] ?? null), "mimeType", [], "any", true, true, false, 35)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 35, $this->source); })()), "mimeType", [], "any", false, false, false, 35), "")) : (""));
// line 36
yield " ";
$context["isVideo"] = ((is_string($_v0 = (isset($context["mediaMimeType"]) || array_key_exists("mediaMimeType", $context) ? $context["mediaMimeType"] : (function () { throw new RuntimeError('Variable "mediaMimeType" does not exist.', 36, $this->source); })())) && is_string($_v1 = "video/") && str_starts_with($_v0, $_v1)) || CoreExtension::matches("/.(mp4|webm|ogg)(\\?.*)?\$/i", (isset($context["mediaUrl"]) || array_key_exists("mediaUrl", $context) ? $context["mediaUrl"] : (function () { throw new RuntimeError('Variable "mediaUrl" does not exist.', 36, $this->source); })())));
// line 37
yield "
";
// line 38
if ((($tmp = (isset($context["isVideo"]) || array_key_exists("isVideo", $context) ? $context["isVideo"] : (function () { throw new RuntimeError('Variable "isVideo" does not exist.', 38, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 39
yield " <video class=\"banner-media\" autoplay muted loop playsinline preload=\"metadata\">
<source src=\"";
// line 40
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["mediaUrl"]) || array_key_exists("mediaUrl", $context) ? $context["mediaUrl"] : (function () { throw new RuntimeError('Variable "mediaUrl" does not exist.', 40, $this->source); })()), "html", null, true);
yield "\" type=\"";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["mediaMimeType"]) || array_key_exists("mediaMimeType", $context) ? $context["mediaMimeType"] : (function () { throw new RuntimeError('Variable "mediaMimeType" does not exist.', 40, $this->source); })()), "html", null, true);
yield "\">
";
// line 41
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("carousel.destination.video_not_supported"), "html", null, true);
yield "
</video>
";
} else {
// line 44
yield " ";
$context["imageUrl"] = $this->extensions['App\Twig\MediaExtension']->getMediaUrlWithFallback((isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 44, $this->source); })()), "1200x");
// line 45
yield " <img class=\"banner-media\" src=\"";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["imageUrl"]) || array_key_exists("imageUrl", $context) ? $context["imageUrl"] : (function () { throw new RuntimeError('Variable "imageUrl" does not exist.', 45, $this->source); })()), "html", null, true);
yield "\" alt=\"";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["media"] ?? null), "title", [], "any", true, true, false, 45)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 45, $this->source); })()), "title", [], "any", false, false, false, 45), "")) : ("")), "html", null, true);
yield "\" />
";
}
// line 47
yield " ";
}
// line 48
yield " </div>
<div class=\"text\">
<h1>";
// line 51
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "formTitle", [], "any", true, true, false, 51)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 51, $this->source); })()), "formTitle", [], "any", false, false, false, 51), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.page.title_fallback"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.page.title_fallback"))), "html", null, true);
yield "</h1>
<div>
";
// line 53
yield (string) ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "formText", [], "any", true, true, false, 53)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 53, $this->source); })()), "formText", [], "any", false, false, false, 53), "")) : (""));
yield "
</div>
</div>
</div>
<div class=\"container\">
";
// line 58
if ((((isset($context["formType"]) || array_key_exists("formType", $context) ? $context["formType"] : (function () { throw new RuntimeError('Variable "formType" does not exist.', 58, $this->source); })()) == "contact") && (($tmp = (isset($context["showContactConfirmation"]) || array_key_exists("showContactConfirmation", $context) ? $context["showContactConfirmation"] : (function () { throw new RuntimeError('Variable "showContactConfirmation" does not exist.', 58, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
// line 59
yield " ";
yield from $this->load("pages/_includes/contact/_contact_confirmation.html.twig", 59)->unwrap()->yield($context);
// line 60
yield "
";
} elseif (( // line 61
(isset($context["formType"]) || array_key_exists("formType", $context) ? $context["formType"] : (function () { throw new RuntimeError('Variable "formType" does not exist.', 61, $this->source); })()) == "contact")) {
// line 62
yield " ";
yield (string) $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.', 62, $this->source); })()), 'form_start', ["attr" => ["class" => "contact-form", "id" => "page-contact-form"]]);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 63
if ( !(($tmp = 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.', 63, $this->source); })()), "vars", [], "any", false, false, false, 63), "valid", [], "any", false, false, false, 63)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 64
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-error\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 65
yield (string) $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.', 65, $this->source); })()), 'errors');
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 68
yield " ";
yield from $this->load("pages/_includes/form/_form_contact_fields.html.twig", 68)->unwrap()->yield(CoreExtension::toArray(["form" => (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 68, $this->source); })()), "show_submit_button" => true]));
// line 69
yield " ";
yield (string) $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 "
";
} elseif (( // line 71
(isset($context["formType"]) || array_key_exists("formType", $context) ? $context["formType"] : (function () { throw new RuntimeError('Variable "formType" does not exist.', 71, $this->source); })()) == "newsletter")) {
// line 72
yield " ";
yield (string) $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.', 72, $this->source); })()), 'form_start', ["attr" => ["class" => "newsletter-form"]]);
yield "
<div class=\"form-group\">
";
// line 74
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 74, $this->source); })()), "civility", [], "any", false, false, false, 74), 'label');
yield "
<div class=\"radio-group\">
<div class=\"radio-input\">
";
// line 77
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(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.', 77, $this->source); })()), "civility", [], "any", false, false, false, 77));
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
// line 78
yield " <div class=\"form-check\">
<label class=\"form-check-label\">
";
// line 80
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["option"], 'widget', ["attr" => ["class" => "form-check-input"]]);
yield "
<span>";
// line 81
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["option"], "vars", [], "any", false, false, false, 81), "label", [], "any", false, false, false, 81), "html", null, true);
yield "</span>
</label>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['option'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 85
yield " </div>
</div>
";
// line 87
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 87, $this->source); })()), "civility", [], "any", false, false, false, 87), 'errors');
yield "
</div>
<div class=\"row\">
<div class=\"form-group col-md-6 col-sm-12\">
";
// line 92
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 92, $this->source); })()), "lastName", [], "any", false, false, false, 92), 'label');
yield "
";
// line 93
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 93, $this->source); })()), "lastName", [], "any", false, false, false, 93), 'widget', ["attr" => ["class" => "form-control"]]);
yield "
";
// line 94
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 94, $this->source); })()), "lastName", [], "any", false, false, false, 94), 'errors');
yield "
</div>
<div class=\"form-group col-md-6 col-sm-12\">
";
// line 98
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 98, $this->source); })()), "firstName", [], "any", false, false, false, 98), 'label');
yield "
";
// line 99
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 99, $this->source); })()), "firstName", [], "any", false, false, false, 99), 'widget', ["attr" => ["class" => "form-control"]]);
yield "
";
// line 100
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 100, $this->source); })()), "firstName", [], "any", false, false, false, 100), 'errors');
yield "
</div>
</div>
<div class=\"row\">
<div class=\"form-group col-md-6 col-sm-12\">
";
// line 106
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 106, $this->source); })()), "email", [], "any", false, false, false, 106), 'label');
yield "
";
// line 107
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 107, $this->source); })()), "email", [], "any", false, false, false, 107), 'widget', ["attr" => ["class" => "form-control"]]);
yield "
";
// line 108
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 108, $this->source); })()), "email", [], "any", false, false, false, 108), 'errors');
yield "
</div>
<div class=\"form-group col-md-6 col-sm-12\">
";
// line 112
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 112, $this->source); })()), "emailConfirmation", [], "any", false, false, false, 112), 'label');
yield "
";
// line 113
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 113, $this->source); })()), "emailConfirmation", [], "any", false, false, false, 113), 'widget', ["attr" => ["class" => "form-control"]]);
yield "
";
// line 114
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 114, $this->source); })()), "emailConfirmation", [], "any", false, false, false, 114), 'errors');
yield "
</div>
</div>
<div class=\"form-group checkbox-group\">
";
// line 119
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 119, $this->source); })()), "consent", [], "any", false, false, false, 119), 'widget', ["attr" => ["class" => "form-checkbox"]]);
yield "
";
// line 120
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 120, $this->source); })()), "consent", [], "any", false, false, false, 120), 'label');
yield "
";
// line 121
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 121, $this->source); })()), "consent", [], "any", false, false, false, 121), 'errors');
yield "
</div>
<div class=\"form-actions\">
<button type=\"submit\" class=\"btn style1 reverse_color\">";
// line 125
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.page.subscribe"), "html", null, true);
yield "</button>
</div>
";
// line 127
yield (string) $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.', 127, $this->source); })()), 'form_end');
yield "
";
} else {
// line 129
yield " ";
yield (string) $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.', 129, $this->source); })()), 'form_start');
yield "
";
// line 130
yield (string) $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.', 130, $this->source); })()), 'widget');
yield "
<button type=\"submit\" class=\"btn btn-primary\">";
// line 131
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("website.ui.contact.send"), "html", null, true);
yield "</button>
";
// line 132
yield (string) $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.', 132, $this->source); })()), 'form_end');
yield "
";
}
// line 134
yield "
<div class=\"form-footer\">
<div class=\"form-footer-block\">
<div class=\"pictogram\">";
// line 137
yield (string) $this->env->getFunction('getLucidIcon')->getCallable()("map-pin");
yield "</div>
<div class=\"info\">
<a href=\"https://www.google.com/maps/place/Croisiland/@45.6441254,5.8680374,16z/data=!3m1!4b1!4m6!3m5!1s0x478b09c944fc6209:0x9fe1b9ddd7358a3f!8m2!3d45.6441218!4d5.8729083!16s%2Fg%2F119w9g765?entry=ttu&g_ep=EgoyMDI1MDEyMi4wIKXMDSoASAFQAw%3D%3D\" target=\"_blanck\">
";
// line 140
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.page.address_html");
yield "
</a>
</div>
</div>
<div class=\"form-footer-block\">
<div class=\"pictogram\">";
// line 145
yield (string) $this->env->getFunction('getLucidIcon')->getCallable()("phone");
yield "</div>
<div class=\"info\">
<div class=\"form-footer-block-title\">";
// line 147
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.page.info_reservations"), "html", null, true);
yield "</div>
<a href=\"tel:";
// line 148
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("phone.default_number", [], "general_informations"), "html", null, true);
yield "\">";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("phone.default_number", [], "general_informations"), "html", null, true);
yield "</a>
</div>
</div>
<div class=\"form-footer-block\">
<div class=\"pictogram\">";
// line 152
yield (string) $this->env->getFunction('getLucidIcon')->getCallable()("clock");
yield "</div>
<div class=\"info\">
<div class=\"form-footer-block-title\">";
// line 154
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.page.opening_hours"), "html", null, true);
yield "</div>
<ul>
<li>";
// line 156
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), Twig\Extension\CoreExtension::striptags($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("opening_hours", [], "general_informations"))), "html", null, true);
yield "</li>
</ul>
</div>
</div>
</div>
</div>
<style>
#";
// line 166
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["formBannerId"]) || array_key_exists("formBannerId", $context) ? $context["formBannerId"] : (function () { throw new RuntimeError('Variable "formBannerId" does not exist.', 166, $this->source); })()), "html", null, true);
yield "{
--form-text-banner-color: ";
// line 167
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "formTextBannerColor", [], "any", true, true, false, 167)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 167, $this->source); })()), "formTextBannerColor", [], "any", false, false, false, 167), "#000000")) : ("#000000")), "html", null, true);
yield ";
--form-text-banner-bg-color: ";
// line 168
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\HexToRgbaConverterTwigExtension']->hexToRgba(((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "formTextBannerBackgroundColor", [], "any", true, true, false, 168)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 168, $this->source); })()), "formTextBannerBackgroundColor", [], "any", false, false, false, 168), "#ffffff")) : ("#ffffff")), ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "filterBannerOpacity", [], "any", true, true, false, 168)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 168, $this->source); })()), "filterBannerOpacity", [], "any", false, false, false, 168), 0)) : (0))), "html", null, true);
yield ";
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/form.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 531 => 168, 527 => 167, 523 => 166, 510 => 156, 505 => 154, 500 => 152, 491 => 148, 487 => 147, 482 => 145, 474 => 140, 468 => 137, 463 => 134, 458 => 132, 454 => 131, 450 => 130, 445 => 129, 440 => 127, 435 => 125, 428 => 121, 424 => 120, 420 => 119, 412 => 114, 408 => 113, 404 => 112, 397 => 108, 393 => 107, 389 => 106, 380 => 100, 376 => 99, 372 => 98, 365 => 94, 361 => 93, 357 => 92, 349 => 87, 345 => 85, 334 => 81, 330 => 80, 326 => 78, 322 => 77, 316 => 74, 310 => 72, 308 => 71, 302 => 69, 299 => 68, 293 => 65, 290 => 64, 288 => 63, 283 => 62, 281 => 61, 278 => 60, 275 => 59, 273 => 58, 265 => 53, 260 => 51, 255 => 48, 252 => 47, 244 => 45, 241 => 44, 235 => 41, 229 => 40, 226 => 39, 224 => 38, 221 => 37, 218 => 36, 215 => 35, 212 => 34, 209 => 33, 207 => 32, 202 => 30, 199 => 29, 197 => 28, 194 => 27, 181 => 26, 159 => 23, 137 => 20, 122 => 16, 120 => 15, 115 => 14, 102 => 13, 89 => 9, 86 => 8, 73 => 7, 62 => 1, 60 => 5, 58 => 3, 45 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27base.html.twig\x27 %}
{% form_theme form \x27form_theme.html.twig\x27 %}
{% set showContactConfirmation = formType == \x27contact\x27 and app.request.query.get(\x27contactConfirmation\x27) == \x271\x27 %}
{% block page_class %}
{% if showContactConfirmation %}
page ddd step-5
{% endif %}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{% if showContactConfirmation %}
{{ encore_entry_link_tags(\x27ddd_styles\x27) }}
{% endif %}
{% endblock %}
{% block header_search %}
{% endblock %}
{% block header_search_mobile %}
{% endblock %}
{% block content %}
{% set formBannerId = \x27form-banner-\x27 ~ random() %}
<div class=\"form-banner\" id={{ formBannerId }}>
<div class=\"media\">
{% if content.formBanner is defined and content.formBanner is not null %}
{% set media = sulu_resolve_media(content.formBanner.id, app.request.locale) %}
{% set mediaUrl = sulu_media_original_url(media) %}
{% set mediaMimeType = media.mimeType|default(\x27\x27) %}
{% set isVideo = mediaMimeType starts with \x27video/\x27 or mediaUrl matches \x27/\\.(mp4|webm|ogg)(\\\\?.*)?\$/i\x27 %}
{% if isVideo %}
<video class=\"banner-media\" autoplay muted loop playsinline preload=\"metadata\">
<source src=\"{{ mediaUrl }}\" type=\"{{ mediaMimeType }}\">
{{ \x27carousel.destination.video_not_supported\x27|trans }}
</video>
{% else %}
{% set imageUrl = sulu_media_url(media, \x271200x\x27) %}
<img class=\"banner-media\" src=\"{{ imageUrl }}\" alt=\"{{ media.title|default(\x27\x27) }}\" />
{% endif %}
{% endif %}
</div>
<div class=\"text\">
<h1>{{ content.formTitle| default(\x27form.page.title_fallback\x27|trans) }}</h1>
<div>
{{ content.formText|default(\x27\x27)|raw }}
</div>
</div>
</div>
<div class=\"container\">
{% if formType == \x27contact\x27 and showContactConfirmation %}
{% include \x27pages/_includes/contact/_contact_confirmation.html.twig\x27 %}
{% elseif formType == \x27contact\x27 %}
{{ form_start(form, {\x27attr\x27: {\x27class\x27: \x27contact-form\x27, \x27id\x27: \x27page-contact-form\x27}}) }}
\t\t\t\t\t\t\t\t\t\t\t\t{% if not form.vars.valid %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-error\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_errors(form) }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
{% include \x27pages/_includes/form/_form_contact_fields.html.twig\x27 with { form: form, show_submit_button: true } only %}
{{ form_end(form) }}
{% elseif formType == \x27newsletter\x27 %}
{{ form_start(form, {\x27attr\x27: {\x27class\x27: \x27newsletter-form\x27}}) }}
<div class=\"form-group\">
{{ form_label(form.civility) }}
<div class=\"radio-group\">
<div class=\"radio-input\">
{% for option in form.civility %}
<div class=\"form-check\">
<label class=\"form-check-label\">
{{ form_widget(option, {\x27attr\x27: {\x27class\x27: \x27form-check-input\x27}}) }}
<span>{{ option.vars.label }}</span>
</label>
</div>
{% endfor %}
</div>
</div>
{{ form_errors(form.civility) }}
</div>
<div class=\"row\">
<div class=\"form-group col-md-6 col-sm-12\">
{{ form_label(form.lastName) }}
{{ form_widget(form.lastName, {\x27attr\x27: {\x27class\x27: \x27form-control\x27}}) }}
{{ form_errors(form.lastName) }}
</div>
<div class=\"form-group col-md-6 col-sm-12\">
{{ form_label(form.firstName) }}
{{ form_widget(form.firstName, {\x27attr\x27: {\x27class\x27: \x27form-control\x27}}) }}
{{ form_errors(form.firstName) }}
</div>
</div>
<div class=\"row\">
<div class=\"form-group col-md-6 col-sm-12\">
{{ form_label(form.email) }}
{{ form_widget(form.email, {\x27attr\x27: {\x27class\x27: \x27form-control\x27}}) }}
{{ form_errors(form.email) }}
</div>
<div class=\"form-group col-md-6 col-sm-12\">
{{ form_label(form.emailConfirmation) }}
{{ form_widget(form.emailConfirmation, {\x27attr\x27: {\x27class\x27: \x27form-control\x27}}) }}
{{ form_errors(form.emailConfirmation) }}
</div>
</div>
<div class=\"form-group checkbox-group\">
{{ form_widget(form.consent, {\x27attr\x27: {\x27class\x27: \x27form-checkbox\x27}}) }}
{{ form_label(form.consent) }}
{{ form_errors(form.consent) }}
</div>
<div class=\"form-actions\">
<button type=\"submit\" class=\"btn style1 reverse_color\">{{ \x27form.page.subscribe\x27|trans }}</button>
</div>
{{ form_end(form) }}
{% else %}
{{ form_start(form) }}
{{ form_widget(form) }}
<button type=\"submit\" class=\"btn btn-primary\">{{ \x27website.ui.contact.send\x27|trans }}</button>
{{ form_end(form) }}
{% endif %}
<div class=\"form-footer\">
<div class=\"form-footer-block\">
<div class=\"pictogram\">{{ getLucidIcon(\x27map-pin\x27) }}</div>
<div class=\"info\">
<a href=\"https://www.google.com/maps/place/Croisiland/@45.6441254,5.8680374,16z/data=!3m1!4b1!4m6!3m5!1s0x478b09c944fc6209:0x9fe1b9ddd7358a3f!8m2!3d45.6441218!4d5.8729083!16s%2Fg%2F119w9g765?entry=ttu&g_ep=EgoyMDI1MDEyMi4wIKXMDSoASAFQAw%3D%3D\" target=\"_blanck\">
{{ \x27form.page.address_html\x27|trans|raw }}
</a>
</div>
</div>
<div class=\"form-footer-block\">
<div class=\"pictogram\">{{ getLucidIcon(\x27phone\x27) }}</div>
<div class=\"info\">
<div class=\"form-footer-block-title\">{{ \x27form.page.info_reservations\x27|trans }}</div>
<a href=\"tel:{{ \x27phone.default_number\x27|trans({}, \x27general_informations\x27) }}\">{{ \x27phone.default_number\x27|trans({}, \x27general_informations\x27) }}</a>
</div>
</div>
<div class=\"form-footer-block\">
<div class=\"pictogram\">{{ getLucidIcon(\x27clock\x27) }}</div>
<div class=\"info\">
<div class=\"form-footer-block-title\">{{ \x27form.page.opening_hours\x27|trans }}</div>
<ul>
<li>{{ \x27opening_hours\x27|trans({}, \x27general_informations\x27)|striptags|capitalize }}</li>
</ul>
</div>
</div>
</div>
</div>
<style>
#{{formBannerId}}{
--form-text-banner-color: {{ content.formTextBannerColor|default(\"#000000\") }};
--form-text-banner-bg-color: {{ (content.formTextBannerBackgroundColor|default(\x27#ffffff\x27)|hex_to_rgba(content.filterBannerOpacity|default(0))) }};
}
</style>
{# wantsCallback + flatpickr + intl-tel (modale / page) : assets/website/js/common/contact-form-extras.js #}
{% endblock %}
", "pages/form.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/form.html.twig");
}
}