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