var/cache/dev/twig/50/50215fc681e57e79213e36b2836ce798.php line 34

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\Source;
  13. use Twig\Template;
  14. /* theme/default/component-forms/contact_form_template.html.twig */
  15. class __TwigTemplate_ad13f2b75dffa5bf9511bc7154641d92 extends Template
  16. {
  17. private $source;
  18. private $macros = [];
  19. public function __construct(Environment $env)
  20. {
  21. parent::__construct($env);
  22. $this->source = $this->getSourceContext();
  23. $this->parent = false;
  24. $this->blocks = [
  25. ];
  26. }
  27. protected function doDisplay(array $context, array $blocks = [])
  28. {
  29. $macros = $this->macros;
  30. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "theme/default/component-forms/contact_form_template.html.twig"));
  32. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "theme/default/component-forms/contact_form_template.html.twig"));
  34. // line 1
  35. $macros["forms"] = $this->macros["forms"] = $this->loadTemplate((("theme/" . 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.', 1, $this->source); })()), "request", [], "any", false, false, false, 1), "server", [], "any", false, false, false, 1), "get", ["APP_THEME"], "method", false, false, false, 1)) . "/component-forms/_macro_form.html.twig"), "theme/default/component-forms/contact_form_template.html.twig", 1)->unwrap();
  36. // line 2
  37. yield "
  38. ";
  39. // line 3
  40. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 3, $this->source); })()), "param_contact", [], "any", false, false, false, 3), "actifCoordonnees", [], "any", false, false, false, 3) == 1)) {
  41. // line 4
  42. yield " <div class=\"bloc-items-contact\">
  43. <div class=\"container-fluid content-wrapper\">
  44. <div class=\"row\">
  45. <div class=\"col-lg-6 col-12\">
  46. ";
  47. // line 8
  48. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\FrontEnd\\FeatureController::displayContactsList"));
  49. yield "
  50. </div>
  51. <div class=\"col-lg-6 col-12\">
  52. ";
  53. // line 11
  54. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\FrontEnd\\FeatureController::displayContactHoursPage"));
  55. yield "
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. ";
  61. }
  62. // line 16
  63. yield "
  64. <div class=\"contact_form\">
  65. <div class=\"container-fluid content-wrapper\">
  66. ";
  67. // line 20
  68. if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 20, $this->source); })()), "form", [], "any", false, false, false, 20)) {
  69. // line 21
  70. yield " ";
  71. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 21, $this->source); })()), "form", [], "any", false, false, false, 21), "name", [], "any", false, false, false, 21) != "")) {
  72. // line 22
  73. yield " <div class=\"titre-content-contact\">
  74. <h2 class=\"title-2 text-start\">";
  75. // line 23
  76. yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 23, $this->source); })()), "form", [], "any", false, false, false, 23), "name", [], "any", false, false, false, 23);
  77. yield "</h2>
  78. </div>
  79. ";
  80. }
  81. // line 26
  82. yield "
  83. ";
  84. // line 27
  85. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 27, $this->source); })()), "form", [], "any", false, false, false, 27), "text_name", [], "any", false, false, false, 27) != "")) {
  86. // line 28
  87. yield " <div class=\"text-content-contact\">
  88. <p class=\"text-start\">";
  89. // line 29
  90. yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 29, $this->source); })()), "form", [], "any", false, false, false, 29), "text_name", [], "any", false, false, false, 29);
  91. yield "</p>
  92. </div>
  93. ";
  94. }
  95. // line 32
  96. yield " ";
  97. }
  98. // line 33
  99. yield "
  100. ";
  101. // line 34
  102. $context["espace_client"] = 1;
  103. yield "
  104. <div class=\"row justify-content-center padding-top padding-bottom\">
  105. ";
  106. // line 38
  107. if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 38, $this->source); })()), "form", [], "any", false, false, false, 38)) {
  108. // line 39
  109. yield " <div class=\"col-lg-6\">
  110. \t <form id=\"form-widget-";
  111. // line 40
  112. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\CryptExtension']->encryptValue(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 40, $this->source); })()), "form", [], "any", false, false, false, 40), "id", [], "any", false, false, false, 40)), "html", null, true);
  113. yield "\" class=\"form-widget\" novalidate=\"novalidate\" enctype=\"multipart/form-data\" method=\"post\" action=\"";
  114. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("submit_request");
  115. yield "\" data-status=\"init\">
  116. <div class=\"row\">
  117. ";
  118. // line 42
  119. $context["message"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("validation_form", [], "variable");
  120. // line 43
  121. yield " ";
  122. $context["dataForm"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 43, $this->source); })()), "form", [], "any", false, false, false, 43), "data", [], "any", false, false, false, 43), "page-1", [], "array", false, false, false, 43);
  123. // line 44
  124. yield " ";
  125. $context['_parent'] = $context;
  126. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["dataForm"]) || array_key_exists("dataForm", $context) ? $context["dataForm"] : (function () { throw new RuntimeError('Variable "dataForm" does not exist.', 44, $this->source); })()));
  127. foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  128. // line 45
  129. yield " ";
  130. $context["label"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "label", [], "any", true, true, false, 45)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 45), null)) : (null));
  131. // line 46
  132. yield " ";
  133. $context["type"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "type", [], "any", true, true, false, 46)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 46), null)) : (null));
  134. // line 47
  135. yield " ";
  136. $context["name"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "name", [], "any", true, true, false, 47)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 47), "")) : (""));
  137. // line 48
  138. yield " ";
  139. $context["className"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "className", [], "any", true, true, false, 48)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "className", [], "any", false, false, false, 48), "")) : (""));
  140. // line 49
  141. yield " ";
  142. $context["placeholder"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "placeholder", [], "any", true, true, false, 49)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "placeholder", [], "any", false, false, false, 49), "")) : (""));
  143. // line 50
  144. yield " ";
  145. $context["customClass"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "customClass", [], "any", true, true, false, 50)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "customClass", [], "any", false, false, false, 50), "")) : (""));
  146. // line 51
  147. yield " ";
  148. $context["maxlength"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "maxlength", [], "any", true, true, false, 51)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "maxlength", [], "any", false, false, false, 51), null)) : (null));
  149. // line 52
  150. yield " ";
  151. $context["required"] = (((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "required", [], "any", true, true, false, 52) && (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "required", [], "any", false, false, false, 52) == "true"))) ? ("required") : (""));
  152. // line 53
  153. yield " ";
  154. $context["multiple"] = (((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "multiple", [], "any", true, true, false, 53) && (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "multiple", [], "any", false, false, false, 53) == true))) ? (true) : (false));
  155. // line 54
  156. yield " ";
  157. $context["errorMessage"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", true, true, false, 54)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", false, false, false, 54), (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 54, $this->source); })()))) : ((isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 54, $this->source); })())));
  158. // line 55
  159. yield "
  160. <div class=\"";
  161. // line 56
  162. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["customClass"]) || array_key_exists("customClass", $context) ? $context["customClass"] : (function () { throw new RuntimeError('Variable "customClass" does not exist.', 56, $this->source); })()), "html", null, true);
  163. yield "\">
  164. \t ";
  165. // line 57
  166. if ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 57) == "header")) {
  167. // line 58
  168. yield " ";
  169. yield CoreExtension::callMacro($macros["forms"], "macro_header", [CoreExtension::getAttribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 58), (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 58, $this->source); })())], 58, $context, $this->getSourceContext());
  170. yield "
  171. ";
  172. } elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 59
  173. $context["item"], "type", [], "any", false, false, false, 59) == "paragraph")) {
  174. // line 60
  175. yield " ";
  176. yield CoreExtension::callMacro($macros["forms"], "macro_header", [CoreExtension::getAttribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 60), (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 60, $this->source); })())], 60, $context, $this->getSourceContext());
  177. yield "
  178. ";
  179. } elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 61
  180. $context["item"], "type", [], "any", false, false, false, 61) == "button")) {
  181. // line 62
  182. yield " ";
  183. yield CoreExtension::callMacro($macros["forms"], "macro_button", [(isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 62, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 62), (isset($context["className"]) || array_key_exists("className", $context) ? $context["className"] : (function () { throw new RuntimeError('Variable "className" does not exist.', 62, $this->source); })()), (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 62, $this->source); })())], 62, $context, $this->getSourceContext());
  184. yield "
  185. ";
  186. } elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 63
  187. $context["item"], "type", [], "any", false, false, false, 63) == "select")) {
  188. // line 64
  189. yield " ";
  190. yield CoreExtension::callMacro($macros["forms"], "macro_select", [(isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 64, $this->source); })()), (isset($context["className"]) || array_key_exists("className", $context) ? $context["className"] : (function () { throw new RuntimeError('Variable "className" does not exist.', 64, $this->source); })()), (isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 64, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["item"], "multiple", [], "any", false, false, false, 64), CoreExtension::getAttribute($this->env, $this->source, $context["item"], "values", [], "any", false, false, false, 64), (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 64, $this->source); })()), (isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 64, $this->source); })()), (isset($context["errorMessage"]) || array_key_exists("errorMessage", $context) ? $context["errorMessage"] : (function () { throw new RuntimeError('Variable "errorMessage" does not exist.', 64, $this->source); })())], 64, $context, $this->getSourceContext());
  191. yield "
  192. ";
  193. } elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 65
  194. $context["item"], "type", [], "any", false, false, false, 65) == "textarea")) {
  195. // line 66
  196. yield " ";
  197. yield CoreExtension::callMacro($macros["forms"], "macro_textarea", [(isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 66, $this->source); })()), (isset($context["className"]) || array_key_exists("className", $context) ? $context["className"] : (function () { throw new RuntimeError('Variable "className" does not exist.', 66, $this->source); })()), (isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 66, $this->source); })()), (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 66, $this->source); })()), (isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 66, $this->source); })()), ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "rows", [], "any", true, true, false, 66)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "rows", [], "any", false, false, false, 66), 6)) : (6)), (isset($context["errorMessage"]) || array_key_exists("errorMessage", $context) ? $context["errorMessage"] : (function () { throw new RuntimeError('Variable "errorMessage" does not exist.', 66, $this->source); })())], 66, $context, $this->getSourceContext());
  198. yield "
  199. ";
  200. } elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 67
  201. $context["item"], "type", [], "any", false, false, false, 67) == "checkbox-group")) {
  202. // line 68
  203. yield " ";
  204. yield CoreExtension::callMacro($macros["forms"], "macro_checkbox", [(isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 68, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["item"], "values", [], "any", false, false, false, 68), (isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 68, $this->source); })()), (isset($context["errorMessage"]) || array_key_exists("errorMessage", $context) ? $context["errorMessage"] : (function () { throw new RuntimeError('Variable "errorMessage" does not exist.', 68, $this->source); })())], 68, $context, $this->getSourceContext());
  205. yield "
  206. ";
  207. } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, // line 69
  208. $context["item"], "type", [], "any", false, false, false, 69), ["number", "text", "file", "hidden"])) {
  209. // line 70
  210. yield " ";
  211. yield CoreExtension::callMacro($macros["forms"], "macro_input", [(isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 70, $this->source); })()), (isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 70, $this->source); })()), (isset($context["className"]) || array_key_exists("className", $context) ? $context["className"] : (function () { throw new RuntimeError('Variable "className" does not exist.', 70, $this->source); })()), (isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 70, $this->source); })()), (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 70, $this->source); })()), (isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 70, $this->source); })()), (isset($context["maxlength"]) || array_key_exists("maxlength", $context) ? $context["maxlength"] : (function () { throw new RuntimeError('Variable "maxlength" does not exist.', 70, $this->source); })()), (isset($context["errorMessage"]) || array_key_exists("errorMessage", $context) ? $context["errorMessage"] : (function () { throw new RuntimeError('Variable "errorMessage" does not exist.', 70, $this->source); })()), (isset($context["multiple"]) || array_key_exists("multiple", $context) ? $context["multiple"] : (function () { throw new RuntimeError('Variable "multiple" does not exist.', 70, $this->source); })())], 70, $context, $this->getSourceContext());
  212. yield "
  213. ";
  214. } elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 71
  215. $context["item"], "type", [], "any", false, false, false, 71) == "date")) {
  216. // line 72
  217. yield " ";
  218. yield CoreExtension::callMacro($macros["forms"], "macro_inputDate", [(isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 72, $this->source); })()), (isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 72, $this->source); })()), ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "subtype", [], "any", true, true, false, 72)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 72), "date")) : ("date")), (isset($context["className"]) || array_key_exists("className", $context) ? $context["className"] : (function () { throw new RuntimeError('Variable "className" does not exist.', 72, $this->source); })()), (isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 72, $this->source); })()), (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 72, $this->source); })()), (isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 72, $this->source); })()), (isset($context["maxlength"]) || array_key_exists("maxlength", $context) ? $context["maxlength"] : (function () { throw new RuntimeError('Variable "maxlength" does not exist.', 72, $this->source); })()), (isset($context["errorMessage"]) || array_key_exists("errorMessage", $context) ? $context["errorMessage"] : (function () { throw new RuntimeError('Variable "errorMessage" does not exist.', 72, $this->source); })())], 72, $context, $this->getSourceContext());
  219. yield "
  220. ";
  221. }
  222. // line 74
  223. yield " </div>
  224. ";
  225. }
  226. $_parent = $context['_parent'];
  227. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  228. $context = array_intersect_key($context, $_parent) + $_parent;
  229. // line 76
  230. yield "
  231. <input type=\"hidden\" name=\"token_id\" value=\"";
  232. // line 77
  233. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("form_handler"), "html", null, true);
  234. yield "\">
  235. </div>
  236. </form>
  237. </div>
  238. ";
  239. }
  240. // line 82
  241. yield " <div class=\"col-lg-6\">
  242. ";
  243. // line 83
  244. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\FrontEnd\\FeatureController::displayContactMap"));
  245. yield "
  246. </div>
  247. </div>
  248. </div>
  249. </div>";
  250. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  251. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  252. return; yield '';
  253. }
  254. /**
  255. * @codeCoverageIgnore
  256. */
  257. public function getTemplateName()
  258. {
  259. return "theme/default/component-forms/contact_form_template.html.twig";
  260. }
  261. /**
  262. * @codeCoverageIgnore
  263. */
  264. public function isTraitable()
  265. {
  266. return false;
  267. }
  268. /**
  269. * @codeCoverageIgnore
  270. */
  271. public function getDebugInfo()
  272. {
  273. return array ( 256 => 83, 253 => 82, 245 => 77, 242 => 76, 235 => 74, 229 => 72, 227 => 71, 222 => 70, 220 => 69, 215 => 68, 213 => 67, 208 => 66, 206 => 65, 201 => 64, 199 => 63, 194 => 62, 192 => 61, 187 => 60, 185 => 59, 180 => 58, 178 => 57, 174 => 56, 171 => 55, 168 => 54, 165 => 53, 162 => 52, 159 => 51, 156 => 50, 153 => 49, 150 => 48, 147 => 47, 144 => 46, 141 => 45, 136 => 44, 133 => 43, 131 => 42, 124 => 40, 121 => 39, 119 => 38, 112 => 34, 109 => 33, 106 => 32, 100 => 29, 97 => 28, 95 => 27, 92 => 26, 86 => 23, 83 => 22, 80 => 21, 78 => 20, 72 => 16, 63 => 11, 57 => 8, 51 => 4, 49 => 3, 46 => 2, 44 => 1,);
  274. }
  275. public function getSourceContext()
  276. {
  277. return new Source("{% import \"theme/\"~ app.request.server.get('APP_THEME') ~\"/component-forms/_macro_form.html.twig\" as forms %}
  278. {% if bloc.param_contact.actifCoordonnees == 1 %}
  279. <div class=\"bloc-items-contact\">
  280. <div class=\"container-fluid content-wrapper\">
  281. <div class=\"row\">
  282. <div class=\"col-lg-6 col-12\">
  283. {{ render(controller('App\\\\Controller\\\\FrontEnd\\\\FeatureController::displayContactsList')) }}
  284. </div>
  285. <div class=\"col-lg-6 col-12\">
  286. {{ render(controller('App\\\\Controller\\\\FrontEnd\\\\FeatureController::displayContactHoursPage')) }}
  287. </div>
  288. </div>
  289. </div>
  290. </div>
  291. {% endif %}
  292. <div class=\"contact_form\">
  293. <div class=\"container-fluid content-wrapper\">
  294. {% if bloc.form %}
  295. {% if bloc.form.name != '' %}
  296. <div class=\"titre-content-contact\">
  297. <h2 class=\"title-2 text-start\">{{bloc.form.name|raw }}</h2>
  298. </div>
  299. {% endif %}
  300. {% if bloc.form.text_name != '' %}
  301. <div class=\"text-content-contact\">
  302. <p class=\"text-start\">{{bloc.form.text_name|raw}}</p>
  303. </div>
  304. {% endif %}
  305. {% endif %}
  306. {% set espace_client = 1 %}
  307. <div class=\"row justify-content-center padding-top padding-bottom\">
  308. {% if bloc.form %}
  309. <div class=\"col-lg-6\">
  310. \t <form id=\"form-widget-{{bloc.form.id|encrypt}}\" class=\"form-widget\" novalidate=\"novalidate\" enctype=\"multipart/form-data\" method=\"post\" action=\"{{path('submit_request')}}\" data-status=\"init\">
  311. <div class=\"row\">
  312. {% set message = 'validation_form'|trans([],'variable') %}
  313. {% set dataForm = bloc.form.data['page-1'] %}
  314. {% for item in dataForm %}
  315. {% set label = item.label|default(null) %}
  316. {% set type = item.type|default(null) %}
  317. {% set name = item.name|default('') %}
  318. {% set className = item.className|default('') %}
  319. {% set placeholder = item.placeholder|default('') %}
  320. {% set customClass = item.customClass|default('') %}
  321. {% set maxlength = item.maxlength|default(null) %}
  322. {% set required = item.required is defined and item.required == 'true' ? 'required' : '' %}
  323. {% set multiple = item.multiple is defined and item.multiple == true ? true : false %}
  324. {% set errorMessage = item.ErrorMessage|default(message) %}
  325. <div class=\"{{ customClass }}\">
  326. \t {% if item.type == \"header\" %}
  327. {{ forms.header(item.subtype, label) }}
  328. {% elseif item.type == \"paragraph\" %}
  329. {{ forms.header(item.subtype, label) }}
  330. {% elseif item.type == \"button\" %}
  331. {{ forms.button(name,item.subtype,className,label) }}
  332. {% elseif item.type == \"select\" %}
  333. {{ forms.select(name, className,required, item.multiple,item.values,label,placeholder,errorMessage) }}
  334. {% elseif item.type == \"textarea\" %}
  335. {{ forms.textarea(name, className,required, label, placeholder, item.rows|default(6),errorMessage) }}
  336. {% elseif item.type == \"checkbox-group\" %}
  337. {{ forms.checkbox(name, item.values, required,errorMessage) }}
  338. {% elseif item.type in ['number', 'text', 'file','hidden'] %}
  339. {{ forms.input(name, type,className,required,label,placeholder,maxlength,errorMessage,multiple) }}
  340. {% elseif item.type == 'date' %}
  341. {{ forms.inputDate(name,type,item.subtype|default('date'),className,required,label,placeholder,maxlength,errorMessage) }}
  342. {% endif %}
  343. </div>
  344. {% endfor %}
  345. <input type=\"hidden\" name=\"token_id\" value=\"{{ csrf_token('form_handler') }}\">
  346. </div>
  347. </form>
  348. </div>
  349. {% endif %}
  350. <div class=\"col-lg-6\">
  351. {{ render(controller('App\\\\Controller\\\\FrontEnd\\\\FeatureController::displayContactMap')) }}
  352. </div>
  353. </div>
  354. </div>
  355. </div>", "theme/default/component-forms/contact_form_template.html.twig", "/var/www/vhosts/klean.studiojna.fr/httpdocs/templates/theme/default/component-forms/contact_form_template.html.twig");
  356. }
  357. }