var/cache/dev/twig/83/83a8e1eb64abe126d01ffbfb5a07a79515d3be793f2b3b07e1f620e4ca209154.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_cd05990d6dd31095e0741bb7a30f8fca1f4ce0ccca9230c98e419258e2da23f6 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/theme1/form/contact_form.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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.             ";
  44.         // line 7
  45.         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.'7$this->source); })()), "form", [], "any"falsefalsefalse7)) {
  46.             // line 8
  47.             echo "                ";
  48.             if (((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.'8$this->source); })()), "form", [], "any"falsefalsefalse8), "titre", [], "any"falsefalsefalse8) != "") || (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.'8$this->source); })()), "form", [], "any"falsefalsefalse8), "texte", [], "any"falsefalsefalse8) != ""))) {
  49.                 // line 9
  50.                 echo "                <div class=\"titre-content-contact\">
  51.                     ";
  52.                 // line 10
  53.                 if ((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.'10$this->source); })()), "form", [], "any"falsefalsefalse10), "titre", [], "any"falsefalsefalse10) != "")) {
  54.                     // line 11
  55.                     echo "                    <h2>";
  56.                     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.'11$this->source); })()), "form", [], "any"falsefalsefalse11), "titre", [], "any"falsefalsefalse11), "html"nulltrue);
  57.                     echo "</h2>
  58.                     ";
  59.                 }
  60.                 // line 13
  61.                 echo "                    ";
  62.                 if ((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.'13$this->source); })()), "form", [], "any"falsefalsefalse13), "texte", [], "any"falsefalsefalse13) != "")) {
  63.                     // line 14
  64.                     echo "                    <div class=\"texte-in-contact\">";
  65.                     echo 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.'14$this->source); })()), "form", [], "any"falsefalsefalse14), "texte", [], "any"falsefalsefalse14);
  66.                     echo "</div>
  67.                     ";
  68.                 }
  69.                 // line 16
  70.                 echo "                </div>   
  71.                 ";
  72.             }
  73.             // line 18
  74.             echo "            ";
  75.         }
  76.         // line 19
  77.         echo "
  78.     ";
  79.         // line 20
  80.         $context["espace_client"] = 1;
  81.         echo 
  82.     ";
  83.         // line 22
  84.         if (((( !(isset($context["espace_client"]) || array_key_exists("espace_client"$context) ? $context["espace_client"] : (function () { throw new RuntimeError('Variable "espace_client" does not exist.'22$this->source); })()) && $this->extensions['App\Twig\FunctionExtension']->parametreProduits()) && twig_get_attribute($this->env$this->source$this->extensions['App\Twig\FunctionExtension']->parametreProduits(), "actifpanier", [], "any"falsefalsefalse22)) && twig_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.'22$this->source); })()), "session", [], "any"falsefalsefalse22), "get", [=> "panier"], "method"falsefalsefalse22))) {
  85.             // line 23
  86.             echo "        ";
  87.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\CartController::panierContact", ["panier" => twig_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.'23$this->source); })()), "session", [], "any"falsefalsefalse23), "get", [=> "panier"], "method"falsefalsefalse23)]));
  88.             echo "
  89.     ";
  90.         }
  91.         // line 25
  92.         echo "
  93.     <div class=\"row justify-content-center\">  
  94. \t\t";
  95.         // line 28
  96.         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.'28$this->source); })()), "form", [], "any"falsefalsefalse28)) {
  97.             // line 29
  98.             echo "        <div class=\"col-md-8\">
  99. \t\t\t<form id=\"form-";
  100.             // line 30
  101.             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.'30$this->source); })()), "form", [], "any"falsefalsefalse30), "id", [], "any"falsefalsefalse30), "html"nulltrue);
  102.             echo "\" action=\"";
  103.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("save_form");
  104.             echo "\" method=\"post\" class=\"needs-validation row  form-recap ";
  105.             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.'30$this->source); })()), "form", [], "any"falsefalsefalse30), "identifier", [], "any"falsefalsefalse30), "html"nulltrue);
  106.             echo "\" enctype=\"multipart/form-data\" novalidate>
  107. \t\t\t\t";
  108.             // line 32
  109.             $context['_parent'] = $context;
  110.             $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.'32$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.'32$this->source); })()), "form", [], "any"falsefalsefalse32), "id", [], "any"falsefalsefalse32))], "method"falsefalsefalse32));
  111.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  112.                 // line 33
  113.                 echo "\t\t\t\t\t<div class=\"alert alert-success alert-form mx-auto\">
  114. \t\t\t\t\t\t";
  115.                 // line 34
  116.                 echo $context["message"];
  117.                 echo "
  118. \t\t\t\t\t</div>
  119. \t\t\t\t";
  120.             }
  121.             $_parent $context['_parent'];
  122.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  123.             $context array_intersect_key($context$_parent) + $_parent;
  124.             // line 37
  125.             echo "
  126. \t\t\t\t";
  127.             // line 38
  128.             $context['_parent'] = $context;
  129.             $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.'38$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.'38$this->source); })()), "form", [], "any"falsefalsefalse38), "id", [], "any"falsefalsefalse38))], "method"falsefalsefalse38));
  130.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  131.                 // line 39
  132.                 echo "\t\t\t\t\t<div class=\"alert alert-danger alert-form mx-auto\">
  133. \t\t\t\t\t\t";
  134.                 // line 40
  135.                 echo $context["message"];
  136.                 echo "
  137. \t\t\t\t\t</div>
  138. \t\t\t\t";
  139.             }
  140.             $_parent $context['_parent'];
  141.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  142.             $context array_intersect_key($context$_parent) + $_parent;
  143.             // line 43
  144.             echo "
  145.                 ";
  146.             // line 44
  147.             if ((array_key_exists("product_interesse"$context) &&  !twig_test_empty((isset($context["product_interesse"]) || array_key_exists("product_interesse"$context) ? $context["product_interesse"] : (function () { throw new RuntimeError('Variable "product_interesse" does not exist.'44$this->source); })())))) {
  148.                 // line 45
  149.                 echo "                      <h2>Je suis intéressé par : ";
  150.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product_interesse"]) || array_key_exists("product_interesse"$context) ? $context["product_interesse"] : (function () { throw new RuntimeError('Variable "product_interesse" does not exist.'45$this->source); })()), "titre", [], "any"falsefalsefalse45), "html"nulltrue);
  151.                 echo "</h2>
  152.                       <input type=\"hidden\" value=\"";
  153.                 // line 46
  154.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product_interesse"]) || array_key_exists("product_interesse"$context) ? $context["product_interesse"] : (function () { throw new RuntimeError('Variable "product_interesse" does not exist.'46$this->source); })()), "id", [], "any"falsefalsefalse46), "html"nulltrue);
  155.                 echo "\" name=\"id_product\">
  156.                 ";
  157.             }
  158.             // line 48
  159.             echo "                
  160. \t\t\t\t
  161. \t\t\t\t";
  162.             // line 50
  163.             $context["message"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("validation_form", [], "variable");
  164.             // line 51
  165.             echo "\t\t\t\t<input type=\"hidden\" value=\"";
  166.             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.'51$this->source); })()), "form", [], "any"falsefalsefalse51), "id", [], "any"falsefalsefalse51), "html"nulltrue);
  167.             echo "\" name=\"IdForm\">
  168. \t\t        
  169.                 <div class=\"contact-border\">
  170.                     <div class=\"icon-header\"></div>
  171.                     <div class=\"row\">
  172.                         ";
  173.             // line 56
  174.             $context['_parent'] = $context;
  175.             $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.'56$this->source); })()), "form", [], "any"falsefalsefalse56), "data", [], "any"falsefalsefalse56));
  176.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  177.                 // line 57
  178.                 echo "                            ";
  179.                 $context["label"] = ((twig_get_attribute($this->env$this->source$context["item"], "label", [], "any"truetruefalse57)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse57), null)) : (null));
  180.                 // line 58
  181.                 echo "                            ";
  182.                 $context["placeholder"] = ((twig_get_attribute($this->env$this->source$context["item"], "placeholder", [], "any"truetruefalse58)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "placeholder", [], "any"falsefalsefalse58), null)) : (null));
  183.                 // line 59
  184.                 echo "
  185.                             ";
  186.                 // line 60
  187.                 if ((twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse60) == "header")) {
  188.                     // line 61
  189.                     echo "                                <div class=\"col-md-12\">
  190.                                     <";
  191.                     // line 62
  192.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse62), "html"nulltrue);
  193.                     echo " class=\"header-title\">";
  194.                     echo (isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'62$this->source); })());
  195.                     echo "</";
  196.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse62), "html"nulltrue);
  197.                     echo ">
  198.                                 </div>
  199.                             ";
  200.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 65
  201. $context["item"], "type", [], "any"falsefalsefalse65) == "text")) {
  202.                     // line 66
  203.                     echo "                                <div ";
  204.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse66)) {
  205.                         echo " class=\"col-md-6 col-lg-4 ";
  206.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse66), "html"nulltrue);
  207.                         echo " ";
  208.                         echo (((twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse66) == "ctc_city")) ? ("ctc_city") : (""));
  209.                         echo "\" ";
  210.                     } else {
  211.                         echo " class=\"col-md-6 col-lg-4 ";
  212.                         echo (((twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse66) == "ctc_city")) ? ("ctc_city") : (""));
  213.                         echo "\" ";
  214.                     }
  215.                     echo ">
  216.                                     <div class=\"form-group\">
  217.                                         ";
  218.                     // line 68
  219.                     echo twig_call_macro($macros["forms"], "macro_input", [twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse68), twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse68), twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"falsefalsefalse68), twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse68), twig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse68), (isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'68$this->source); })()), (isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'68$this->source); })()), ((twig_get_attribute($this->env$this->source$context["item"], "maxlength", [], "any"truetruefalse68)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "maxlength", [], "any"falsefalsefalse68), null)) : (null))], 68$context$this->getSourceContext());
  220.                     echo "
  221.                                         <div class=\"invalid-feedback\">
  222.                                             ";
  223.                     // line 70
  224.                     if ((twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse70) == "ctc_postcode")) {
  225.                         // line 71
  226.                         echo "                                                ";
  227.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("validation_code_postal", [], "variable"), "html"nulltrue);
  228.                         echo "
  229.                                             ";
  230.                     } else {
  231.                         // line 73
  232.                         echo "                                                ";
  233.                         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);
  234.                         echo "
  235.                                             ";
  236.                     }
  237.                     // line 75
  238.                     echo "                                        </div>
  239.                                     </div>
  240.                                 </div>
  241.                             ";
  242.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 79
  243. $context["item"], "type", [], "any"falsefalsefalse79) == "select")) {
  244.                     // line 80
  245.                     echo "                                <div ";
  246.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse80)) {
  247.                         echo " class=\"col-sm-12 ";
  248.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse80), "html"nulltrue);
  249.                         echo "\" ";
  250.                     } else {
  251.                         echo " class=\"col-sm-12\" ";
  252.                     }
  253.                     echo ">
  254.                                     <div class=\"form-group\">
  255.                                         ";
  256.                     // line 82
  257.                     echo twig_call_macro($macros["forms"], "macro_select", [twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse82), twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse82), twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"falsefalsefalse82), twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse82), twig_get_attribute($this->env$this->source$context["item"], "multiple", [], "any"falsefalsefalse82), twig_get_attribute($this->env$this->source$context["item"], "values", [], "any"falsefalsefalse82), (isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'82$this->source); })()), (isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'82$this->source); })())], 82$context$this->getSourceContext());
  258.                     echo "
  259.                                         <div class=\"invalid-feedback\">
  260.                                             ";
  261.                     // line 84
  262.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"truetruefalse84)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"falsefalsefalse84), (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'84$this->source); })()))) : ((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'84$this->source); })()))), "html"nulltrue);
  263.                     echo "
  264.                                         </div>
  265.                                     </div>
  266.                                 </div>
  267.                             ";
  268.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 90
  269. $context["item"], "type", [], "any"falsefalsefalse90) == "date")) {
  270.                     // line 91
  271.                     echo "                            <div class=\"date-form col-md-12 ";
  272.                     ((twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse91)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse91), "html"nulltrue))) : (print ("")));
  273.                     echo "\" >
  274.                                 ";
  275.                     // line 92
  276.                     echo twig_call_macro($macros["forms"], "macro_input", [twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse92), (isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'92$this->source); })()), twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"falsefalsefalse92), twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse92), twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse92), (isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'92$this->source); })())], 92$context$this->getSourceContext());
  277.                     echo "
  278.                                 <div class=\"invalid-feedback\">
  279.                                     ";
  280.                     // line 95
  281.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"truetruefalse95)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"falsefalsefalse95), (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'95$this->source); })()))) : ((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'95$this->source); })()))), "html"nulltrue);
  282.                     echo "
  283.                                 </div>
  284.                             </div>
  285.                             ";
  286.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 99
  287. $context["item"], "type", [], "any"falsefalsefalse99) == "textarea")) {
  288.                     // line 100
  289.                     echo "                                <div ";
  290.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse100)) {
  291.                         echo " class=\"";
  292.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse100), "html"nulltrue);
  293.                         echo "\" ";
  294.                     } else {
  295.                         echo " class=\"col-sm-12\" ";
  296.                     }
  297.                     echo ">
  298.                                     <div class=\"form-group\">
  299.                                         ";
  300.                     // line 102
  301.                     if ((twig_get_attribute($this->env$this->source$context["item"], "label", [], "any"truetruefalse102) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse102)))) {
  302.                         // line 103
  303.                         echo "                                            <label class=\"label-control\">";
  304.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse103), "html"nulltrue);
  305.                         echo "</label>
  306.                                         ";
  307.                     }
  308.                     // line 105
  309.                     echo "                                        <textarea name=\"";
  310.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse105), "html"nulltrue);
  311.                     echo "\" class=\"";
  312.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"truetruefalse105)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"falsefalsefalse105), "")) : ("")), "html"nulltrue);
  313.                     echo "\" required=\"";
  314.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"truetruefalse105)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse105), "false")) : ("false")), "html"nulltrue);
  315.                     echo "\" rows=\"";
  316.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "rows", [], "any"truetruefalse105)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "rows", [], "any"falsefalsefalse105), "6")) : ("6")), "html"nulltrue);
  317.                     echo "\" placeholder=\"";
  318.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "placeholder", [], "any"truetruefalse105)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "placeholder", [], "any"falsefalsefalse105), "")) : ("")), "html"nulltrue);
  319.                     echo "\"></textarea>
  320.                                         <div class=\"invalid-feedback\">
  321.                                             ";
  322.                     // line 107
  323.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"truetruefalse107)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"falsefalsefalse107), (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'107$this->source); })()))) : ((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'107$this->source); })()))), "html"nulltrue);
  324.                     echo "
  325.                                         </div>
  326.                                     </div>
  327.                                 </div>
  328.                             ";
  329.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 112
  330. $context["item"], "type", [], "any"falsefalsefalse112) == "file")) {
  331.                     // line 113
  332.                     echo "                                <div ";
  333.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse113)) {
  334.                         echo " class=\"col-md-6 col-lg-4 input-file ";
  335.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse113), "html"nulltrue);
  336.                         echo "\" ";
  337.                     } else {
  338.                         echo " class=\"col-md-6 text-left\" ";
  339.                     }
  340.                     echo ">
  341.                                     <div class=\"form-group\">
  342.                                         ";
  343.                     // line 115
  344.                     echo twig_call_macro($macros["forms"], "macro_input", [twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse115), twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse115), twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"falsefalsefalse115), twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse115), twig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse115), (isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'115$this->source); })()), (isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'115$this->source); })()), ((twig_get_attribute($this->env$this->source$context["item"], "maxlength", [], "any"truetruefalse115)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "maxlength", [], "any"falsefalsefalse115), null)) : (null))], 115$context$this->getSourceContext());
  345.                     echo "
  346.                                         <div class=\"invalid-feedback\">
  347.                                             ";
  348.                     // line 117
  349.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"truetruefalse117)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"falsefalsefalse117), (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'117$this->source); })()))) : ((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'117$this->source); })()))), "html"nulltrue);
  350.                     echo "
  351.                                         </div>
  352.                                     </div>
  353.                                 </div>
  354.                             ";
  355.                 } elseif (((twig_get_attribute($this->env$this->source,                 // line 122
  356. $context["item"], "type", [], "any"falsefalsefalse122) == "button") && (twig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse122) != "submit"))) {
  357.                     // line 123
  358.                     echo "                                 ";
  359.                     // line 128
  360.                     echo "                            ";
  361.                 } elseif ((twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse128) == "checkbox-group")) {
  362.                     // line 129
  363.                     echo "                                <div class=\"";
  364.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse129)) {
  365.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse129), "html"nulltrue);
  366.                     } else {
  367.                         echo "col-sm-12 d-flex justify-content-center";
  368.                     }
  369.                     echo "\">
  370.                                     ";
  371.                     // line 131
  372.                     echo "                                    <div class=\"form-group  ";
  373.                     if ((twig_get_attribute($this->env$this->source$context["item"], "inline", [], "any"truetruefalse131) && (twig_get_attribute($this->env$this->source$context["item"], "inline", [], "any"falsefalsefalse131) == "true"))) {
  374.                         echo "d-flex";
  375.                     }
  376.                     echo "\">
  377.                                         ";
  378.                     // line 132
  379.                     echo twig_call_macro($macros["forms"], "macro_checkbox", [twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse132), twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse132), twig_get_attribute($this->env$this->source$context["item"], "values", [], "any"falsefalsefalse132)], 132$context$this->getSourceContext());
  380.                     echo "
  381.                                     </div>
  382.                                 </div>
  383.                             ";
  384.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 135
  385. $context["item"], "type", [], "any"falsefalsefalse135) == "paragraph")) {
  386.                     // line 136
  387.                     echo "                                <div class=\"";
  388.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse136)) {
  389.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse136), "html"nulltrue);
  390.                     } else {
  391.                         echo "col-sm-12";
  392.                     }
  393.                     echo "\">
  394.                                     <p>";
  395.                     // line 137
  396.                     echo $this->extensions['App\Twig\TextExtension']->unescape(twig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse137));
  397.                     echo "</p>
  398.                                 </div>
  399.                             ";
  400.                 } elseif (((twig_get_attribute($this->env$this->source,                 // line 139
  401. $context["item"], "type", [], "any"falsefalsefalse139) == "button") && (twig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse139) == "submit"))) {
  402.                     // line 140
  403.                     echo "                                <div class=\"col-sm-12 d-flex justify-content-center\">
  404.                                     <div class=\"form-group button-submit\">
  405.                                         <button class=\"btn btn-cms\" type=\"submit\">";
  406.                     // line 142
  407.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse142), "html"nulltrue);
  408.                     echo "</button>
  409.                                     </div>
  410.                                 </div>
  411.                             ";
  412.                 }
  413.                 // line 146
  414.                 echo "                            
  415.                         ";
  416.             }
  417.             $_parent $context['_parent'];
  418.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  419.             $context array_intersect_key($context$_parent) + $_parent;
  420.             // line 148
  421.             echo "                    </div>
  422.                 </div>
  423. \t\t\t\t<input type=\"hidden\" id=\"";
  424.             // line 151
  425.             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.'151$this->source); })()), "form", [], "any"falsefalsefalse151), "id", [], "any"falsefalsefalse151), "html"nulltrue);
  426.             echo "_captcha\" name=\"g-recaptcha-response\" value=\"\">
  427. \t\t\t</form>
  428.             </div>
  429.             
  430. \t\t";
  431.         }
  432.         // line 157
  433.         echo "   
  434.         </div>
  435.     </div>
  436. </section>
  437. <script>
  438. const filesInput = document.querySelectorAll('input[type=\"file\"]');
  439. if(filesInput){
  440.     filesInput.forEach(function(fileInput) {
  441.         fileInput.setAttribute('accept', '.pdf,.doc,.docx,.txt,.jpg,.jpeg,.png');
  442.     });
  443. }
  444. </script>
  445. ";
  446.         // line 170
  447.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderHorairesPageContact"));
  448.         echo "
  449. ";
  450.         // line 171
  451.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderMapContact"));
  452.         
  453.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  454.         
  455.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  456.     }
  457.     public function getTemplateName()
  458.     {
  459.         return "front/theme1/form/contact_form.html.twig";
  460.     }
  461.     public function isTraitable()
  462.     {
  463.         return false;
  464.     }
  465.     public function getDebugInfo()
  466.     {
  467.         return array (  475 => 171,  471 => 170,  456 => 157,  447 => 151,  442 => 148,  435 => 146,  428 => 142,  424 => 140,  422 => 139,  417 => 137,  408 => 136,  406 => 135,  400 => 132,  393 => 131,  384 => 129,  381 => 128,  379 => 123,  377 => 122,  369 => 117,  364 => 115,  352 => 113,  350 => 112,  342 => 107,  328 => 105,  322 => 103,  320 => 102,  308 => 100,  306 => 99,  299 => 95,  293 => 92,  288 => 91,  286 => 90,  277 => 84,  272 => 82,  260 => 80,  258 => 79,  252 => 75,  246 => 73,  240 => 71,  238 => 70,  233 => 68,  217 => 66,  215 => 65,  205 => 62,  202 => 61,  200 => 60,  197 => 59,  194 => 58,  191 => 57,  187 => 56,  178 => 51,  176 => 50,  172 => 48,  167 => 46,  162 => 45,  160 => 44,  157 => 43,  148 => 40,  145 => 39,  141 => 38,  138 => 37,  129 => 34,  126 => 33,  122 => 32,  113 => 30,  110 => 29,  108 => 28,  103 => 25,  97 => 23,  95 => 22,  90 => 20,  87 => 19,  84 => 18,  80 => 16,  74 => 14,  71 => 13,  65 => 11,  63 => 10,  60 => 9,  57 => 8,  55 => 7,  48 => 3,  45 => 2,  43 => 1,);
  468.     }
  469.     public function getSourceContext()
  470.     {
  471.         return new Source("{% import \"front/\"~ app.request.server.get('APP_THEME') ~\"/form/macro_form.html.twig\" as forms %}
  472. {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderContacts')) }}
  473. <section class=\"contact_form text-center\">
  474. <div class=\"container-fluid wrapper\">
  475.             {% if bloc.form %}
  476.                 {% if bloc.form.titre != '' or bloc.form.texte != '' %}
  477.                 <div class=\"titre-content-contact\">
  478.                     {% if bloc.form.titre != '' %}
  479.                     <h2>{{bloc.form.titre}}</h2>
  480.                     {% endif %}
  481.                     {% if bloc.form.texte != '' %}
  482.                     <div class=\"texte-in-contact\">{{bloc.form.texte|raw}}</div>
  483.                     {% endif %}
  484.                 </div>   
  485.                 {% endif %}
  486.             {% endif %}
  487.     {% set espace_client = 1 %} 
  488.     {% if not espace_client and parametreProduits() and parametreProduits().actifpanier and app.session.get('panier') %}
  489.         {{ render(controller('App\\\\Controller\\\\Front\\\\CartController::panierContact', {'panier': app.session.get('panier')})) }}
  490.     {% endif %}
  491.     <div class=\"row justify-content-center\">  
  492. \t\t{% if bloc.form %}
  493.         <div class=\"col-md-8\">
  494. \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>
  495. \t\t\t\t{% for message in app.flashes('success-form-' ~ bloc.form.id) %}
  496. \t\t\t\t\t<div class=\"alert alert-success alert-form mx-auto\">
  497. \t\t\t\t\t\t{{ message|raw }}
  498. \t\t\t\t\t</div>
  499. \t\t\t\t{% endfor %}
  500. \t\t\t\t{% for message in app.flashes('error-form-' ~ bloc.form.id) %}
  501. \t\t\t\t\t<div class=\"alert alert-danger alert-form mx-auto\">
  502. \t\t\t\t\t\t{{ message|raw }}
  503. \t\t\t\t\t</div>
  504. \t\t\t\t{% endfor %}
  505.                 {% if product_interesse is defined and product_interesse is not empty %}
  506.                       <h2>Je suis intéressé par : {{product_interesse.titre}}</h2>
  507.                       <input type=\"hidden\" value=\"{{product_interesse.id}}\" name=\"id_product\">
  508.                 {% endif %}
  509.                 
  510. \t\t\t\t
  511. \t\t\t\t{% set message = 'validation_form'|trans([],'variable') %}
  512. \t\t\t\t<input type=\"hidden\" value=\"{{bloc.form.id}}\" name=\"IdForm\">
  513. \t\t        
  514.                 <div class=\"contact-border\">
  515.                     <div class=\"icon-header\"></div>
  516.                     <div class=\"row\">
  517.                         {% for item in bloc.form.data %}
  518.                             {% set label = item.label|default(null)%}
  519.                             {% set placeholder = item.placeholder|default(null) %}
  520.                             {% if item.type == \"header\" %}
  521.                                 <div class=\"col-md-12\">
  522.                                     <{{item.subtype}} class=\"header-title\">{{label|raw}}</{{item.subtype}}>
  523.                                 </div>
  524.                             {% elseif item.type == \"text\" %}
  525.                                 <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 %}>
  526.                                     <div class=\"form-group\">
  527.                                         {{ forms.input(item.name,item.type,item.className,item.required,item.subtype,label,placeholder,item.maxlength|default(null)) }}
  528.                                         <div class=\"invalid-feedback\">
  529.                                             {% if item.name == 'ctc_postcode' %}
  530.                                                 {{'validation_code_postal'|trans([],'variable')}}
  531.                                             {% else %}
  532.                                                 {{item.ErrorMessage|default(message)}}
  533.                                             {% endif %}
  534.                                         </div>
  535.                                     </div>
  536.                                 </div>
  537.                             {% elseif item.type == \"select\" %}
  538.                                 <div {% if item.classGlobal is defined %} class=\"col-sm-12 {{item.classGlobal}}\" {% else %} class=\"col-sm-12\" {% endif %}>
  539.                                     <div class=\"form-group\">
  540.                                         {{ forms.select(item.type,item.name,item.className,item.required,item.multiple,item.values,label,placeholder) }}
  541.                                         <div class=\"invalid-feedback\">
  542.                                             {{item.ErrorMessage|default(message)}}
  543.                                         </div>
  544.                                     </div>
  545.                                 </div>
  546.                             {% elseif item.type == 'date' %}
  547.                             <div class=\"date-form col-md-12 {{ item.classGlobal is defined ? item.classGlobal : '' }}\" >
  548.                                 {{ forms.input(item.name,placeholder,item.className,item.required,item.type,label) }}
  549.                                 <div class=\"invalid-feedback\">
  550.                                     {{item.ErrorMessage|default(message)}}
  551.                                 </div>
  552.                             </div>
  553.                             {% elseif item.type == \"textarea\" %}
  554.                                 <div {% if item.classGlobal is defined %} class=\"{{item.classGlobal}}\" {% else %} class=\"col-sm-12\" {% endif %}>
  555.                                     <div class=\"form-group\">
  556.                                         {% if item.label is defined and item.label is not empty %}
  557.                                             <label class=\"label-control\">{{item.label}}</label>
  558.                                         {% endif %}
  559.                                         <textarea name=\"{{item.name}}\" class=\"{{item.className|default('')}}\" required=\"{{item.required|default('false')}}\" rows=\"{{item.rows|default('6')}}\" placeholder=\"{{item.placeholder|default('')}}\"></textarea>
  560.                                         <div class=\"invalid-feedback\">
  561.                                             {{item.ErrorMessage|default(message)}}
  562.                                         </div>
  563.                                     </div>
  564.                                 </div>
  565.                             {% elseif item.type == \"file\" %}
  566.                                 <div {% if item.classGlobal is defined %} class=\"col-md-6 col-lg-4 input-file {{item.classGlobal}}\" {% else %} class=\"col-md-6 text-left\" {% endif %}>
  567.                                     <div class=\"form-group\">
  568.                                         {{ forms.input(item.name,item.type,item.className,item.required,item.subtype,label,placeholder,item.maxlength|default(null)) }}
  569.                                         <div class=\"invalid-feedback\">
  570.                                             {{item.ErrorMessage|default(message)}}
  571.                                         </div>
  572.                                     </div>
  573.                                 </div>
  574.                             {% elseif item.type == \"button\" and item.subtype != \"submit\" %}
  575.                                  {# <div {% if item.classGlobal is defined %} class=\"{{item.classGlobal}}\" {% else %} class=\"col-sm-12\" {% endif %}>
  576.                                     <div class=\"form-group\">
  577.                                         {{ forms.button(item.name,item.type,item.subtype,item.className,item.label) }}
  578.                                     </div>
  579.                                 </div>  #}
  580.                             {% elseif item.type == \"checkbox-group\" %}
  581.                                 <div class=\"{% if item.classGlobal is defined %}{{item.classGlobal}}{% else %}col-sm-12 d-flex justify-content-center{% endif %}\">
  582.                                     {# {% if label %}<label>{{label}}</label>{% endif %} #}
  583.                                     <div class=\"form-group  {% if item.inline is defined and item.inline == \"true\" %}d-flex{% endif %}\">
  584.                                         {{ forms.checkbox(item.required,item.name,item.values) }}
  585.                                     </div>
  586.                                 </div>
  587.                             {% elseif item.type == \"paragraph\" %}
  588.                                 <div class=\"{% if item.classGlobal is defined %}{{item.classGlobal}}{% else %}col-sm-12{% endif %}\">
  589.                                     <p>{{item.label|unescape|raw}}</p>
  590.                                 </div>
  591.                             {% elseif item.type == \"button\" and item.subtype == \"submit\" %}
  592.                                 <div class=\"col-sm-12 d-flex justify-content-center\">
  593.                                     <div class=\"form-group button-submit\">
  594.                                         <button class=\"btn btn-cms\" type=\"submit\">{{item.label }}</button>
  595.                                     </div>
  596.                                 </div>
  597.                             {% endif %}
  598.                             
  599.                         {% endfor %}
  600.                     </div>
  601.                 </div>
  602. \t\t\t\t<input type=\"hidden\" id=\"{{bloc.form.id}}_captcha\" name=\"g-recaptcha-response\" value=\"\">
  603. \t\t\t</form>
  604.             </div>
  605.             
  606. \t\t{% endif %}
  607.    
  608.         </div>
  609.     </div>
  610. </section>
  611. <script>
  612. const filesInput = document.querySelectorAll('input[type=\"file\"]');
  613. if(filesInput){
  614.     filesInput.forEach(function(fileInput) {
  615.         fileInput.setAttribute('accept', '.pdf,.doc,.docx,.txt,.jpg,.jpeg,.png');
  616.     });
  617. }
  618. </script>
  619. {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderHorairesPageContact')) }}
  620. {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderMapContact')) }}""front/theme1/form/contact_form.html.twig""/var/www/vhosts/hrz.fr/oscar-multilangue.hrz.fr/templates/front/theme1/form/contact_form.html.twig");
  621.     }
  622. }