<?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;
/* contact.html.twig */
class __TwigTemplate_c374ddcae16da5c597463cd58e027b392ccdc5b1ed3e6423dc66ba01a3228f92 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
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", "contact.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "contact.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "contact.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($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(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Contact";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_body($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(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
echo "
";
// line 7
$context["headerContent"] = $this->extensions['App\Twig\ContentExtension']->Content("Contact", "Header");
// line 8
echo "
";
// line 9
if ((twig_get_attribute($this->env, $this->source, ($context["headerContent"] ?? null), "picture", [], "any", true, true, false, 9) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["headerContent"]) || array_key_exists("headerContent", $context) ? $context["headerContent"] : (function () { throw new RuntimeError('Variable "headerContent" does not exist.', 9, $this->source); })()), "picture", [], "any", false, false, false, 9)))) {
// line 10
echo " ";
$context["backgroundImage"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["headerContent"]) || array_key_exists("headerContent", $context) ? $context["headerContent"] : (function () { throw new RuntimeError('Variable "headerContent" does not exist.', 10, $this->source); })()), "picture", [], "any", false, false, false, 10), 0, [], "array", false, false, false, 10), "path", [], "any", false, false, false, 10);
// line 11
echo " ";
} else {
// line 12
echo " ";
$context["backgroundImage"] = "empty";
// line 13
echo " ";
}
// line 14
echo " <header class=\"header-tracol header-contact col-lg-8 mx-auto\" style=\"background-image: url(";
if ((0 !== twig_compare((isset($context["backgroundImage"]) || array_key_exists("backgroundImage", $context) ? $context["backgroundImage"] : (function () { throw new RuntimeError('Variable "backgroundImage" does not exist.', 14, $this->source); })()), "empty"))) {
echo "'/uploads/images/";
echo twig_escape_filter($this->env, (isset($context["backgroundImage"]) || array_key_exists("backgroundImage", $context) ? $context["backgroundImage"] : (function () { throw new RuntimeError('Variable "backgroundImage" does not exist.', 14, $this->source); })()), "html", null, true);
echo "'";
} else {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/header_contact.jpg"), "html", null, true);
}
echo ");\">
<div class=\"container-fluid\">
<div class=\"col-lg-8 mx-auto div-svg-header\">
<div class=\"header-habiter-div\">
</div>
</div>
</div>
</header>
<div class=\"container-fluid\" style=\"margin-top: 60px; margin-bottom: 80px\">
";
// line 24
$context["contactContent"] = $this->extensions['App\Twig\ContentExtension']->Content("Contact", "Section-1");
// line 25
echo " <div class=\"col-lg-8 mx-auto div-svg-header pre-section\">
<div class=\"col-lg-4\" style=\"font-size: 2.3em;display: flex;flex-direction: column;margin-left: 10px;\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
<path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"/>
</svg>
<h1 class=\"project-title contact\">";
// line 30
if (twig_get_attribute($this->env, $this->source, ($context["contactContent"] ?? null), "name", [], "any", true, true, false, 30)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contactContent"]) || array_key_exists("contactContent", $context) ? $context["contactContent"] : (function () { throw new RuntimeError('Variable "contactContent" does not exist.', 30, $this->source); })()), "name", [], "any", false, false, false, 30), "html", null, true);
} else {
echo "Contactez-nous";
}
echo "</h1>
</div>
<div class=\"separator\"></div>
<div class=\"col-lg-6 pre-section-content\">
";
// line 34
if (twig_get_attribute($this->env, $this->source, ($context["contactContent"] ?? null), "content", [], "any", true, true, false, 34)) {
echo twig_get_attribute($this->env, $this->source, (isset($context["contactContent"]) || array_key_exists("contactContent", $context) ? $context["contactContent"] : (function () { throw new RuntimeError('Variable "contactContent" does not exist.', 34, $this->source); })()), "content", [], "any", false, false, false, 34);
}
// line 35
echo " </div>
</div>
";
// line 39
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 39, $this->source); })()), 'form_start');
echo "
<div id=\"div-form-contact\" class=\"form-group col-lg-8 mx-auto\" style=\"display: flex;\">
<div class=\"col-lg-5\" style=\"display: flex; flex-direction: column; margin-right: 50px\">
<div class=\"form-material floating contact\">
";
// line 43
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 43, $this->source); })()), "name", [], "any", false, false, false, 43), 'widget', ["attr" => ["class" => "form-control", "placeholder" => "Nom*"]]);
echo "
";
// line 44
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 44, $this->source); })()), "name", [], "any", false, false, false, 44), 'errors');
echo "
</div>
<div class=\"form-material floating contact\">
";
// line 47
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 47, $this->source); })()), "firstname", [], "any", false, false, false, 47), 'widget', ["attr" => ["class" => "form-control", "placeholder" => "Prénom"]]);
echo "
";
// line 48
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 48, $this->source); })()), "firstname", [], "any", false, false, false, 48), 'errors');
echo "
</div>
<div class=\"form-material floating contact\">
";
// line 51
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 51, $this->source); })()), "mail", [], "any", false, false, false, 51), 'widget', ["attr" => ["class" => "form-control", "placeholder" => "Mail*"]]);
echo "
";
// line 52
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 52, $this->source); })()), "mail", [], "any", false, false, false, 52), 'errors');
echo "
</div>
<div class=\"form-material floating contact\">
";
// line 55
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 55, $this->source); })()), "phone", [], "any", false, false, false, 55), 'widget', ["attr" => ["class" => "form-control", "placeholder" => "Téléphone"]]);
echo "
";
// line 56
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 56, $this->source); })()), "phone", [], "any", false, false, false, 56), 'errors');
echo "
</div>
<div class=\"form-material floating contact\">
";
// line 59
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 59, $this->source); })()), "file", [], "any", false, false, false, 59), 'widget', ["attr" => ["class" => "form-control file-select", "placeholder" => "Joindre un fichier   (.doc, .pdf, .jpeg / max. 5mo) "]]);
echo "
";
// line 60
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 60, $this->source); })()), "file", [], "any", false, false, false, 60), 'errors');
echo "
</div>
</div>
<div class=\"col-lg-6\" style=\"display: flex; flex-direction: column\">
<div class=\"form-material floating contact selectdiv\">
";
// line 65
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 65, $this->source); })()), "object", [], "any", false, false, false, 65), 'widget', ["attr" => ["class" => "form-control"]]);
echo "
";
// line 66
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 66, $this->source); })()), "object", [], "any", false, false, false, 66), 'errors');
echo "
</div>
<div class=\"form-material floating contact\">
";
// line 69
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 69, $this->source); })()), "message", [], "any", false, false, false, 69), 'widget', ["attr" => ["class" => "form-control"]]);
echo "
";
// line 70
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 70, $this->source); })()), "message", [], "any", false, false, false, 70), 'errors');
echo "
</div>
</div>
<div class=\"col-md-1\">
<div class=\"submit-contact-button btn-contact\">
<div>
<button id=\"login_user\" class=\"col-lg-12 offset-lg-4btn btn-primary\" type=\"submit\" style=\"background-color: #f6a400; border-color: #f6a400;\">
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<svg id=\"SVGDoc\" width=\"19\" height=\"15\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:avocode=\"https://avocode.com/\" viewBox=\"0 0 19 15\"><defs></defs><desc>Generated with Avocode.</desc><g><g transform=\"rotate(90 9.5 7.5)\"><title>np_arrow-up_888648_000000</title><path d=\"M16.10552,5.28141v0l-6.60555,-6.60459v0l-6.60554,6.60459v0l1.3808,1.3808v0l4.23854,-4.23949v0v13.90055v0h1.97232v0v-13.90055v0l4.23855,4.23949v0z\" fill=\"#ffffff\" fill-opacity=\"1\"></path></g></g></svg>
</button>
</div>
</div>
</div>
";
// line 84
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 84, $this->source); })()), 'form_end');
echo "
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "contact.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 250 => 84, 233 => 70, 229 => 69, 223 => 66, 219 => 65, 211 => 60, 207 => 59, 201 => 56, 197 => 55, 191 => 52, 187 => 51, 181 => 48, 177 => 47, 171 => 44, 167 => 43, 160 => 39, 154 => 35, 150 => 34, 139 => 30, 132 => 25, 130 => 24, 110 => 14, 107 => 13, 104 => 12, 101 => 11, 98 => 10, 96 => 9, 93 => 8, 91 => 7, 88 => 6, 78 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}Contact{% endblock %}
{% block body %}
{% set headerContent = content('Contact', 'Header') %}
{% if headerContent.picture is defined and headerContent.picture is not empty %}
{% set backgroundImage = headerContent.picture[0].path %}
{% else %}
{% set backgroundImage = 'empty' %}
{% endif %}
<header class=\"header-tracol header-contact col-lg-8 mx-auto\" style=\"background-image: url({% if backgroundImage != 'empty' %}'/uploads/images/{{ backgroundImage }}'{% else %}{{ asset('img/header_contact.jpg') }}{% endif %});\">
<div class=\"container-fluid\">
<div class=\"col-lg-8 mx-auto div-svg-header\">
<div class=\"header-habiter-div\">
</div>
</div>
</div>
</header>
<div class=\"container-fluid\" style=\"margin-top: 60px; margin-bottom: 80px\">
{% set contactContent = content('Contact', 'Section-1') %}
<div class=\"col-lg-8 mx-auto div-svg-header pre-section\">
<div class=\"col-lg-4\" style=\"font-size: 2.3em;display: flex;flex-direction: column;margin-left: 10px;\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
<path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"/>
</svg>
<h1 class=\"project-title contact\">{% if contactContent.name is defined %}{{ contactContent.name }}{% else %}Contactez-nous{% endif %}</h1>
</div>
<div class=\"separator\"></div>
<div class=\"col-lg-6 pre-section-content\">
{% if contactContent.content is defined %}{{ contactContent.content|raw }}{% endif %}
</div>
</div>
{{ form_start(form) }}
<div id=\"div-form-contact\" class=\"form-group col-lg-8 mx-auto\" style=\"display: flex;\">
<div class=\"col-lg-5\" style=\"display: flex; flex-direction: column; margin-right: 50px\">
<div class=\"form-material floating contact\">
{{ form_widget(form.name, {'attr': { 'class':'form-control', 'placeholder': 'Nom*'}}) }}
{{ form_errors(form.name) }}
</div>
<div class=\"form-material floating contact\">
{{ form_widget(form.firstname, {'attr': { 'class':'form-control', 'placeholder': 'Prénom'}}) }}
{{ form_errors(form.firstname) }}
</div>
<div class=\"form-material floating contact\">
{{ form_widget(form.mail, {'attr': { 'class':'form-control', 'placeholder': 'Mail*'}}) }}
{{ form_errors(form.mail) }}
</div>
<div class=\"form-material floating contact\">
{{ form_widget(form.phone, {'attr': { 'class':'form-control', 'placeholder': 'Téléphone'}}) }}
{{ form_errors(form.phone) }}
</div>
<div class=\"form-material floating contact\">
{{ form_widget(form.file, {'attr': { 'class':'form-control file-select', 'placeholder': 'Joindre un fichier   (.doc, .pdf, .jpeg / max. 5mo) '}}) }}
{{ form_errors(form.file) }}
</div>
</div>
<div class=\"col-lg-6\" style=\"display: flex; flex-direction: column\">
<div class=\"form-material floating contact selectdiv\">
{{ form_widget(form.object, {'attr': { 'class':'form-control'}}) }}
{{ form_errors(form.object) }}
</div>
<div class=\"form-material floating contact\">
{{ form_widget(form.message, {'attr': { 'class':'form-control'}}) }}
{{ form_errors(form.message) }}
</div>
</div>
<div class=\"col-md-1\">
<div class=\"submit-contact-button btn-contact\">
<div>
<button id=\"login_user\" class=\"col-lg-12 offset-lg-4btn btn-primary\" type=\"submit\" style=\"background-color: #f6a400; border-color: #f6a400;\">
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<svg id=\"SVGDoc\" width=\"19\" height=\"15\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:avocode=\"https://avocode.com/\" viewBox=\"0 0 19 15\"><defs></defs><desc>Generated with Avocode.</desc><g><g transform=\"rotate(90 9.5 7.5)\"><title>np_arrow-up_888648_000000</title><path d=\"M16.10552,5.28141v0l-6.60555,-6.60459v0l-6.60554,6.60459v0l1.3808,1.3808v0l4.23854,-4.23949v0v13.90055v0h1.97232v0v-13.90055v0l4.23855,4.23949v0z\" fill=\"#ffffff\" fill-opacity=\"1\"></path></g></g></svg>
</button>
</div>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
{% endblock %}
", "contact.html.twig", "/home/juca-stage/sites/sym/tracol/templates/contact.html.twig");
}
}