var/cache/dev/twig/90/90eb1b73a64185f3fd82938877d1aa49.php line 45

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. use Twig\TemplateWrapper;
  15. /* front/forms/contact.html.twig */
  16. class __TwigTemplate_f775976c7e62480be5bdd32c303182d1 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'breadcrumbs' => [$this, 'block_breadcrumbs'],
  29. 'javascripts' => [$this, 'block_javascripts'],
  30. 'content' => [$this, 'block_content'],
  31. ];
  32. }
  33. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34. {
  35. // line 1
  36. return "front/front.html.twig";
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/forms/contact.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/forms/contact.html.twig"));
  45. $this->parent = $this->load("front/front.html.twig", 1);
  46. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49. }
  50. // line 3
  51. /**
  52. * @return iterable<null|scalar|\Stringable>
  53. */
  54. public function block_breadcrumbs(array $context, array $blocks = []): iterable
  55. {
  56. $macros = $this->macros;
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
  61. // line 4
  62. yield " ";
  63. yield from $this->load("front/layout/breadcrumbs.html.twig", 4)->unwrap()->yield(CoreExtension::merge($context, ["page" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nous contacter")]));
  64. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66. yield from [];
  67. }
  68. // line 7
  69. /**
  70. * @return iterable<null|scalar|\Stringable>
  71. */
  72. public function block_javascripts(array $context, array $blocks = []): iterable
  73. {
  74. $macros = $this->macros;
  75. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  77. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  79. // line 8
  80. yield " <script>
  81. \$.validate({
  82. modules: \x27location, date, security\x27,
  83. lang: \x27";
  84. // line 11
  85. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 11, $this->source); })()), "request", [], "any", false, false, false, 11), "locale", [], "any", false, false, false, 11), "js"), "html", null, true);
  86. yield "\x27
  87. });
  88. </script>
  89. ";
  90. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  91. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  92. yield from [];
  93. }
  94. // line 16
  95. /**
  96. * @return iterable<null|scalar|\Stringable>
  97. */
  98. public function block_content(array $context, array $blocks = []): iterable
  99. {
  100. $macros = $this->macros;
  101. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  103. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  105. // line 17
  106. yield "
  107. <div id=\"store-locator\" class=\"ctn cf\">
  108. <h1>";
  109. // line 20
  110. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Envoyez-nous un e-mail", [], "messages");
  111. yield "</h1>
  112. ";
  113. // line 22
  114. yield from $this->load("front/layout/messages.html.twig", 22)->unwrap()->yield($context);
  115. // line 23
  116. yield "
  117. ";
  118. // line 24
  119. $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.', 24, $this->source); })()), ["front/forms/theme.html.twig"], true);
  120. // line 25
  121. yield " <div class=\"contact-form\">
  122. ";
  123. // line 26
  124. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 26, $this->source); })()), 'form_start');
  125. yield "
  126. <p class=\"notice\">";
  127. // line 27
  128. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.required.notice"), "html", null, true);
  129. yield "</p>
  130. <fieldset>
  131. ";
  132. // line 29
  133. yield $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.', 29, $this->source); })()), "firstname", [], "any", false, false, false, 29), 'row');
  134. yield "
  135. ";
  136. // line 30
  137. yield $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.', 30, $this->source); })()), "lastname", [], "any", false, false, false, 30), 'row');
  138. yield "
  139. ";
  140. // line 31
  141. yield $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.', 31, $this->source); })()), "company", [], "any", false, false, false, 31), 'row');
  142. yield "
  143. ";
  144. // line 32
  145. yield $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.', 32, $this->source); })()), "email", [], "any", false, false, false, 32), 'row');
  146. yield "
  147. ";
  148. // line 33
  149. yield $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.', 33, $this->source); })()), "phone", [], "any", false, false, false, 33), 'row');
  150. yield "
  151. ";
  152. // line 34
  153. yield $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.', 34, $this->source); })()), "zipcode", [], "any", false, false, false, 34), 'row');
  154. yield "
  155. ";
  156. // line 35
  157. yield $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.', 35, $this->source); })()), "country", [], "any", false, false, false, 35), 'row');
  158. yield "
  159. ";
  160. // line 36
  161. yield $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.', 36, $this->source); })()), "type", [], "any", false, false, false, 36), 'row');
  162. yield "
  163. ";
  164. // line 37
  165. yield $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.', 37, $this->source); })()), "message", [], "any", false, false, false, 37), 'row');
  166. yield "
  167. ";
  168. // line 38
  169. yield $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.', 38, $this->source); })()), "captcha", [], "any", false, false, false, 38), 'row');
  170. yield "
  171. ";
  172. // line 39
  173. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 39, $this->source); })()), 'errors');
  174. yield "
  175. ";
  176. // line 40
  177. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 40, $this->source); })()), 'rest');
  178. yield "
  179. </fieldset>
  180. ";
  181. // line 42
  182. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 42, $this->source); })()), 'form_end');
  183. yield "
  184. </div>
  185. <div class=\"footer-spacer\"></div>
  186. </div>
  187. ";
  188. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  189. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  190. yield from [];
  191. }
  192. /**
  193. * @codeCoverageIgnore
  194. */
  195. public function getTemplateName(): string
  196. {
  197. return "front/forms/contact.html.twig";
  198. }
  199. /**
  200. * @codeCoverageIgnore
  201. */
  202. public function isTraitable(): bool
  203. {
  204. return false;
  205. }
  206. /**
  207. * @codeCoverageIgnore
  208. */
  209. public function getDebugInfo(): array
  210. {
  211. return array ( 214 => 42, 209 => 40, 205 => 39, 201 => 38, 197 => 37, 193 => 36, 189 => 35, 185 => 34, 181 => 33, 177 => 32, 173 => 31, 169 => 30, 165 => 29, 160 => 27, 156 => 26, 153 => 25, 151 => 24, 148 => 23, 146 => 22, 141 => 20, 136 => 17, 123 => 16, 108 => 11, 103 => 8, 90 => 7, 78 => 4, 65 => 3, 42 => 1,);
  212. }
  213. public function getSourceContext(): Source
  214. {
  215. return new Source("{% extends \x27front/front.html.twig\x27 %}
  216. {% block breadcrumbs %}
  217. {% include \x27front/layout/breadcrumbs.html.twig\x27 with {\x27page\x27:\x27Nous contacter\x27|trans} %}
  218. {% endblock %}
  219. {% block javascripts %}
  220. <script>
  221. \$.validate({
  222. modules: \x27location, date, security\x27,
  223. lang: \x27{{ app.request.locale | e(\x27js\x27) }}\x27
  224. });
  225. </script>
  226. {% endblock %}
  227. {% block content %}
  228. <div id=\"store-locator\" class=\"ctn cf\">
  229. <h1>{% trans %}Envoyez-nous un e-mail{% endtrans %}</h1>
  230. {% include \x27front/layout/messages.html.twig\x27 %}
  231. {% form_theme form \x27front/forms/theme.html.twig\x27 %}
  232. <div class=\"contact-form\">
  233. {{ form_start(form) }}
  234. <p class=\"notice\">{{ \"form.required.notice\" | trans }}</p>
  235. <fieldset>
  236. {{ form_row(form.firstname) }}
  237. {{ form_row(form.lastname) }}
  238. {{ form_row(form.company) }}
  239. {{ form_row(form.email) }}
  240. {{ form_row(form.phone) }}
  241. {{ form_row(form.zipcode) }}
  242. {{ form_row(form.country) }}
  243. {{ form_row(form.type) }}
  244. {{ form_row(form.message) }}
  245. {{ form_row(form.captcha) }}
  246. {{ form_errors(form) }}
  247. {{ form_rest(form) }}
  248. </fieldset>
  249. {{ form_end(form) }}
  250. </div>
  251. <div class=\"footer-spacer\"></div>
  252. </div>
  253. {% endblock %}", "front/forms/contact.html.twig", "/var/www/dogcat.com/v2-test/templates/front/forms/contact.html.twig");
  254. }
  255. }