var/cache/dev/twig/6a/6a1daade5b88acea04cca8b390e6b8c8.php line 146

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* app/home/contact.html.twig */
  16. class __TwigTemplate_bfffac0901b8a85b303ab681a6a2c9b0 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""app/home/contact.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""app/home/contact.html.twig"));
  44.         $this->parent $this->loadTemplate("base.html.twig""app/home/contact.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         yield "Formulaire de contact";
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         yield from [];
  68.     }
  69.     // line 5
  70.     /**
  71.      * @return iterable<null|scalar|\Stringable>
  72.      */
  73.     public function block_body(array $context, array $blocks = []): iterable
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  80.         // line 6
  81.         yield "    <div class=\"container mt-2\">
  82.         <div class=\"row\">
  83.             <div class=\"col-12 header-title\">
  84.                 <h1>Contactez-nous</h1>
  85.             </div>
  86.         </div>
  87.         <div class=\"row\">
  88.             <div class=\"col-12\">
  89.                 ";
  90.         // line 14
  91.         $context['_parent'] = $context;
  92.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'14$this->source); })()), "flashes", [], "any"falsefalsefalse14));
  93.         foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
  94.             // line 15
  95.             yield "                    ";
  96.             $context['_parent'] = $context;
  97.             $context['_seq'] = CoreExtension::ensureTraversable($context["messages"]);
  98.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  99.                 // line 16
  100.                 yield "                        <div class=\"alert alert-";
  101.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["label"], "html"nulltrue);
  102.                 yield " alert-dismissible fade show\" role=\"alert\">
  103.                             <strong>";
  104.                 // line 17
  105.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["message"], "html"nulltrue);
  106.                 yield "</strong>
  107.                             <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"></button>
  108.                         </div>
  109.                     ";
  110.             }
  111.             $_parent $context['_parent'];
  112.             unset($context['_seq'], $context['_key'], $context['message'], $context['_parent']);
  113.             $context array_intersect_key($context$_parent) + $_parent;
  114.             // line 21
  115.             yield "                ";
  116.         }
  117.         $_parent $context['_parent'];
  118.         unset($context['_seq'], $context['label'], $context['messages'], $context['_parent']);
  119.         $context array_intersect_key($context$_parent) + $_parent;
  120.         // line 22
  121.         yield "            </div>
  122.         </div>
  123.         <div class=\"row\">
  124.             <div class=\"col\">
  125.                 ";
  126.         // line 26
  127.         yield         $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.'26$this->source); })()), 'form_start', ["attr" => ["class" => "form-section"]]);
  128.         yield "
  129.                 <div class=\"form-row\">
  130.                     <div class=\"form-group\">
  131.                         ";
  132.         // line 29
  133.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'29$this->source); })()), "name", [], "any"falsefalsefalse29), 'row');
  134.         yield "
  135.                     </div>
  136.                     <div class=\"form-group\">
  137.                         ";
  138.         // line 32
  139.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'32$this->source); })()), "email", [], "any"falsefalsefalse32), 'row');
  140.         yield "
  141.                     </div>
  142.                 </div>
  143.                 <div class=\"form-row\">
  144.                     <div class=\"form-group\">
  145.                         ";
  146.         // line 37
  147.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'37$this->source); })()), "object", [], "any"falsefalsefalse37), 'row');
  148.         yield "
  149.                     </div>
  150.                     <div class=\"form-group\">
  151.                         ";
  152.         // line 40
  153.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'40$this->source); })()), "category", [], "any"falsefalsefalse40), 'row');
  154.         yield "
  155.                     </div>
  156.                 </div>
  157.                 <div class=\"form-group\">
  158.                     ";
  159.         // line 44
  160.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($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); })()), "message", [], "any"falsefalsefalse44), 'row');
  161.         yield "
  162.                 </div>
  163.                 <div class=\"form-row d-flex justify-content-end\">
  164.                     <button type=\"submit\" class=\"btn btn-success\">Envoyer</button>
  165.                 </div>
  166.                 ";
  167.         // line 49
  168.         yield         $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.'49$this->source); })()), 'form_end');
  169.         yield "
  170.             </div>
  171.         </div>
  172.     </div>
  173. ";
  174.         
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  176.         
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  178.         yield from [];
  179.     }
  180.     /**
  181.      * @codeCoverageIgnore
  182.      */
  183.     public function getTemplateName(): string
  184.     {
  185.         return "app/home/contact.html.twig";
  186.     }
  187.     /**
  188.      * @codeCoverageIgnore
  189.      */
  190.     public function isTraitable(): bool
  191.     {
  192.         return false;
  193.     }
  194.     /**
  195.      * @codeCoverageIgnore
  196.      */
  197.     public function getDebugInfo(): array
  198.     {
  199.         return array (  187 => 49,  179 => 44,  172 => 40,  166 => 37,  158 => 32,  152 => 29,  146 => 26,  140 => 22,  134 => 21,  124 => 17,  119 => 16,  114 => 15,  110 => 14,  100 => 6,  87 => 5,  64 => 3,  41 => 1,);
  200.     }
  201.     public function getSourceContext(): Source
  202.     {
  203.         return new Source("{% extends 'base.html.twig' %}
  204. {% block title 'Formulaire de contact' %}
  205. {% block body %}
  206.     <div class=\"container mt-2\">
  207.         <div class=\"row\">
  208.             <div class=\"col-12 header-title\">
  209.                 <h1>Contactez-nous</h1>
  210.             </div>
  211.         </div>
  212.         <div class=\"row\">
  213.             <div class=\"col-12\">
  214.                 {% for label, messages in app.flashes %}
  215.                     {% for message in messages %}
  216.                         <div class=\"alert alert-{{ label }} alert-dismissible fade show\" role=\"alert\">
  217.                             <strong>{{ message }}</strong>
  218.                             <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"></button>
  219.                         </div>
  220.                     {% endfor %}
  221.                 {% endfor %}
  222.             </div>
  223.         </div>
  224.         <div class=\"row\">
  225.             <div class=\"col\">
  226.                 {{ form_start(form, {'attr': {'class': 'form-section'}}) }}
  227.                 <div class=\"form-row\">
  228.                     <div class=\"form-group\">
  229.                         {{ form_row(form.name)}}
  230.                     </div>
  231.                     <div class=\"form-group\">
  232.                         {{ form_row(form.email) }}
  233.                     </div>
  234.                 </div>
  235.                 <div class=\"form-row\">
  236.                     <div class=\"form-group\">
  237.                         {{ form_row(form.object) }}
  238.                     </div>
  239.                     <div class=\"form-group\">
  240.                         {{ form_row(form.category) }}
  241.                     </div>
  242.                 </div>
  243.                 <div class=\"form-group\">
  244.                     {{ form_row(form.message) }}
  245.                 </div>
  246.                 <div class=\"form-row d-flex justify-content-end\">
  247.                     <button type=\"submit\" class=\"btn btn-success\">Envoyer</button>
  248.                 </div>
  249.                 {{ form_end(form) }}
  250.             </div>
  251.         </div>
  252.     </div>
  253. {% endblock %}
  254. ""app/home/contact.html.twig""/home/u699591981/domains/3dkro.com/public_html/templates/app/home/contact.html.twig");
  255.     }
  256. }