<?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\">
";
// line 7
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", false, false, false, 7)) {
// line 8
echo " ";
if (((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.', 8, $this->source); })()), "form", [], "any", false, false, false, 8), "titre", [], "any", false, false, false, 8) != "") || (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.', 8, $this->source); })()), "form", [], "any", false, false, false, 8), "texte", [], "any", false, false, false, 8) != ""))) {
// line 9
echo " <div class=\"titre-content-contact\">
";
// line 10
if ((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), "titre", [], "any", false, false, false, 10) != "")) {
// line 11
echo " <h2>";
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.', 11, $this->source); })()), "form", [], "any", false, false, false, 11), "titre", [], "any", false, false, false, 11), "html", null, true);
echo "</h2>
";
}
// line 13
echo " ";
if ((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.', 13, $this->source); })()), "form", [], "any", false, false, false, 13), "texte", [], "any", false, false, false, 13) != "")) {
// line 14
echo " <div class=\"texte-in-contact\">";
echo 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.', 14, $this->source); })()), "form", [], "any", false, false, false, 14), "texte", [], "any", false, false, false, 14);
echo "</div>
";
}
// line 16
echo " </div>
";
}
// line 18
echo " ";
}
// line 19
echo "
";
// line 20
$context["espace_client"] = 1;
echo "
";
// line 22
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", false, false, false, 22)) && 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.', 22, $this->source); })()), "session", [], "any", false, false, false, 22), "get", [0 => "panier"], "method", false, false, false, 22))) {
// line 23
echo " ";
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->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.', 23, $this->source); })()), "session", [], "any", false, false, false, 23), "get", [0 => "panier"], "method", false, false, false, 23)]));
echo "
";
}
// line 25
echo "
<div class=\"row justify-content-center\">
\t\t";
// line 28
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", false, false, false, 28)) {
// line 29
echo " <div class=\"col-md-8\">
\t\t\t<form id=\"form-";
// line 30
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.', 30, $this->source); })()), "form", [], "any", false, false, false, 30), "id", [], "any", false, false, false, 30), "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.', 30, $this->source); })()), "form", [], "any", false, false, false, 30), "identifier", [], "any", false, false, false, 30), "html", null, true);
echo "\" enctype=\"multipart/form-data\" novalidate>
\t\t\t\t";
// line 32
$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.', 32, $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.', 32, $this->source); })()), "form", [], "any", false, false, false, 32), "id", [], "any", false, false, false, 32))], "method", false, false, false, 32));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 33
echo "\t\t\t\t\t<div class=\"alert alert-success alert-form mx-auto\">
\t\t\t\t\t\t";
// line 34
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 37
echo "
\t\t\t\t";
// line 38
$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.', 38, $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.', 38, $this->source); })()), "form", [], "any", false, false, false, 38), "id", [], "any", false, false, false, 38))], "method", false, false, false, 38));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 39
echo "\t\t\t\t\t<div class=\"alert alert-danger alert-form mx-auto\">
\t\t\t\t\t\t";
// line 40
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 43
echo "
";
// line 44
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); })())))) {
// line 45
echo " <h2>Je suis intéressé par : ";
echo twig_escape_filter($this->env, twig_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", false, false, false, 45), "html", null, true);
echo "</h2>
<input type=\"hidden\" value=\"";
// line 46
echo twig_escape_filter($this->env, twig_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", false, false, false, 46), "html", null, true);
echo "\" name=\"id_product\">
";
}
// line 48
echo "
\t\t\t\t
\t\t\t\t";
// line 50
$context["message"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("validation_form", [], "variable");
// line 51
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.', 51, $this->source); })()), "form", [], "any", false, false, false, 51), "id", [], "any", false, false, false, 51), "html", null, true);
echo "\" name=\"IdForm\">
\t\t
<div class=\"contact-border\">
<div class=\"icon-header\"></div>
<div class=\"row\">
";
// line 56
$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.', 56, $this->source); })()), "form", [], "any", false, false, false, 56), "data", [], "any", false, false, false, 56));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 57
echo " ";
$context["label"] = ((twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", true, true, false, 57)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 57), null)) : (null));
// line 58
echo " ";
$context["placeholder"] = ((twig_get_attribute($this->env, $this->source, $context["item"], "placeholder", [], "any", true, true, false, 58)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "placeholder", [], "any", false, false, false, 58), null)) : (null));
// line 59
echo "
";
// line 60
if ((twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 60) == "header")) {
// line 61
echo " <div class=\"col-md-12\">
<";
// line 62
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 62), "html", null, true);
echo " class=\"header-title\">";
echo (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 62, $this->source); })());
echo "</";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 62), "html", null, true);
echo ">
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 65
$context["item"], "type", [], "any", false, false, false, 65) == "text")) {
// line 66
echo " <div ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", true, true, false, 66)) {
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, 66), "html", null, true);
echo " ";
echo (((twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 66) == "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, 66) == "ctc_city")) ? ("ctc_city") : (""));
echo "\" ";
}
echo ">
<div class=\"form-group\">
";
// line 68
echo twig_call_macro($macros["forms"], "macro_input", [twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 68), twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 68), twig_get_attribute($this->env, $this->source, $context["item"], "className", [], "any", false, false, false, 68), twig_get_attribute($this->env, $this->source, $context["item"], "required", [], "any", false, false, false, 68), twig_get_attribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 68), (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", true, true, false, 68)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "maxlength", [], "any", false, false, false, 68), null)) : (null))], 68, $context, $this->getSourceContext());
echo "
<div class=\"invalid-feedback\">
";
// line 70
if ((twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 70) == "ctc_postcode")) {
// line 71
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 73
echo " ";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", true, true, false, 73)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", false, false, false, 73), (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", null, true);
echo "
";
}
// line 75
echo " </div>
</div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 79
$context["item"], "type", [], "any", false, false, false, 79) == "select")) {
// line 80
echo " <div ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", true, true, false, 80)) {
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, 80), "html", null, true);
echo "\" ";
} else {
echo " class=\"col-sm-12\" ";
}
echo ">
<div class=\"form-group\">
";
// line 82
echo twig_call_macro($macros["forms"], "macro_select", [twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 82), twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 82), twig_get_attribute($this->env, $this->source, $context["item"], "className", [], "any", false, false, false, 82), twig_get_attribute($this->env, $this->source, $context["item"], "required", [], "any", false, false, false, 82), twig_get_attribute($this->env, $this->source, $context["item"], "multiple", [], "any", false, false, false, 82), twig_get_attribute($this->env, $this->source, $context["item"], "values", [], "any", false, false, false, 82), (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());
echo "
<div class=\"invalid-feedback\">
";
// line 84
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", true, true, false, 84)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", false, false, false, 84), (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", null, true);
echo "
</div>
</div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 90
$context["item"], "type", [], "any", false, false, false, 90) == "date")) {
// line 91
echo " <div class=\"date-form col-md-12 ";
((twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", true, true, false, 91)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", false, false, false, 91), "html", null, true))) : (print ("")));
echo "\" >
";
// line 92
echo twig_call_macro($macros["forms"], "macro_input", [twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 92), (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", false, false, false, 92), twig_get_attribute($this->env, $this->source, $context["item"], "required", [], "any", false, false, false, 92), twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 92), (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());
echo "
<div class=\"invalid-feedback\">
";
// line 95
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", true, true, false, 95)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", false, false, false, 95), (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", null, true);
echo "
</div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 99
$context["item"], "type", [], "any", false, false, false, 99) == "textarea")) {
// line 100
echo " <div ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", true, true, false, 100)) {
echo " class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", false, false, false, 100), "html", null, true);
echo "\" ";
} else {
echo " class=\"col-sm-12\" ";
}
echo ">
<div class=\"form-group\">
";
// line 102
if ((twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", true, true, false, 102) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 102)))) {
// line 103
echo " <label class=\"label-control\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 103), "html", null, true);
echo "</label>
";
}
// line 105
echo " <textarea name=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 105), "html", null, true);
echo "\" class=\"";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["item"], "className", [], "any", true, true, false, 105)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "className", [], "any", false, false, false, 105), "")) : ("")), "html", null, true);
echo "\" required=\"";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["item"], "required", [], "any", true, true, false, 105)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "required", [], "any", false, false, false, 105), "false")) : ("false")), "html", null, true);
echo "\" rows=\"";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["item"], "rows", [], "any", true, true, false, 105)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "rows", [], "any", false, false, false, 105), "6")) : ("6")), "html", null, true);
echo "\" placeholder=\"";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["item"], "placeholder", [], "any", true, true, false, 105)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "placeholder", [], "any", false, false, false, 105), "")) : ("")), "html", null, true);
echo "\"></textarea>
<div class=\"invalid-feedback\">
";
// line 107
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", true, true, false, 107)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", false, false, false, 107), (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", null, true);
echo "
</div>
</div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 112
$context["item"], "type", [], "any", false, false, false, 112) == "file")) {
// line 113
echo " <div ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", true, true, false, 113)) {
echo " class=\"col-md-6 col-lg-4 input-file ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", false, false, false, 113), "html", null, true);
echo "\" ";
} else {
echo " class=\"col-md-6 text-left\" ";
}
echo ">
<div class=\"form-group\">
";
// line 115
echo twig_call_macro($macros["forms"], "macro_input", [twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 115), twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 115), twig_get_attribute($this->env, $this->source, $context["item"], "className", [], "any", false, false, false, 115), twig_get_attribute($this->env, $this->source, $context["item"], "required", [], "any", false, false, false, 115), twig_get_attribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 115), (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", true, true, false, 115)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "maxlength", [], "any", false, false, false, 115), null)) : (null))], 115, $context, $this->getSourceContext());
echo "
<div class=\"invalid-feedback\">
";
// line 117
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", true, true, false, 117)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["item"], "ErrorMessage", [], "any", false, false, false, 117), (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", null, true);
echo "
</div>
</div>
</div>
";
} elseif (((twig_get_attribute($this->env, $this->source, // line 122
$context["item"], "type", [], "any", false, false, false, 122) == "button") && (twig_get_attribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 122) != "submit"))) {
// line 123
echo " ";
// line 128
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 128) == "checkbox-group")) {
// line 129
echo " <div class=\"";
if (twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", true, true, false, 129)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", false, false, false, 129), "html", null, true);
} else {
echo "col-sm-12 d-flex justify-content-center";
}
echo "\">
";
// line 131
echo " <div class=\"form-group ";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "inline", [], "any", true, true, false, 131) && (twig_get_attribute($this->env, $this->source, $context["item"], "inline", [], "any", false, false, false, 131) == "true"))) {
echo "d-flex";
}
echo "\">
";
// line 132
echo twig_call_macro($macros["forms"], "macro_checkbox", [twig_get_attribute($this->env, $this->source, $context["item"], "required", [], "any", false, false, false, 132), twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 132), twig_get_attribute($this->env, $this->source, $context["item"], "values", [], "any", false, false, false, 132)], 132, $context, $this->getSourceContext());
echo "
</div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 135
$context["item"], "type", [], "any", false, false, false, 135) == "paragraph")) {
// line 136
echo " <div class=\"";
if (twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", true, true, false, 136)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "classGlobal", [], "any", false, false, false, 136), "html", null, true);
} else {
echo "col-sm-12";
}
echo "\">
<p>";
// line 137
echo $this->extensions['App\Twig\TextExtension']->unescape(twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 137));
echo "</p>
</div>
";
} elseif (((twig_get_attribute($this->env, $this->source, // line 139
$context["item"], "type", [], "any", false, false, false, 139) == "button") && (twig_get_attribute($this->env, $this->source, $context["item"], "subtype", [], "any", false, false, false, 139) == "submit"))) {
// line 140
echo " <div class=\"col-sm-12 d-flex justify-content-center\">
<div class=\"form-group button-submit\">
<button class=\"btn btn-cms\" type=\"submit\">";
// line 142
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 142), "html", null, true);
echo "</button>
</div>
</div>
";
}
// line 146
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 148
echo " </div>
</div>
\t\t\t\t<input type=\"hidden\" id=\"";
// line 151
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.', 151, $this->source); })()), "form", [], "any", false, false, false, 151), "id", [], "any", false, false, false, 151), "html", null, true);
echo "_captcha\" name=\"g-recaptcha-response\" value=\"\">
\t\t\t</form>
</div>
\t\t";
}
// line 157
echo "
</div>
</div>
</section>
<script>
const filesInput = document.querySelectorAll('input[type=\"file\"]');
if(filesInput){
filesInput.forEach(function(fileInput) {
fileInput.setAttribute('accept', '.pdf,.doc,.docx,.txt,.jpg,.jpeg,.png');
});
}
</script>
";
// line 170
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderHorairesPageContact"));
echo "
";
// line 171
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 ( 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,);
}
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\">
{% if bloc.form %}
{% if bloc.form.titre != '' or bloc.form.texte != '' %}
<div class=\"titre-content-contact\">
{% if bloc.form.titre != '' %}
<h2>{{bloc.form.titre}}</h2>
{% endif %}
{% if bloc.form.texte != '' %}
<div class=\"texte-in-contact\">{{bloc.form.texte|raw}}</div>
{% endif %}
</div>
{% endif %}
{% endif %}
{% set espace_client = 1 %}
{% if not espace_client and parametreProduits() and parametreProduits().actifpanier and app.session.get('panier') %}
{{ render(controller('App\\\\Controller\\\\Front\\\\CartController::panierContact', {'panier': app.session.get('panier')})) }}
{% endif %}
<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}}\" enctype=\"multipart/form-data\" 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 %}
{% if product_interesse is defined and product_interesse is not empty %}
<h2>Je suis intéressé par : {{product_interesse.titre}}</h2>
<input type=\"hidden\" value=\"{{product_interesse.id}}\" name=\"id_product\">
{% endif %}
\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 == \"header\" %}
<div class=\"col-md-12\">
<{{item.subtype}} class=\"header-title\">{{label|raw}}</{{item.subtype}}>
</div>
{% elseif 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 == 'date' %}
<div class=\"date-form col-md-12 {{ item.classGlobal is defined ? item.classGlobal : '' }}\" >
{{ forms.input(item.name,placeholder,item.className,item.required,item.type,label) }}
<div class=\"invalid-feedback\">
{{item.ErrorMessage|default(message)}}
</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\">
{% if item.label is defined and item.label is not empty %}
<label class=\"label-control\">{{item.label}}</label>
{% endif %}
<textarea name=\"{{item.name}}\" class=\"{{item.className|default('')}}\" required=\"{{item.required|default('false')}}\" rows=\"{{item.rows|default('6')}}\" placeholder=\"{{item.placeholder|default('')}}\"></textarea>
<div class=\"invalid-feedback\">
{{item.ErrorMessage|default(message)}}
</div>
</div>
</div>
{% elseif item.type == \"file\" %}
<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 %}>
<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\">
{{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-cms\" 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>
<script>
const filesInput = document.querySelectorAll('input[type=\"file\"]');
if(filesInput){
filesInput.forEach(function(fileInput) {
fileInput.setAttribute('accept', '.pdf,.doc,.docx,.txt,.jpg,.jpeg,.png');
});
}
</script>
{{ 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/oscar-multilangue.hrz.fr/templates/front/theme1/form/contact_form.html.twig");
}
}