var/cache/dev/twig/83/83a8e1eb64abe126d01ffbfb5a07a79515d3be793f2b3b07e1f620e4ca209154.php line 33

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.     <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 "\" 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.                             ";
  121.                 // line 35
  122.                 if ((twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse35) == "text")) {
  123.                     // line 36
  124.                     echo "                                <div ";
  125.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse36)) {
  126.                         echo " class=\"col-md-6 col-lg-4 ";
  127.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse36), "html"nulltrue);
  128.                         echo " ";
  129.                         echo (((twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse36) == "ctc_city")) ? ("ctc_city") : (""));
  130.                         echo "\" ";
  131.                     } else {
  132.                         echo " class=\"col-md-6 col-lg-4 ";
  133.                         echo (((twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse36) == "ctc_city")) ? ("ctc_city") : (""));
  134.                         echo "\" ";
  135.                     }
  136.                     echo ">
  137.                                     <div class=\"form-group\">
  138.                                         ";
  139.                     // line 38
  140.                     echo twig_call_macro($macros["forms"], "macro_input", [twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse38), twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse38), twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"falsefalsefalse38), twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse38), twig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse38), (isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'38$this->source); })()), (isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'38$this->source); })()), ((twig_get_attribute($this->env$this->source$context["item"], "maxlength", [], "any"truetruefalse38)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "maxlength", [], "any"falsefalsefalse38), null)) : (null))], 38$context$this->getSourceContext());
  141.                     echo "
  142.                                         <div class=\"invalid-feedback\">
  143.                                             ";
  144.                     // line 40
  145.                     if ((twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse40) == "ctc_postcode")) {
  146.                         // line 41
  147.                         echo "                                                ";
  148.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("validation_code_postal", [], "variable"), "html"nulltrue);
  149.                         echo "
  150.                                             ";
  151.                     } else {
  152.                         // line 43
  153.                         echo "                                                ";
  154.                         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"truetruefalse43)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"falsefalsefalse43), (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'43$this->source); })()))) : ((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'43$this->source); })()))), "html"nulltrue);
  155.                         echo "
  156.                                             ";
  157.                     }
  158.                     // line 45
  159.                     echo "                                        </div>
  160.                                     </div>
  161.                                 </div>
  162.                             ";
  163.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 49
  164. $context["item"], "type", [], "any"falsefalsefalse49) == "select")) {
  165.                     // line 50
  166.                     echo "                                <div ";
  167.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse50)) {
  168.                         echo " class=\"col-sm-12 ";
  169.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse50), "html"nulltrue);
  170.                         echo "\" ";
  171.                     } else {
  172.                         echo " class=\"col-sm-12\" ";
  173.                     }
  174.                     echo ">
  175.                                     <div class=\"form-group\">
  176.                                         ";
  177.                     // line 52
  178.                     echo twig_call_macro($macros["forms"], "macro_select", [twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse52), twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse52), twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"falsefalsefalse52), twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse52), twig_get_attribute($this->env$this->source$context["item"], "multiple", [], "any"falsefalsefalse52), twig_get_attribute($this->env$this->source$context["item"], "values", [], "any"falsefalsefalse52), (isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'52$this->source); })()), (isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'52$this->source); })())], 52$context$this->getSourceContext());
  179.                     echo "
  180.                                         <div class=\"invalid-feedback\">
  181.                                             ";
  182.                     // line 54
  183.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"truetruefalse54)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"falsefalsefalse54), (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'54$this->source); })()))) : ((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'54$this->source); })()))), "html"nulltrue);
  184.                     echo "
  185.                                         </div>
  186.                                     </div>
  187.                                 </div>
  188.                             ";
  189.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 59
  190. $context["item"], "type", [], "any"falsefalsefalse59) == "textarea")) {
  191.                     // line 60
  192.                     echo "                                <div ";
  193.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse60)) {
  194.                         echo " class=\"";
  195.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse60), "html"nulltrue);
  196.                         echo "\" ";
  197.                     } else {
  198.                         echo " class=\"col-sm-12\" ";
  199.                     }
  200.                     echo ">
  201.                                     <div class=\"form-group\">
  202.                                         ";
  203.                     // line 62
  204.                     echo twig_call_macro($macros["forms"], "macro_textarea", [twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse62), twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse62), ((twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"truetruefalse62)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "className", [], "any"falsefalsefalse62), "")) : ("")), twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse62), twig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse62), ((twig_get_attribute($this->env$this->source$context["item"], "label", [], "any"truetruefalse62)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse62), "")) : ("")), ((twig_get_attribute($this->env$this->source$context["item"], "placeholder", [], "any"truetruefalse62)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "placeholder", [], "any"falsefalsefalse62), "")) : ("")), ((twig_get_attribute($this->env$this->source$context["item"], "rows", [], "any"truetruefalse62)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "rows", [], "any"falsefalsefalse62), "")) : (""))], 62$context$this->getSourceContext());
  205.                     echo "
  206.                                         <div class=\"invalid-feedback\">
  207.                                             ";
  208.                     // line 64
  209.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"truetruefalse64)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["item"], "ErrorMessage", [], "any"falsefalsefalse64), (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'64$this->source); })()))) : ((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'64$this->source); })()))), "html"nulltrue);
  210.                     echo "
  211.                                         </div>
  212.                                     </div>
  213.                                 </div>
  214.                             ";
  215.                 } elseif (((twig_get_attribute($this->env$this->source,                 // line 68
  216. $context["item"], "type", [], "any"falsefalsefalse68) == "button") && (twig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse68) != "submit"))) {
  217.                     // line 69
  218.                     echo "                                 ";
  219.                     // line 74
  220.                     echo "                            ";
  221.                 } elseif ((twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse74) == "checkbox-group")) {
  222.                     // line 75
  223.                     echo "                                <div class=\"";
  224.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse75)) {
  225.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse75), "html"nulltrue);
  226.                     } else {
  227.                         echo "col-sm-12 d-flex justify-content-center";
  228.                     }
  229.                     echo "\">
  230.                                     ";
  231.                     // line 77
  232.                     echo "                                    <div class=\"form-group  ";
  233.                     if ((twig_get_attribute($this->env$this->source$context["item"], "inline", [], "any"truetruefalse77) && (twig_get_attribute($this->env$this->source$context["item"], "inline", [], "any"falsefalsefalse77) == "true"))) {
  234.                         echo "d-flex";
  235.                     }
  236.                     echo "\">
  237.                                         ";
  238.                     // line 78
  239.                     echo twig_call_macro($macros["forms"], "macro_checkbox", [twig_get_attribute($this->env$this->source$context["item"], "required", [], "any"falsefalsefalse78), twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse78), twig_get_attribute($this->env$this->source$context["item"], "values", [], "any"falsefalsefalse78)], 78$context$this->getSourceContext());
  240.                     echo "
  241.                                     </div>
  242.                                 </div>
  243.                             ";
  244.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 81
  245. $context["item"], "type", [], "any"falsefalsefalse81) == "paragraph")) {
  246.                     // line 82
  247.                     echo "                                <div class=\"";
  248.                     if (twig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"truetruefalse82)) {
  249.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "classGlobal", [], "any"falsefalsefalse82), "html"nulltrue);
  250.                     } else {
  251.                         echo "col-sm-12";
  252.                     }
  253.                     echo "\">
  254.                                     <p>";
  255.                     // line 83
  256.                     echo $this->extensions['App\Twig\TextExtension']->unescape(twig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse83));
  257.                     echo "</p>
  258.                                 </div>
  259.                             ";
  260.                 } elseif (((twig_get_attribute($this->env$this->source,                 // line 85
  261. $context["item"], "type", [], "any"falsefalsefalse85) == "button") && (twig_get_attribute($this->env$this->source$context["item"], "subtype", [], "any"falsefalsefalse85) == "submit"))) {
  262.                     // line 86
  263.                     echo "                                <div class=\"col-sm-12 d-flex justify-content-center\">
  264.                                     <div class=\"form-group button-submit\">
  265.                                         <button class=\"btn btn-primary\" type=\"submit\">";
  266.                     // line 88
  267.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse88), "html"nulltrue);
  268.                     echo "</button>
  269.                                     </div>
  270.                                 </div>
  271.                             ";
  272.                 }
  273.                 // line 92
  274.                 echo "                            
  275.                         ";
  276.             }
  277.             $_parent $context['_parent'];
  278.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  279.             $context array_intersect_key($context$_parent) + $_parent;
  280.             // line 94
  281.             echo "                    </div>
  282.                 </div>
  283. \t\t\t\t<input type=\"hidden\" id=\"";
  284.             // line 97
  285.             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.'97$this->source); })()), "form", [], "any"falsefalsefalse97), "id", [], "any"falsefalsefalse97), "html"nulltrue);
  286.             echo "_captcha\" name=\"g-recaptcha-response\" value=\"\">
  287. \t\t\t</form>
  288.             </div>
  289. \t\t";
  290.         }
  291.         // line 102
  292.         echo "   
  293.         </div>
  294.     </div>
  295. </section>
  296. ";
  297.         // line 107
  298.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderHorairesPageContact"));
  299.         echo "
  300. ";
  301.         // line 108
  302.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderMapContact"));
  303.         
  304.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  305.         
  306.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  307.     }
  308.     public function getTemplateName()
  309.     {
  310.         return "front/theme1/form/contact_form.html.twig";
  311.     }
  312.     public function isTraitable()
  313.     {
  314.         return false;
  315.     }
  316.     public function getDebugInfo()
  317.     {
  318.         return array (  318 => 108,  314 => 107,  307 => 102,  299 => 97,  294 => 94,  287 => 92,  280 => 88,  276 => 86,  274 => 85,  269 => 83,  260 => 82,  258 => 81,  252 => 78,  245 => 77,  236 => 75,  233 => 74,  231 => 69,  229 => 68,  222 => 64,  217 => 62,  205 => 60,  203 => 59,  195 => 54,  190 => 52,  178 => 50,  176 => 49,  170 => 45,  164 => 43,  158 => 41,  156 => 40,  151 => 38,  135 => 36,  133 => 35,  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,);
  319.     }
  320.     public function getSourceContext()
  321.     {
  322.         return new Source("{% import \"front/\"~ app.request.server.get('APP_THEME') ~\"/form/macro_form.html.twig\" as forms %}
  323. {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderContacts')) }}
  324. <section class=\"contact_form text-center\">
  325. <div class=\"container-fluid wrapper\">
  326.     <div class=\"row justify-content-center\">       
  327. \t\t{% if bloc.form %}
  328.         <div class=\"col-md-8\">
  329. \t\t\t<form id=\"form-{{bloc.form.id}}\" action=\"{{path('save_form')}}\" method=\"post\" class=\"needs-validation row  form-recap {{bloc.form.identifier}}\" novalidate>
  330. \t\t\t\t{% for message in app.flashes('success-form-' ~ bloc.form.id) %}
  331. \t\t\t\t\t<div class=\"alert alert-success alert-form mx-auto\">
  332. \t\t\t\t\t\t{{ message|raw }}
  333. \t\t\t\t\t</div>
  334. \t\t\t\t{% endfor %}
  335. \t\t\t\t{% for message in app.flashes('error-form-' ~ bloc.form.id) %}
  336. \t\t\t\t\t<div class=\"alert alert-danger alert-form mx-auto\">
  337. \t\t\t\t\t\t{{ message|raw }}
  338. \t\t\t\t\t</div>
  339. \t\t\t\t{% endfor %}
  340. \t\t\t\t
  341. \t\t\t\t{% set message = 'validation_form'|trans([],'variable') %}
  342. \t\t\t\t<input type=\"hidden\" value=\"{{bloc.form.id}}\" name=\"IdForm\">
  343. \t\t        
  344.                 <div class=\"contact-border\">
  345.                     <div class=\"icon-header\"></div>
  346.                     <div class=\"row\">
  347.                         {% for item in bloc.form.data %}
  348.                             {% set label = item.label|default(null)%}
  349.                             {% set placeholder = item.placeholder|default(null) %}
  350.     
  351.                             {% if item.type == \"text\" %}
  352.                                 <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 %}>
  353.                                     <div class=\"form-group\">
  354.                                         {{ forms.input(item.name,item.type,item.className,item.required,item.subtype,label,placeholder,item.maxlength|default(null)) }}
  355.                                         <div class=\"invalid-feedback\">
  356.                                             {% if item.name == 'ctc_postcode' %}
  357.                                                 {{'validation_code_postal'|trans([],'variable')}}
  358.                                             {% else %}
  359.                                                 {{item.ErrorMessage|default(message)}}
  360.                                             {% endif %}
  361.                                         </div>
  362.                                     </div>
  363.                                 </div>
  364.                             {% elseif item.type == \"select\" %}
  365.                                 <div {% if item.classGlobal is defined %} class=\"col-sm-12 {{item.classGlobal}}\" {% else %} class=\"col-sm-12\" {% endif %}>
  366.                                     <div class=\"form-group\">
  367.                                         {{ forms.select(item.type,item.name,item.className,item.required,item.multiple,item.values,label,placeholder) }}
  368.                                         <div class=\"invalid-feedback\">
  369.                                             {{item.ErrorMessage|default(message)}}
  370.                                         </div>
  371.                                     </div>
  372.                                 </div>
  373.                             {% elseif item.type == \"textarea\" %}
  374.                                 <div {% if item.classGlobal is defined %} class=\"{{item.classGlobal}}\" {% else %} class=\"col-sm-12\" {% endif %}>
  375.                                     <div class=\"form-group\">
  376.                                         {{ forms.textarea(item.name,item.type,item.className|default(''),item.required,item.subtype,item.label|default(''),item.placeholder|default(''),item.rows|default('')) }}
  377.                                         <div class=\"invalid-feedback\">
  378.                                             {{item.ErrorMessage|default(message)}}
  379.                                         </div>
  380.                                     </div>
  381.                                 </div>
  382.                             {% elseif item.type == \"button\" and item.subtype != \"submit\" %}
  383.                                  {# <div {% if item.classGlobal is defined %} class=\"{{item.classGlobal}}\" {% else %} class=\"col-sm-12\" {% endif %}>
  384.                                     <div class=\"form-group\">
  385.                                         {{ forms.button(item.name,item.type,item.subtype,item.className,item.label) }}
  386.                                     </div>
  387.                                 </div>  #}
  388.                             {% elseif item.type == \"checkbox-group\" %}
  389.                                 <div class=\"{% if item.classGlobal is defined %}{{item.classGlobal}}{% else %}col-sm-12 d-flex justify-content-center{% endif %}\">
  390.                                     {# {% if label %}<label>{{label}}</label>{% endif %} #}
  391.                                     <div class=\"form-group  {% if item.inline is defined and item.inline == \"true\" %}d-flex{% endif %}\">
  392.                                         {{ forms.checkbox(item.required,item.name,item.values) }}
  393.                                     </div>
  394.                                 </div>
  395.                             {% elseif item.type == \"paragraph\" %}
  396.                                 <div class=\"{% if item.classGlobal is defined %}{{item.classGlobal}}{% else %}col-sm-12{% endif %}\">
  397.                                     <p>{{item.label|unescape|raw}}</p>
  398.                                 </div>
  399.                             {% elseif item.type == \"button\" and item.subtype == \"submit\" %}
  400.                                 <div class=\"col-sm-12 d-flex justify-content-center\">
  401.                                     <div class=\"form-group button-submit\">
  402.                                         <button class=\"btn btn-primary\" type=\"submit\">{{item.label }}</button>
  403.                                     </div>
  404.                                 </div>
  405.                             {% endif %}
  406.                             
  407.                         {% endfor %}
  408.                     </div>
  409.                 </div>
  410. \t\t\t\t<input type=\"hidden\" id=\"{{bloc.form.id}}_captcha\" name=\"g-recaptcha-response\" value=\"\">
  411. \t\t\t</form>
  412.             </div>
  413. \t\t{% endif %}
  414.    
  415.         </div>
  416.     </div>
  417. </section>
  418. {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderHorairesPageContact')) }}
  419. {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderMapContact')) }}""front/theme1/form/contact_form.html.twig""/var/www/vhosts/hrz.fr/abs-33-oscar.hrz.fr/templates/front/theme1/form/contact_form.html.twig");
  420.     }
  421. }