<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front/theme1/form/contact_form.html.twig */
class __TwigTemplate_cd05990d6dd31095e0741bb7a30f8fca1f4ce0ccca9230c98e419258e2da23f6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/form/contact_form.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/form/contact_form.html.twig"));
// line 1
$macros["forms"] = $this->macros["forms"] = $this->loadTemplate((("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 1, $this->source); })()), "request", [], "any", false, false, false, 1), "server", [], "any", false, false, false, 1), "get", [0 => "APP_THEME"], "method", false, false, false, 1)) . "/form/macro_form.html.twig"), "front/theme1/form/contact_form.html.twig", 1)->unwrap();
// line 2
echo "
";
// line 3
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderContacts"));
echo "
<section class=\"contact_form text-center\">
<div class=\"container-fluid wrapper\">
<div class=\"row justify-content-center\">
\t\t";
// line 8
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", false, false, false, 8)) {
// line 9
echo " <div class=\"col-md-8\">
\t\t\t<form id=\"form-";
// line 10
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 10, $this->source); })()), "form", [], "any", false, false, false, 10), "id", [], "any", false, false, false, 10), "html", null, true);
echo "\" action=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("save_form");
echo "\" method=\"post\" class=\"needs-validation row form-recap ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 10, $this->source); })()), "form", [], "any", false, false, false, 10), "identifier", [], "any", false, false, false, 10), "html", null, true);
echo "\" novalidate>
\t\t\t\t";
// line 12
$context['_parent'] = $context;
$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", [0 => ("success-form-" . twig_get_attribute($this->env, $this->source, 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.', 12, $this->source); })()), "form", [], "any", false, false, false, 12), "id", [], "any", false, false, false, 12))], "method", false, false, false, 12));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 13
echo "\t\t\t\t\t<div class=\"alert alert-success alert-form mx-auto\">
\t\t\t\t\t\t";
// line 14
echo $context["message"];
echo "
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 17
echo "
\t\t\t\t";
// line 18
$context['_parent'] = $context;
$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", [0 => ("error-form-" . twig_get_attribute($this->env, $this->source, 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.', 18, $this->source); })()), "form", [], "any", false, false, false, 18), "id", [], "any", false, false, false, 18))], "method", false, false, false, 18));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 19
echo "\t\t\t\t\t<div class=\"alert alert-danger alert-form mx-auto\">
\t\t\t\t\t\t";
// line 20
echo $context["message"];
echo "
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 23
echo "\t\t\t\t
\t\t\t\t";
// line 24
$context["message"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("validation_form", [], "variable");
// line 25
echo "\t\t\t\t<input type=\"hidden\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 25, $this->source); })()), "form", [], "any", false, false, false, 25), "id", [], "any", false, false, false, 25), "html", null, true);
echo "\" name=\"IdForm\">
\t\t
<div class=\"contact-border\">
<div class=\"icon-header\"></div>
<div class=\"row\">
";
// line 30
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, 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.', 30, $this->source); })()), "form", [], "any", false, false, false, 30), "data", [], "any", false, false, false, 30));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 31
echo " ";
$context["label"] = ((twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", true, true, false, 31)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 31), null)) : (null));
// line 32
echo " ";
$context["placeholder"] = ((twig_get_attribute($this->env, $this->source, $context["item"], "placeholder", [], "any", true, true, false, 32)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "placeholder", [], "any", false, false, false, 32), null)) : (null));
// line 33
echo "
";
// line 35
if ((twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 35) == "text")) {
// line 36
echo " <div ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", true, true, false, 36)) {
echo " class=\"col-md-6 col-lg-4 ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", false, false, false, 36), "html", null, true);
echo " ";
echo (((twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 36) == "ctc_city")) ? ("ctc_city") : (""));
echo "\" ";
} else {
echo " class=\"col-md-6 col-lg-4 ";
echo (((twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 36) == "ctc_city")) ? ("ctc_city") : (""));
echo "\" ";
}
echo ">
<div class=\"form-group\">
";
// line 38
echo twig_call_macro($macros["forms"], "macro_input", [twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 38), twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 38), twig_get_attribute($this->env, $this->source, $context["item"], "className", [], "any", false, false, false, 38), twig_get_attribute($this->env, $this->source, $context["item"], "required", [], "any", false, false, false, 38), twig_get_attribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 38), (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", true, true, false, 38)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "maxlength", [], "any", false, false, false, 38), null)) : (null))], 38, $context, $this->getSourceContext());
echo "
<div class=\"invalid-feedback\">
";
// line 40
if ((twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 40) == "ctc_postcode")) {
// line 41
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("validation_code_postal", [], "variable"), "html", null, true);
echo "
";
} else {
// line 43
echo " ";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", true, true, false, 43)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", false, false, false, 43), (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", null, true);
echo "
";
}
// line 45
echo " </div>
</div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 49
$context["item"], "type", [], "any", false, false, false, 49) == "select")) {
// line 50
echo " <div ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", true, true, false, 50)) {
echo " class=\"col-sm-12 ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", false, false, false, 50), "html", null, true);
echo "\" ";
} else {
echo " class=\"col-sm-12\" ";
}
echo ">
<div class=\"form-group\">
";
// line 52
echo twig_call_macro($macros["forms"], "macro_select", [twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 52), twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 52), twig_get_attribute($this->env, $this->source, $context["item"], "className", [], "any", false, false, false, 52), twig_get_attribute($this->env, $this->source, $context["item"], "required", [], "any", false, false, false, 52), twig_get_attribute($this->env, $this->source, $context["item"], "multiple", [], "any", false, false, false, 52), twig_get_attribute($this->env, $this->source, $context["item"], "values", [], "any", false, false, false, 52), (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());
echo "
<div class=\"invalid-feedback\">
";
// line 54
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", true, true, false, 54)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", false, false, false, 54), (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", null, true);
echo "
</div>
</div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 59
$context["item"], "type", [], "any", false, false, false, 59) == "textarea")) {
// line 60
echo " <div ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", true, true, false, 60)) {
echo " class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", false, false, false, 60), "html", null, true);
echo "\" ";
} else {
echo " class=\"col-sm-12\" ";
}
echo ">
<div class=\"form-group\">
";
// line 62
echo twig_call_macro($macros["forms"], "macro_textarea", [twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 62), twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 62), ((twig_get_attribute($this->env, $this->source, $context["item"], "className", [], "any", true, true, false, 62)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "className", [], "any", false, false, false, 62), "")) : ("")), twig_get_attribute($this->env, $this->source, $context["item"], "required", [], "any", false, false, false, 62), twig_get_attribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 62), ((twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", true, true, false, 62)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 62), "")) : ("")), ((twig_get_attribute($this->env, $this->source, $context["item"], "placeholder", [], "any", true, true, false, 62)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "placeholder", [], "any", false, false, false, 62), "")) : ("")), ((twig_get_attribute($this->env, $this->source, $context["item"], "rows", [], "any", true, true, false, 62)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "rows", [], "any", false, false, false, 62), "")) : (""))], 62, $context, $this->getSourceContext());
echo "
<div class=\"invalid-feedback\">
";
// line 64
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", true, true, false, 64)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", false, false, false, 64), (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", null, true);
echo "
</div>
</div>
</div>
";
} elseif (((twig_get_attribute($this->env, $this->source, // line 68
$context["item"], "type", [], "any", false, false, false, 68) == "button") && (twig_get_attribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 68) != "submit"))) {
// line 69
echo " ";
// line 74
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 74) == "checkbox-group")) {
// line 75
echo " <div class=\"";
if (twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", true, true, false, 75)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", false, false, false, 75), "html", null, true);
} else {
echo "col-sm-12 d-flex justify-content-center";
}
echo "\">
";
// line 77
echo " <div class=\"form-group ";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "inline", [], "any", true, true, false, 77) && (twig_get_attribute($this->env, $this->source, $context["item"], "inline", [], "any", false, false, false, 77) == "true"))) {
echo "d-flex";
}
echo "\">
";
// line 78
echo twig_call_macro($macros["forms"], "macro_checkbox", [twig_get_attribute($this->env, $this->source, $context["item"], "required", [], "any", false, false, false, 78), twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 78), twig_get_attribute($this->env, $this->source, $context["item"], "values", [], "any", false, false, false, 78)], 78, $context, $this->getSourceContext());
echo "
</div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 81
$context["item"], "type", [], "any", false, false, false, 81) == "paragraph")) {
// line 82
echo " <div class=\"";
if (twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", true, true, false, 82)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", false, false, false, 82), "html", null, true);
} else {
echo "col-sm-12";
}
echo "\">
<p>";
// line 83
echo $this->extensions['App\Twig\TextExtension']->unescape(twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 83));
echo "</p>
</div>
";
} elseif (((twig_get_attribute($this->env, $this->source, // line 85
$context["item"], "type", [], "any", false, false, false, 85) == "button") && (twig_get_attribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 85) == "submit"))) {
// line 86
echo " <div class=\"col-sm-12 d-flex justify-content-center\">
<div class=\"form-group button-submit\">
<button class=\"btn btn-primary\" type=\"submit\">";
// line 88
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 88), "html", null, true);
echo "</button>
</div>
</div>
";
}
// line 92
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 94
echo " </div>
</div>
\t\t\t\t<input type=\"hidden\" id=\"";
// line 97
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 97, $this->source); })()), "form", [], "any", false, false, false, 97), "id", [], "any", false, false, false, 97), "html", null, true);
echo "_captcha\" name=\"g-recaptcha-response\" value=\"\">
\t\t\t</form>
</div>
\t\t";
}
// line 102
echo "
</div>
</div>
</section>
";
// line 107
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderHorairesPageContact"));
echo "
";
// line 108
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderMapContact"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "front/theme1/form/contact_form.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% import \"front/\"~ app.request.server.get('APP_THEME') ~\"/form/macro_form.html.twig\" as forms %}
{{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderContacts')) }}
<section class=\"contact_form text-center\">
<div class=\"container-fluid wrapper\">
<div class=\"row justify-content-center\">
\t\t{% if bloc.form %}
<div class=\"col-md-8\">
\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>
\t\t\t\t{% for message in app.flashes('success-form-' ~ bloc.form.id) %}
\t\t\t\t\t<div class=\"alert alert-success alert-form mx-auto\">
\t\t\t\t\t\t{{ message|raw }}
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t\t{% for message in app.flashes('error-form-' ~ bloc.form.id) %}
\t\t\t\t\t<div class=\"alert alert-danger alert-form mx-auto\">
\t\t\t\t\t\t{{ message|raw }}
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t\t
\t\t\t\t{% set message = 'validation_form'|trans([],'variable') %}
\t\t\t\t<input type=\"hidden\" value=\"{{bloc.form.id}}\" name=\"IdForm\">
\t\t
<div class=\"contact-border\">
<div class=\"icon-header\"></div>
<div class=\"row\">
{% for item in bloc.form.data %}
{% set label = item.label|default(null)%}
{% set placeholder = item.placeholder|default(null) %}
{% if item.type == \"text\" %}
<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 %}>
<div class=\"form-group\">
{{ forms.input(item.name,item.type,item.className,item.required,item.subtype,label,placeholder,item.maxlength|default(null)) }}
<div class=\"invalid-feedback\">
{% if item.name == 'ctc_postcode' %}
{{'validation_code_postal'|trans([],'variable')}}
{% else %}
{{item.ErrorMessage|default(message)}}
{% endif %}
</div>
</div>
</div>
{% elseif item.type == \"select\" %}
<div {% if item.classGlobal is defined %} class=\"col-sm-12 {{item.classGlobal}}\" {% else %} class=\"col-sm-12\" {% endif %}>
<div class=\"form-group\">
{{ forms.select(item.type,item.name,item.className,item.required,item.multiple,item.values,label,placeholder) }}
<div class=\"invalid-feedback\">
{{item.ErrorMessage|default(message)}}
</div>
</div>
</div>
{% elseif item.type == \"textarea\" %}
<div {% if item.classGlobal is defined %} class=\"{{item.classGlobal}}\" {% else %} class=\"col-sm-12\" {% endif %}>
<div class=\"form-group\">
{{ forms.textarea(item.name,item.type,item.className|default(''),item.required,item.subtype,item.label|default(''),item.placeholder|default(''),item.rows|default('')) }}
<div class=\"invalid-feedback\">
{{item.ErrorMessage|default(message)}}
</div>
</div>
</div>
{% elseif item.type == \"button\" and item.subtype != \"submit\" %}
{# <div {% if item.classGlobal is defined %} class=\"{{item.classGlobal}}\" {% else %} class=\"col-sm-12\" {% endif %}>
<div class=\"form-group\">
{{ forms.button(item.name,item.type,item.subtype,item.className,item.label) }}
</div>
</div> #}
{% elseif item.type == \"checkbox-group\" %}
<div class=\"{% if item.classGlobal is defined %}{{item.classGlobal}}{% else %}col-sm-12 d-flex justify-content-center{% endif %}\">
{# {% if label %}<label>{{label}}</label>{% endif %} #}
<div class=\"form-group {% if item.inline is defined and item.inline == \"true\" %}d-flex{% endif %}\">
{{ forms.checkbox(item.required,item.name,item.values) }}
</div>
</div>
{% elseif item.type == \"paragraph\" %}
<div class=\"{% if item.classGlobal is defined %}{{item.classGlobal}}{% else %}col-sm-12{% endif %}\">
<p>{{item.label|unescape|raw}}</p>
</div>
{% elseif item.type == \"button\" and item.subtype == \"submit\" %}
<div class=\"col-sm-12 d-flex justify-content-center\">
<div class=\"form-group button-submit\">
<button class=\"btn btn-primary\" type=\"submit\">{{item.label }}</button>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
\t\t\t\t<input type=\"hidden\" id=\"{{bloc.form.id}}_captcha\" name=\"g-recaptcha-response\" value=\"\">
\t\t\t</form>
</div>
\t\t{% endif %}
</div>
</div>
</section>
{{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderHorairesPageContact')) }}
{{ 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");
}
}