<?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/map_tracol.png"), "html", null, true);
}
echo ");background-size:cover;\">
<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>
";
// line 32
if (twig_get_attribute($this->env, $this->source, ($context["contactContent"] ?? null), "content", [], "any", true, true, false, 32)) {
// line 33
echo " <div class=\"separator\"></div>
<div class=\"col-lg-6 pre-section-content\">
";
// line 35
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.', 35, $this->source); })()), "content", [], "any", false, false, false, 35);
echo "
</div>
";
}
// line 38
echo " </div>
";
// line 41
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.', 41, $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 45
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.', 45, $this->source); })()), "name", [], "any", false, false, false, 45), 'widget', ["attr" => ["class" => "form-control", "placeholder" => "Nom*"]]);
echo "
";
// line 46
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.', 46, $this->source); })()), "name", [], "any", false, false, false, 46), 'errors');
echo "
</div>
<div class=\"form-material floating contact\">
";
// line 49
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.', 49, $this->source); })()), "firstname", [], "any", false, false, false, 49), 'widget', ["attr" => ["class" => "form-control", "placeholder" => "Prénom*"]]);
echo "
";
// line 50
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.', 50, $this->source); })()), "firstname", [], "any", false, false, false, 50), 'errors');
echo "
</div>
<div class=\"form-material floating contact\">
";
// line 53
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.', 53, $this->source); })()), "mail", [], "any", false, false, false, 53), 'widget', ["attr" => ["class" => "form-control", "placeholder" => "Mail*"]]);
echo "
";
// line 54
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.', 54, $this->source); })()), "mail", [], "any", false, false, false, 54), 'errors');
echo "
</div>
<div class=\"form-material floating contact\">
";
// line 57
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.', 57, $this->source); })()), "phone", [], "any", false, false, false, 57), 'widget', ["attr" => ["class" => "form-control", "placeholder" => "Téléphone*"]]);
echo "
";
// line 58
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.', 58, $this->source); })()), "phone", [], "any", false, false, false, 58), 'errors');
echo "
</div>
<div class=\"form-material floating contact\">
";
// line 61
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.', 61, $this->source); })()), "file", [], "any", false, false, false, 61), 'widget', ["attr" => ["class" => "form-control file-select", "placeholder" => "Joindre un fichier   (.doc, .pdf, .jpeg / max. 5mo) "]]);
echo "
";
// line 62
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.', 62, $this->source); })()), "file", [], "any", false, false, false, 62), 'errors');
echo "
</div>
</div>
<div class=\"col-lg-6\" style=\"display: flex; flex-direction: column\">
<div class=\"form-material floating contact selectdiv\">
";
// line 67
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.', 67, $this->source); })()), "object", [], "any", false, false, false, 67), 'widget', ["attr" => ["class" => "form-control"]]);
echo "
";
// line 68
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.', 68, $this->source); })()), "object", [], "any", false, false, false, 68), 'errors');
echo "
</div>
<div class=\"form-material floating contact\">
";
// line 71
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.', 71, $this->source); })()), "message", [], "any", false, false, false, 71), 'widget', ["attr" => ["class" => "form-control"]]);
echo "
";
// line 72
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.', 72, $this->source); })()), "message", [], "any", false, false, false, 72), '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 86
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.', 86, $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 ( 255 => 86, 238 => 72, 234 => 71, 228 => 68, 224 => 67, 216 => 62, 212 => 61, 206 => 58, 202 => 57, 196 => 54, 192 => 53, 186 => 50, 182 => 49, 176 => 46, 172 => 45, 165 => 41, 160 => 38, 154 => 35, 150 => 33, 148 => 32, 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/map_tracol.png') }}{% endif %});background-size:cover;\">
<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>
{% if contactContent.content is defined %}
<div class=\"separator\"></div>
<div class=\"col-lg-6 pre-section-content\">
{{ contactContent.content|raw }}
</div>
{% endif %}
</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/jumo/sites/sym/tracol/templates/contact.html.twig");
}
}