var/cache/dev/twig/99/9938175086b79c9c5d348700295873be.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\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* front/theme1/form/contact_form.html.twig */
  14. class __TwigTemplate_a9e7f7f4299a511a3df0582b1a125492 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/theme1/form/contact_form.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/theme1/form/contact_form.html.twig"));
  33.         // line 1
  34.         $macros["forms"] = $this->macros["forms"] = $this->loadTemplate((("front/" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($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"falsefalsefalse1), "server", [], "any"falsefalsefalse1), "get", [=> "APP_THEME"], "method"falsefalsefalse1)) . "/form/macro_form.html.twig"), "front/theme1/form/contact_form.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderContacts"));
  40.         echo "
  41. <section class=\"contact_form text-center\">
  42. <div class=\"container-fluid wrapper\">
  43.     <div class=\"row justify-content-center\">     
  44. \t\t";
  45.         // line 8
  46.         if (twig_get_attribute($this->env$this->source, (isset($context["bloc"]) || array_key_exists("bloc"$context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.'8$this->source); })()), "form", [], "any"falsefalsefalse8)) {
  47.             // line 9
  48.             echo "        <div class=\"col-md-8\">
  49. \t\t\t<form id=\"form-";
  50.             // line 10
  51.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bloc"]) || array_key_exists("bloc"$context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.'10$this->source); })()), "form", [], "any"falsefalsefalse10), "id", [], "any"falsefalsefalse10), "html"nulltrue);
  52.             echo "\" action=\"";
  53.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("save_form");
  54.             echo "\" method=\"post\" class=\"needs-validation row  form-recap ";
  55.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bloc"]) || array_key_exists("bloc"$context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.'10$this->source); })()), "form", [], "any"falsefalsefalse10), "identifier", [], "any"falsefalsefalse10), "html"nulltrue);
  56.             echo "\" enctype=\"multipart/form-data\" novalidate>
  57. \t\t\t\t";
  58.             // line 12
  59.             $context['_parent'] = $context;
  60.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'12$this->source); })()), "flashes", [=> ("success-form-" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bloc"]) || array_key_exists("bloc"$context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.'12$this->source); })()), "form", [], "any"falsefalsefalse12), "id", [], "any"falsefalsefalse12))], "method"falsefalsefalse12));
  61.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  62.                 // line 13
  63.                 echo "\t\t\t\t\t<div class=\"alert alert-success alert-form mx-auto\">
  64. \t\t\t\t\t\t";
  65.                 // line 14
  66.                 echo $context["message"];
  67.                 echo "
  68. \t\t\t\t\t</div>
  69. \t\t\t\t";
  70.             }
  71.             $_parent $context['_parent'];
  72.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  73.             $context array_intersect_key($context$_parent) + $_parent;
  74.             // line 17
  75.             echo "
  76. \t\t\t\t";
  77.             // line 18
  78.             $context['_parent'] = $context;
  79.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'18$this->source); })()), "flashes", [=> ("error-form-" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bloc"]) || array_key_exists("bloc"$context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.'18$this->source); })()), "form", [], "any"falsefalsefalse18), "id", [], "any"falsefalsefalse18))], "method"falsefalsefalse18));
  80.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  81.                 // line 19
  82.                 echo "\t\t\t\t\t<div class=\"alert alert-danger alert-form mx-auto\">
  83. \t\t\t\t\t\t";
  84.                 // line 20
  85.                 echo $context["message"];
  86.                 echo "
  87. \t\t\t\t\t</div>
  88. \t\t\t\t";
  89.             }
  90.             $_parent $context['_parent'];
  91.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  92.             $context array_intersect_key($context$_parent) + $_parent;
  93.             // line 23
  94.             echo "\t\t\t\t
  95. \t\t\t\t";
  96.             // line 24
  97.             $context["message"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("validation_form", [], "variable");
  98.             // line 25
  99.             echo "\t\t\t\t<input type=\"hidden\" value=\"";
  100.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bloc"]) || array_key_exists("bloc"$context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.'25$this->source); })()), "form", [], "any"falsefalsefalse25), "id", [], "any"falsefalsefalse25), "html"nulltrue);
  101.             echo "\" name=\"IdForm\">
  102. \t\t        
  103.                 <div class=\"contact-border\">
  104.                     <div class=\"icon-header\"></div>
  105.                     <div class=\"row\">
  106.                         ";
  107.             // line 30
  108.             $context['_parent'] = $context;
  109.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bloc"]) || array_key_exists("bloc"$context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.'30$this->source); })()), "form", [], "any"falsefalsefalse30), "data", [], "any"falsefalsefalse30));
  110.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  111.                 // line 31
  112.                 echo "                            ";
  113.                 $context["label"] = ((twig_get_attribute($this->env$this->source$context["item"], "label", [], "any"truetruefalse31)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse31), null)) : (null));
  114.                 // line 32
  115.                 echo "                            ";
  116.                 $context["placeholder"] = ((twig_get_attribute($this->env$this->source$context["item"], "placeholder", [], "any"truetruefalse32)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "placeholder", [], "any"falsefalsefalse32), null)) : (null));
  117.                 // line 33
  118.                 echo "
  119.                             ";
  120.                 // line 34
  121.                 if ((twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse34) == "text")) {
  122.                     // line 35
  123.                     echo "                                <div ";
  124.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse35)) {
  125.                         echo " class=\"col-md-6 col-lg-4 ";
  126.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse35), "html"nulltrue);
  127.                         echo " ";
  128.                         echo (((twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse35) == "ctc_city")) ? ("ctc_city") : (""));
  129.                         echo "\" ";
  130.                     } else {
  131.                         echo " class=\"col-md-6 col-lg-4 ";
  132.                         echo (((twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse35) == "ctc_city")) ? ("ctc_city") : (""));
  133.                         echo "\" ";
  134.                     }
  135.                     echo ">
  136.                                     <div class=\"form-group\">
  137.                                         ";
  138.                     // line 37
  139.                     echo twig_call_macro($macros["forms"], "macro_input", [twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse37), twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse37), twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"falsefalsefalse37), twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse37), twig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse37), (isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'37$this->source); })()), (isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'37$this->source); })()), ((twig_get_attribute($this->env$this->source$context["item"], "maxlength", [], "any"truetruefalse37)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "maxlength", [], "any"falsefalsefalse37), null)) : (null))], 37$context$this->getSourceContext());
  140.                     echo "
  141.                                         <div class=\"invalid-feedback\">
  142.                                             ";
  143.                     // line 39
  144.                     if ((twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse39) == "ctc_postcode")) {
  145.                         // line 40
  146.                         echo "                                                ";
  147.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("validation_code_postal", [], "variable"), "html"nulltrue);
  148.                         echo "
  149.                                             ";
  150.                     } else {
  151.                         // line 42
  152.                         echo "                                                ";
  153.                         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"truetruefalse42)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"falsefalsefalse42), (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'42$this->source); })()))) : ((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'42$this->source); })()))), "html"nulltrue);
  154.                         echo "
  155.                                             ";
  156.                     }
  157.                     // line 44
  158.                     echo "                                        </div>
  159.                                     </div>
  160.                                 </div>
  161.                             ";
  162.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 48
  163. $context["item"], "type", [], "any"falsefalsefalse48) == "select")) {
  164.                     // line 49
  165.                     echo "                                <div ";
  166.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse49)) {
  167.                         echo " class=\"col-sm-12 ";
  168.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse49), "html"nulltrue);
  169.                         echo "\" ";
  170.                     } else {
  171.                         echo " class=\"col-sm-12\" ";
  172.                     }
  173.                     echo ">
  174.                                     <div class=\"form-group\">
  175.                                         ";
  176.                     // line 51
  177.                     echo twig_call_macro($macros["forms"], "macro_select", [twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse51), twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse51), twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"falsefalsefalse51), twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse51), twig_get_attribute($this->env$this->source$context["item"], "multiple", [], "any"falsefalsefalse51), twig_get_attribute($this->env$this->source$context["item"], "values", [], "any"falsefalsefalse51), (isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'51$this->source); })()), (isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'51$this->source); })())], 51$context$this->getSourceContext());
  178.                     echo "
  179.                                         <div class=\"invalid-feedback\">
  180.                                             ";
  181.                     // line 53
  182.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"truetruefalse53)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"falsefalsefalse53), (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'53$this->source); })()))) : ((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'53$this->source); })()))), "html"nulltrue);
  183.                     echo "
  184.                                         </div>
  185.                                     </div>
  186.                                 </div>
  187.                             ";
  188.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 58
  189. $context["item"], "type", [], "any"falsefalsefalse58) == "textarea")) {
  190.                     // line 59
  191.                     echo "                                <div ";
  192.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse59)) {
  193.                         echo " class=\"";
  194.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse59), "html"nulltrue);
  195.                         echo "\" ";
  196.                     } else {
  197.                         echo " class=\"col-sm-12\" ";
  198.                     }
  199.                     echo ">
  200.                                     <div class=\"form-group\">
  201.                                         ";
  202.                     // line 61
  203.                     echo twig_call_macro($macros["forms"], "macro_textarea", [twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse61), twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse61), ((twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"truetruefalse61)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"falsefalsefalse61), "")) : ("")), twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse61), twig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse61), ((twig_get_attribute($this->env$this->source$context["item"], "label", [], "any"truetruefalse61)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse61), "")) : ("")), ((twig_get_attribute($this->env$this->source$context["item"], "placeholder", [], "any"truetruefalse61)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "placeholder", [], "any"falsefalsefalse61), "")) : ("")), ((twig_get_attribute($this->env$this->source$context["item"], "rows", [], "any"truetruefalse61)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "rows", [], "any"falsefalsefalse61), "")) : (""))], 61$context$this->getSourceContext());
  204.                     echo "
  205.                                         <div class=\"invalid-feedback\">
  206.                                             ";
  207.                     // line 63
  208.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"truetruefalse63)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"falsefalsefalse63), (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'63$this->source); })()))) : ((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'63$this->source); })()))), "html"nulltrue);
  209.                     echo "
  210.                                         </div>
  211.                                     </div>
  212.                                 </div>
  213.                             ";
  214.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 68
  215. $context["item"], "type", [], "any"falsefalsefalse68) == "file")) {
  216.                     // line 69
  217.                     echo "                                <div ";
  218.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse69)) {
  219.                         echo " class=\"col-md-6 col-lg-4 input-file ";
  220.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse69), "html"nulltrue);
  221.                         echo "\" ";
  222.                     } else {
  223.                         echo " class=\"col-md-6 col-lg-4 text-left\" ";
  224.                     }
  225.                     echo ">
  226.                                     <div class=\"form-group\">
  227.                                         ";
  228.                     // line 71
  229.                     echo twig_call_macro($macros["forms"], "macro_input", [twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse71), twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse71), twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"falsefalsefalse71), twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse71), twig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse71), (isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'71$this->source); })()), (isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'71$this->source); })()), ((twig_get_attribute($this->env$this->source$context["item"], "maxlength", [], "any"truetruefalse71)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "maxlength", [], "any"falsefalsefalse71), null)) : (null))], 71$context$this->getSourceContext());
  230.                     echo "
  231.                                         <div class=\"invalid-feedback\">
  232.                                             ";
  233.                     // line 73
  234.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"truetruefalse73)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"falsefalsefalse73), (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'73$this->source); })()))) : ((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'73$this->source); })()))), "html"nulltrue);
  235.                     echo "
  236.                                         </div>
  237.                                     </div>
  238.                                 </div>
  239.                             ";
  240.                 } elseif (((twig_get_attribute($this->env$this->source,                 // line 78
  241. $context["item"], "type", [], "any"falsefalsefalse78) == "button") && (twig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse78) != "submit"))) {
  242.                     // line 79
  243.                     echo "                                 ";
  244.                     // line 84
  245.                     echo "                            ";
  246.                 } elseif ((twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse84) == "checkbox-group")) {
  247.                     // line 85
  248.                     echo "                                <div class=\"";
  249.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse85)) {
  250.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse85), "html"nulltrue);
  251.                     } else {
  252.                         echo "col-sm-12 d-flex justify-content-center";
  253.                     }
  254.                     echo "\">
  255.                                     ";
  256.                     // line 87
  257.                     echo "                                    <div class=\"form-group  ";
  258.                     if ((twig_get_attribute($this->env$this->source$context["item"], "inline", [], "any"truetruefalse87) && (twig_get_attribute($this->env$this->source$context["item"], "inline", [], "any"falsefalsefalse87) == "true"))) {
  259.                         echo "d-flex";
  260.                     }
  261.                     echo "\">
  262.                                         ";
  263.                     // line 88
  264.                     echo twig_call_macro($macros["forms"], "macro_checkbox", [twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse88), twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse88), twig_get_attribute($this->env$this->source$context["item"], "values", [], "any"falsefalsefalse88)], 88$context$this->getSourceContext());
  265.                     echo "
  266.                                     </div>
  267.                                 </div>
  268.                             ";
  269.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 91
  270. $context["item"], "type", [], "any"falsefalsefalse91) == "paragraph")) {
  271.                     // line 92
  272.                     echo "                                <div class=\"";
  273.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse92)) {
  274.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse92), "html"nulltrue);
  275.                     } else {
  276.                         echo "col-sm-12";
  277.                     }
  278.                     echo "\">
  279.                                     <p>";
  280.                     // line 93
  281.                     echo $this->extensions['App\Twig\TextExtension']->unescape(twig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse93));
  282.                     echo "</p>
  283.                                 </div>
  284.                             ";
  285.                 } elseif (((twig_get_attribute($this->env$this->source,                 // line 95
  286. $context["item"], "type", [], "any"falsefalsefalse95) == "button") && (twig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse95) == "submit"))) {
  287.                     // line 96
  288.                     echo "                                <div class=\"col-sm-12 d-flex justify-content-center\">
  289.                                     <div class=\"form-group button-submit\">
  290.                                         <button class=\"btn btn-primary\" type=\"submit\">";
  291.                     // line 98
  292.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse98), "html"nulltrue);
  293.                     echo "</button>
  294.                                     </div>
  295.                                 </div>
  296.                             ";
  297.                 }
  298.                 // line 102
  299.                 echo "                            
  300.                         ";
  301.             }
  302.             $_parent $context['_parent'];
  303.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  304.             $context array_intersect_key($context$_parent) + $_parent;
  305.             // line 104
  306.             echo "                    </div>
  307.                 </div>
  308. \t\t\t\t<input type=\"hidden\" id=\"";
  309.             // line 107
  310.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bloc"]) || array_key_exists("bloc"$context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.'107$this->source); })()), "form", [], "any"falsefalsefalse107), "id", [], "any"falsefalsefalse107), "html"nulltrue);
  311.             echo "_captcha\" name=\"g-recaptcha-response\" value=\"\">
  312. \t\t\t</form>
  313.             </div>
  314. \t\t";
  315.         }
  316.         // line 112
  317.         echo "   
  318.         </div>
  319.     </div>
  320. </section>
  321. ";
  322.         // line 117
  323.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderHorairesPageContact"));
  324.         echo "
  325. ";
  326.         // line 118
  327.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderMapContact"));
  328.         
  329.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  330.         
  331.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  332.     }
  333.     public function getTemplateName()
  334.     {
  335.         return "front/theme1/form/contact_form.html.twig";
  336.     }
  337.     public function isTraitable()
  338.     {
  339.         return false;
  340.     }
  341.     public function getDebugInfo()
  342.     {
  343.         return array (  345 => 118,  341 => 117,  334 => 112,  326 => 107,  321 => 104,  314 => 102,  307 => 98,  303 => 96,  301 => 95,  296 => 93,  287 => 92,  285 => 91,  279 => 88,  272 => 87,  263 => 85,  260 => 84,  258 => 79,  256 => 78,  248 => 73,  243 => 71,  231 => 69,  229 => 68,  221 => 63,  216 => 61,  204 => 59,  202 => 58,  194 => 53,  189 => 51,  177 => 49,  175 => 48,  169 => 44,  163 => 42,  157 => 40,  155 => 39,  150 => 37,  134 => 35,  132 => 34,  129 => 33,  126 => 32,  123 => 31,  119 => 30,  110 => 25,  108 => 24,  105 => 23,  96 => 20,  93 => 19,  89 => 18,  86 => 17,  77 => 14,  74 => 13,  70 => 12,  61 => 10,  58 => 9,  56 => 8,  48 => 3,  45 => 2,  43 => 1,);
  344.     }
  345.     public function getSourceContext()
  346.     {
  347.         return new Source("{% import \"front/\"~ app.request.server.get('APP_THEME') ~\"/form/macro_form.html.twig\" as forms %}
  348. {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderContacts')) }}
  349. <section class=\"contact_form text-center\">
  350. <div class=\"container-fluid wrapper\">
  351.     <div class=\"row justify-content-center\">     
  352. \t\t{% if bloc.form %}
  353.         <div class=\"col-md-8\">
  354. \t\t\t<form id=\"form-{{bloc.form.id}}\" action=\"{{path('save_form')}}\" method=\"post\" class=\"needs-validation row  form-recap {{bloc.form.identifier}}\" enctype=\"multipart/form-data\" novalidate>
  355. \t\t\t\t{% for message in app.flashes('success-form-' ~ bloc.form.id) %}
  356. \t\t\t\t\t<div class=\"alert alert-success alert-form mx-auto\">
  357. \t\t\t\t\t\t{{ message|raw }}
  358. \t\t\t\t\t</div>
  359. \t\t\t\t{% endfor %}
  360. \t\t\t\t{% for message in app.flashes('error-form-' ~ bloc.form.id) %}
  361. \t\t\t\t\t<div class=\"alert alert-danger alert-form mx-auto\">
  362. \t\t\t\t\t\t{{ message|raw }}
  363. \t\t\t\t\t</div>
  364. \t\t\t\t{% endfor %}
  365. \t\t\t\t
  366. \t\t\t\t{% set message = 'validation_form'|trans([],'variable') %}
  367. \t\t\t\t<input type=\"hidden\" value=\"{{bloc.form.id}}\" name=\"IdForm\">
  368. \t\t        
  369.                 <div class=\"contact-border\">
  370.                     <div class=\"icon-header\"></div>
  371.                     <div class=\"row\">
  372.                         {% for item in bloc.form.data %}
  373.                             {% set label = item.label|default(null)%}
  374.                             {% set placeholder = item.placeholder|default(null) %}
  375.                             {% if item.type == \"text\" %}
  376.                                 <div {% if item.classGlobal is defined %} class=\"col-md-6 col-lg-4 {{item.classGlobal}} {{item.name == 'ctc_city'?'ctc_city':''}}\" {% else %} class=\"col-md-6 col-lg-4 {{item.name == 'ctc_city'?'ctc_city':''}}\" {% endif %}>
  377.                                     <div class=\"form-group\">
  378.                                         {{ forms.input(item.name,item.type,item.className,item.required,item.subtype,label,placeholder,item.maxlength|default(null)) }}
  379.                                         <div class=\"invalid-feedback\">
  380.                                             {% if item.name == 'ctc_postcode' %}
  381.                                                 {{'validation_code_postal'|trans([],'variable')}}
  382.                                             {% else %}
  383.                                                 {{item.ErrorMessage|default(message)}}
  384.                                             {% endif %}
  385.                                         </div>
  386.                                     </div>
  387.                                 </div>
  388.                             {% elseif item.type == \"select\" %}
  389.                                 <div {% if item.classGlobal is defined %} class=\"col-sm-12 {{item.classGlobal}}\" {% else %} class=\"col-sm-12\" {% endif %}>
  390.                                     <div class=\"form-group\">
  391.                                         {{ forms.select(item.type,item.name,item.className,item.required,item.multiple,item.values,label,placeholder) }}
  392.                                         <div class=\"invalid-feedback\">
  393.                                             {{item.ErrorMessage|default(message)}}
  394.                                         </div>
  395.                                     </div>
  396.                                 </div>
  397.                             {% elseif item.type == \"textarea\" %}
  398.                                 <div {% if item.classGlobal is defined %} class=\"{{item.classGlobal}}\" {% else %} class=\"col-sm-12\" {% endif %}>
  399.                                     <div class=\"form-group\">
  400.                                         {{ forms.textarea(item.name,item.type,item.className|default(''),item.required,item.subtype,item.label|default(''),item.placeholder|default(''),item.rows|default('')) }}
  401.                                         <div class=\"invalid-feedback\">
  402.                                             {{item.ErrorMessage|default(message)}}
  403.                                         </div>
  404.                                     </div>
  405.                                 </div>
  406.                             {% elseif item.type == \"file\" %}
  407.                                 <div {% if item.classGlobal is defined %} class=\"col-md-6 col-lg-4 input-file {{item.classGlobal}}\" {% else %} class=\"col-md-6 col-lg-4 text-left\" {% endif %}>
  408.                                     <div class=\"form-group\">
  409.                                         {{ forms.input(item.name,item.type,item.className,item.required,item.subtype,label,placeholder,item.maxlength|default(null)) }}
  410.                                         <div class=\"invalid-feedback\">
  411.                                             {{item.ErrorMessage|default(message)}}
  412.                                         </div>
  413.                                     </div>
  414.                                 </div>
  415.                             {% elseif item.type == \"button\" and item.subtype != \"submit\" %}
  416.                                  {# <div {% if item.classGlobal is defined %} class=\"{{item.classGlobal}}\" {% else %} class=\"col-sm-12\" {% endif %}>
  417.                                     <div class=\"form-group\">
  418.                                         {{ forms.button(item.name,item.type,item.subtype,item.className,item.label) }}
  419.                                     </div>
  420.                                 </div>  #}
  421.                             {% elseif item.type == \"checkbox-group\" %}
  422.                                 <div class=\"{% if item.classGlobal is defined %}{{item.classGlobal}}{% else %}col-sm-12 d-flex justify-content-center{% endif %}\">
  423.                                     {# {% if label %}<label>{{label}}</label>{% endif %} #}
  424.                                     <div class=\"form-group  {% if item.inline is defined and item.inline == \"true\" %}d-flex{% endif %}\">
  425.                                         {{ forms.checkbox(item.required,item.name,item.values) }}
  426.                                     </div>
  427.                                 </div>
  428.                             {% elseif item.type == \"paragraph\" %}
  429.                                 <div class=\"{% if item.classGlobal is defined %}{{item.classGlobal}}{% else %}col-sm-12{% endif %}\">
  430.                                     <p>{{item.label|unescape|raw}}</p>
  431.                                 </div>
  432.                             {% elseif item.type == \"button\" and item.subtype == \"submit\" %}
  433.                                 <div class=\"col-sm-12 d-flex justify-content-center\">
  434.                                     <div class=\"form-group button-submit\">
  435.                                         <button class=\"btn btn-primary\" type=\"submit\">{{item.label }}</button>
  436.                                     </div>
  437.                                 </div>
  438.                             {% endif %}
  439.                             
  440.                         {% endfor %}
  441.                     </div>
  442.                 </div>
  443. \t\t\t\t<input type=\"hidden\" id=\"{{bloc.form.id}}_captcha\" name=\"g-recaptcha-response\" value=\"\">
  444. \t\t\t</form>
  445.             </div>
  446. \t\t{% endif %}
  447.    
  448.         </div>
  449.     </div>
  450. </section>
  451. {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderHorairesPageContact')) }}
  452. {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderMapContact')) }}""front/theme1/form/contact_form.html.twig""/var/www/vhosts/hrz.fr/new-site.hrz.fr/templates/front/theme1/form/contact_form.html.twig");
  453.     }
  454. }