var/cache/dev/twig/27/27ff42b9788249158a50deeb759f27bf.php line 51

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