var/cache/website/dev/twig/4f/4f5dc8283c0712c89dfe2f85ebd00175.php line 48

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Sandbox\SecurityNotAllowedTestError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. use Twig\TemplateWrapper;
  16. /* pages/form.html.twig */
  17. class __TwigTemplate_0b78330482da08264d4d839bd49aba52 extends Template
  18. {
  19. private Source $source;
  20. /**
  21. * @var array<string, Template>
  22. */
  23. private array $macros = [];
  24. public function __construct(Environment $env)
  25. {
  26. parent::__construct($env);
  27. $this->source = $this->getSourceContext();
  28. $this->blocks = [
  29. 'page_class' => [$this, 'block_page_class'],
  30. 'stylesheets' => [$this, 'block_stylesheets'],
  31. 'header_search' => [$this, 'block_header_search'],
  32. 'header_search_mobile' => [$this, 'block_header_search_mobile'],
  33. 'content' => [$this, 'block_content'],
  34. ];
  35. }
  36. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  37. {
  38. // line 1
  39. return "base.html.twig";
  40. }
  41. protected function doDisplay(array $context, array $blocks = []): iterable
  42. {
  43. $macros = $this->macros;
  44. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/form.html.twig"));
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/form.html.twig"));
  48. // line 3
  49. $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);
  50. // line 5
  51. $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"));
  52. // line 1
  53. $this->parent = $this->load("base.html.twig", 1);
  54. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  55. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  56. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57. }
  58. // line 7
  59. /**
  60. * @return iterable<null|scalar|\Stringable>
  61. */
  62. public function block_page_class(array $context, array $blocks = []): iterable
  63. {
  64. $macros = $this->macros;
  65. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
  67. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
  69. // line 8
  70. yield " ";
  71. 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)) {
  72. // line 9
  73. yield " page ddd step-5
  74. ";
  75. }
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78. yield from [];
  79. }
  80. // line 13
  81. /**
  82. * @return iterable<null|scalar|\Stringable>
  83. */
  84. public function block_stylesheets(array $context, array $blocks = []): iterable
  85. {
  86. $macros = $this->macros;
  87. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  89. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  91. // line 14
  92. yield " ";
  93. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  94. yield "
  95. ";
  96. // line 15
  97. 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)) {
  98. // line 16
  99. yield " ";
  100. yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("ddd_styles");
  101. yield "
  102. ";
  103. }
  104. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  105. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  106. yield from [];
  107. }
  108. // line 20
  109. /**
  110. * @return iterable<null|scalar|\Stringable>
  111. */
  112. public function block_header_search(array $context, array $blocks = []): iterable
  113. {
  114. $macros = $this->macros;
  115. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  116. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search"));
  117. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  118. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search"));
  119. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  120. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  121. yield from [];
  122. }
  123. // line 23
  124. /**
  125. * @return iterable<null|scalar|\Stringable>
  126. */
  127. public function block_header_search_mobile(array $context, array $blocks = []): iterable
  128. {
  129. $macros = $this->macros;
  130. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  131. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search_mobile"));
  132. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  133. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search_mobile"));
  134. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  135. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136. yield from [];
  137. }
  138. // line 26
  139. /**
  140. * @return iterable<null|scalar|\Stringable>
  141. */
  142. public function block_content(array $context, array $blocks = []): iterable
  143. {
  144. $macros = $this->macros;
  145. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  146. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  147. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  148. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  149. // line 27
  150. yield "
  151. ";
  152. // line 28
  153. $context["formBannerId"] = ("form-banner-" . Twig\Extension\CoreExtension::random($this->env->getCharset()));
  154. // line 29
  155. yield "
  156. <div class=\"form-banner\" id=";
  157. // line 30
  158. 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);
  159. yield ">
  160. <div class=\"media\">
  161. ";
  162. // line 32
  163. 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)))) {
  164. // line 33
  165. yield " ";
  166. $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));
  167. // line 34
  168. yield " ";
  169. $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); })()));
  170. // line 35
  171. yield " ";
  172. $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), "")) : (""));
  173. // line 36
  174. yield " ";
  175. $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); })())));
  176. // line 37
  177. yield "
  178. ";
  179. // line 38
  180. 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)) {
  181. // line 39
  182. yield " <video class=\"banner-media\" autoplay muted loop playsinline preload=\"metadata\">
  183. <source src=\"";
  184. // line 40
  185. 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);
  186. yield "\" type=\"";
  187. 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);
  188. yield "\">
  189. ";
  190. // line 41
  191. 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);
  192. yield "
  193. </video>
  194. ";
  195. } else {
  196. // line 44
  197. yield " ";
  198. $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");
  199. // line 45
  200. yield " <img class=\"banner-media\" src=\"";
  201. 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);
  202. yield "\" alt=\"";
  203. 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);
  204. yield "\" />
  205. ";
  206. }
  207. // line 47
  208. yield " ";
  209. }
  210. // line 48
  211. yield " </div>
  212. <div class=\"text\">
  213. <h1>";
  214. // line 51
  215. 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);
  216. yield "</h1>
  217. <div>
  218. ";
  219. // line 53
  220. 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), "")) : (""));
  221. yield "
  222. </div>
  223. </div>
  224. </div>
  225. <div class=\"container\">
  226. ";
  227. // line 58
  228. 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))) {
  229. // line 59
  230. yield " ";
  231. yield from $this->load("pages/_includes/contact/_contact_confirmation.html.twig", 59)->unwrap()->yield($context);
  232. // line 60
  233. yield "
  234. ";
  235. } elseif (( // line 61
  236. (isset($context["formType"]) || array_key_exists("formType", $context) ? $context["formType"] : (function () { throw new RuntimeError('Variable "formType" does not exist.', 61, $this->source); })()) == "contact")) {
  237. // line 62
  238. yield " ";
  239. 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"]]);
  240. yield "
  241. \t\t\t\t\t\t\t\t\t\t\t\t";
  242. // line 63
  243. 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)) {
  244. // line 64
  245. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-error\">
  246. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  247. // line 65
  248. 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');
  249. yield "
  250. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  251. \t\t\t\t\t\t\t\t\t\t\t\t";
  252. }
  253. // line 68
  254. yield " ";
  255. 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]));
  256. // line 69
  257. yield " ";
  258. 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');
  259. yield "
  260. ";
  261. } elseif (( // line 71
  262. (isset($context["formType"]) || array_key_exists("formType", $context) ? $context["formType"] : (function () { throw new RuntimeError('Variable "formType" does not exist.', 71, $this->source); })()) == "newsletter")) {
  263. // line 72
  264. yield " ";
  265. 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"]]);
  266. yield "
  267. <div class=\"form-group\">
  268. ";
  269. // line 74
  270. 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');
  271. yield "
  272. <div class=\"radio-group\">
  273. <div class=\"radio-input\">
  274. ";
  275. // line 77
  276. $context['_parent'] = $context;
  277. $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));
  278. foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
  279. // line 78
  280. yield " <div class=\"form-check\">
  281. <label class=\"form-check-label\">
  282. ";
  283. // line 80
  284. yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["option"], 'widget', ["attr" => ["class" => "form-check-input"]]);
  285. yield "
  286. <span>";
  287. // line 81
  288. 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);
  289. yield "</span>
  290. </label>
  291. </div>
  292. ";
  293. }
  294. $_parent = $context['_parent'];
  295. unset($context['_seq'], $context['_key'], $context['option'], $context['_parent']);
  296. $context = array_intersect_key($context, $_parent);
  297. $context += $_parent;
  298. // line 85
  299. yield " </div>
  300. </div>
  301. ";
  302. // line 87
  303. 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');
  304. yield "
  305. </div>
  306. <div class=\"row\">
  307. <div class=\"form-group col-md-6 col-sm-12\">
  308. ";
  309. // line 92
  310. 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');
  311. yield "
  312. ";
  313. // line 93
  314. 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"]]);
  315. yield "
  316. ";
  317. // line 94
  318. 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');
  319. yield "
  320. </div>
  321. <div class=\"form-group col-md-6 col-sm-12\">
  322. ";
  323. // line 98
  324. 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');
  325. yield "
  326. ";
  327. // line 99
  328. 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"]]);
  329. yield "
  330. ";
  331. // line 100
  332. 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');
  333. yield "
  334. </div>
  335. </div>
  336. <div class=\"row\">
  337. <div class=\"form-group col-md-6 col-sm-12\">
  338. ";
  339. // line 106
  340. 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');
  341. yield "
  342. ";
  343. // line 107
  344. 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"]]);
  345. yield "
  346. ";
  347. // line 108
  348. 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');
  349. yield "
  350. </div>
  351. <div class=\"form-group col-md-6 col-sm-12\">
  352. ";
  353. // line 112
  354. 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');
  355. yield "
  356. ";
  357. // line 113
  358. 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"]]);
  359. yield "
  360. ";
  361. // line 114
  362. 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');
  363. yield "
  364. </div>
  365. </div>
  366. <div class=\"form-group checkbox-group\">
  367. ";
  368. // line 119
  369. 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"]]);
  370. yield "
  371. ";
  372. // line 120
  373. 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');
  374. yield "
  375. ";
  376. // line 121
  377. 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');
  378. yield "
  379. </div>
  380. <div class=\"form-actions\">
  381. <button type=\"submit\" class=\"btn style1 reverse_color\">";
  382. // line 125
  383. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.page.subscribe"), "html", null, true);
  384. yield "</button>
  385. </div>
  386. ";
  387. // line 127
  388. 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');
  389. yield "
  390. ";
  391. } else {
  392. // line 129
  393. yield " ";
  394. 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');
  395. yield "
  396. ";
  397. // line 130
  398. 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');
  399. yield "
  400. <button type=\"submit\" class=\"btn btn-primary\">";
  401. // line 131
  402. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("website.ui.contact.send"), "html", null, true);
  403. yield "</button>
  404. ";
  405. // line 132
  406. 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');
  407. yield "
  408. ";
  409. }
  410. // line 134
  411. yield "
  412. <div class=\"form-footer\">
  413. <div class=\"form-footer-block\">
  414. <div class=\"pictogram\">";
  415. // line 137
  416. yield (string) $this->env->getFunction('getLucidIcon')->getCallable()("map-pin");
  417. yield "</div>
  418. <div class=\"info\">
  419. <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\">
  420. ";
  421. // line 140
  422. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.page.address_html");
  423. yield "
  424. </a>
  425. </div>
  426. </div>
  427. <div class=\"form-footer-block\">
  428. <div class=\"pictogram\">";
  429. // line 145
  430. yield (string) $this->env->getFunction('getLucidIcon')->getCallable()("phone");
  431. yield "</div>
  432. <div class=\"info\">
  433. <div class=\"form-footer-block-title\">";
  434. // line 147
  435. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.page.info_reservations"), "html", null, true);
  436. yield "</div>
  437. <a href=\"tel:";
  438. // line 148
  439. 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);
  440. yield "\">";
  441. 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);
  442. yield "</a>
  443. </div>
  444. </div>
  445. <div class=\"form-footer-block\">
  446. <div class=\"pictogram\">";
  447. // line 152
  448. yield (string) $this->env->getFunction('getLucidIcon')->getCallable()("clock");
  449. yield "</div>
  450. <div class=\"info\">
  451. <div class=\"form-footer-block-title\">";
  452. // line 154
  453. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.page.opening_hours"), "html", null, true);
  454. yield "</div>
  455. <ul>
  456. <li>";
  457. // line 156
  458. 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);
  459. yield "</li>
  460. </ul>
  461. </div>
  462. </div>
  463. </div>
  464. </div>
  465. <style>
  466. #";
  467. // line 166
  468. 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);
  469. yield "{
  470. --form-text-banner-color: ";
  471. // line 167
  472. 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);
  473. yield ";
  474. --form-text-banner-bg-color: ";
  475. // line 168
  476. 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);
  477. yield ";
  478. }
  479. </style>
  480. ";
  481. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  482. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  483. yield from [];
  484. }
  485. /**
  486. * @codeCoverageIgnore
  487. */
  488. public function getTemplateName(): string
  489. {
  490. return "pages/form.html.twig";
  491. }
  492. /**
  493. * @codeCoverageIgnore
  494. */
  495. public function isTraitable(): bool
  496. {
  497. return false;
  498. }
  499. /**
  500. * @codeCoverageIgnore
  501. */
  502. public function getDebugInfo(): array
  503. {
  504. 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,);
  505. }
  506. public function getSourceContext(): Source
  507. {
  508. return new Source("{% extends \x27base.html.twig\x27 %}
  509. {% form_theme form \x27form_theme.html.twig\x27 %}
  510. {% set showContactConfirmation = formType == \x27contact\x27 and app.request.query.get(\x27contactConfirmation\x27) == \x271\x27 %}
  511. {% block page_class %}
  512. {% if showContactConfirmation %}
  513. page ddd step-5
  514. {% endif %}
  515. {% endblock %}
  516. {% block stylesheets %}
  517. {{ parent() }}
  518. {% if showContactConfirmation %}
  519. {{ encore_entry_link_tags(\x27ddd_styles\x27) }}
  520. {% endif %}
  521. {% endblock %}
  522. {% block header_search %}
  523. {% endblock %}
  524. {% block header_search_mobile %}
  525. {% endblock %}
  526. {% block content %}
  527. {% set formBannerId = \x27form-banner-\x27 ~ random() %}
  528. <div class=\"form-banner\" id={{ formBannerId }}>
  529. <div class=\"media\">
  530. {% if content.formBanner is defined and content.formBanner is not null %}
  531. {% set media = sulu_resolve_media(content.formBanner.id, app.request.locale) %}
  532. {% set mediaUrl = sulu_media_original_url(media) %}
  533. {% set mediaMimeType = media.mimeType|default(\x27\x27) %}
  534. {% set isVideo = mediaMimeType starts with \x27video/\x27 or mediaUrl matches \x27/\\.(mp4|webm|ogg)(\\\\?.*)?\$/i\x27 %}
  535. {% if isVideo %}
  536. <video class=\"banner-media\" autoplay muted loop playsinline preload=\"metadata\">
  537. <source src=\"{{ mediaUrl }}\" type=\"{{ mediaMimeType }}\">
  538. {{ \x27carousel.destination.video_not_supported\x27|trans }}
  539. </video>
  540. {% else %}
  541. {% set imageUrl = sulu_media_url(media, \x271200x\x27) %}
  542. <img class=\"banner-media\" src=\"{{ imageUrl }}\" alt=\"{{ media.title|default(\x27\x27) }}\" />
  543. {% endif %}
  544. {% endif %}
  545. </div>
  546. <div class=\"text\">
  547. <h1>{{ content.formTitle| default(\x27form.page.title_fallback\x27|trans) }}</h1>
  548. <div>
  549. {{ content.formText|default(\x27\x27)|raw }}
  550. </div>
  551. </div>
  552. </div>
  553. <div class=\"container\">
  554. {% if formType == \x27contact\x27 and showContactConfirmation %}
  555. {% include \x27pages/_includes/contact/_contact_confirmation.html.twig\x27 %}
  556. {% elseif formType == \x27contact\x27 %}
  557. {{ form_start(form, {\x27attr\x27: {\x27class\x27: \x27contact-form\x27, \x27id\x27: \x27page-contact-form\x27}}) }}
  558. \t\t\t\t\t\t\t\t\t\t\t\t{% if not form.vars.valid %}
  559. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-error\">
  560. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_errors(form) }}
  561. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  562. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  563. {% include \x27pages/_includes/form/_form_contact_fields.html.twig\x27 with { form: form, show_submit_button: true } only %}
  564. {{ form_end(form) }}
  565. {% elseif formType == \x27newsletter\x27 %}
  566. {{ form_start(form, {\x27attr\x27: {\x27class\x27: \x27newsletter-form\x27}}) }}
  567. <div class=\"form-group\">
  568. {{ form_label(form.civility) }}
  569. <div class=\"radio-group\">
  570. <div class=\"radio-input\">
  571. {% for option in form.civility %}
  572. <div class=\"form-check\">
  573. <label class=\"form-check-label\">
  574. {{ form_widget(option, {\x27attr\x27: {\x27class\x27: \x27form-check-input\x27}}) }}
  575. <span>{{ option.vars.label }}</span>
  576. </label>
  577. </div>
  578. {% endfor %}
  579. </div>
  580. </div>
  581. {{ form_errors(form.civility) }}
  582. </div>
  583. <div class=\"row\">
  584. <div class=\"form-group col-md-6 col-sm-12\">
  585. {{ form_label(form.lastName) }}
  586. {{ form_widget(form.lastName, {\x27attr\x27: {\x27class\x27: \x27form-control\x27}}) }}
  587. {{ form_errors(form.lastName) }}
  588. </div>
  589. <div class=\"form-group col-md-6 col-sm-12\">
  590. {{ form_label(form.firstName) }}
  591. {{ form_widget(form.firstName, {\x27attr\x27: {\x27class\x27: \x27form-control\x27}}) }}
  592. {{ form_errors(form.firstName) }}
  593. </div>
  594. </div>
  595. <div class=\"row\">
  596. <div class=\"form-group col-md-6 col-sm-12\">
  597. {{ form_label(form.email) }}
  598. {{ form_widget(form.email, {\x27attr\x27: {\x27class\x27: \x27form-control\x27}}) }}
  599. {{ form_errors(form.email) }}
  600. </div>
  601. <div class=\"form-group col-md-6 col-sm-12\">
  602. {{ form_label(form.emailConfirmation) }}
  603. {{ form_widget(form.emailConfirmation, {\x27attr\x27: {\x27class\x27: \x27form-control\x27}}) }}
  604. {{ form_errors(form.emailConfirmation) }}
  605. </div>
  606. </div>
  607. <div class=\"form-group checkbox-group\">
  608. {{ form_widget(form.consent, {\x27attr\x27: {\x27class\x27: \x27form-checkbox\x27}}) }}
  609. {{ form_label(form.consent) }}
  610. {{ form_errors(form.consent) }}
  611. </div>
  612. <div class=\"form-actions\">
  613. <button type=\"submit\" class=\"btn style1 reverse_color\">{{ \x27form.page.subscribe\x27|trans }}</button>
  614. </div>
  615. {{ form_end(form) }}
  616. {% else %}
  617. {{ form_start(form) }}
  618. {{ form_widget(form) }}
  619. <button type=\"submit\" class=\"btn btn-primary\">{{ \x27website.ui.contact.send\x27|trans }}</button>
  620. {{ form_end(form) }}
  621. {% endif %}
  622. <div class=\"form-footer\">
  623. <div class=\"form-footer-block\">
  624. <div class=\"pictogram\">{{ getLucidIcon(\x27map-pin\x27) }}</div>
  625. <div class=\"info\">
  626. <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\">
  627. {{ \x27form.page.address_html\x27|trans|raw }}
  628. </a>
  629. </div>
  630. </div>
  631. <div class=\"form-footer-block\">
  632. <div class=\"pictogram\">{{ getLucidIcon(\x27phone\x27) }}</div>
  633. <div class=\"info\">
  634. <div class=\"form-footer-block-title\">{{ \x27form.page.info_reservations\x27|trans }}</div>
  635. <a href=\"tel:{{ \x27phone.default_number\x27|trans({}, \x27general_informations\x27) }}\">{{ \x27phone.default_number\x27|trans({}, \x27general_informations\x27) }}</a>
  636. </div>
  637. </div>
  638. <div class=\"form-footer-block\">
  639. <div class=\"pictogram\">{{ getLucidIcon(\x27clock\x27) }}</div>
  640. <div class=\"info\">
  641. <div class=\"form-footer-block-title\">{{ \x27form.page.opening_hours\x27|trans }}</div>
  642. <ul>
  643. <li>{{ \x27opening_hours\x27|trans({}, \x27general_informations\x27)|striptags|capitalize }}</li>
  644. </ul>
  645. </div>
  646. </div>
  647. </div>
  648. </div>
  649. <style>
  650. #{{formBannerId}}{
  651. --form-text-banner-color: {{ content.formTextBannerColor|default(\"#000000\") }};
  652. --form-text-banner-bg-color: {{ (content.formTextBannerBackgroundColor|default(\x27#ffffff\x27)|hex_to_rgba(content.filterBannerOpacity|default(0))) }};
  653. }
  654. </style>
  655. {# wantsCallback + flatpickr + intl-tel (modale / page) : assets/website/js/common/contact-form-extras.js #}
  656. {% endblock %}
  657. ", "pages/form.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/form.html.twig");
  658. }
  659. }