var/cache/dev/twig/cd/cd130d72526f638b1f00765dc2a80d6c.php line 43

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. /* caniculeFormulaire.html.twig */
  16. class __TwigTemplate_addf6d2ceb72d92065f53a8c4d5abd34 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.             'body' => [$this'block_body'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32.     {
  33.         // line 1
  34.         return "base.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = []): iterable
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""caniculeFormulaire.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""caniculeFormulaire.html.twig"));
  43.         $this->parent $this->loadTemplate("base.html.twig""caniculeFormulaire.html.twig"1);
  44.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 2
  51.     /**
  52.      * @return iterable<null|scalar|\Stringable>
  53.      */
  54.     public function block_body(array $context, array $blocks = []): iterable
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  61.         // line 3
  62.         yield "<link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css\" rel=\"stylesheet\">
  63. <h2 class=\"text-center my-4\">Sélection des données météo</h2>
  64. <form method=\"post\" enctype=\"multipart/form-data\" class=\"container p-4 shadow-sm bg-light rounded\" style=\"max-width: 600px;\">
  65.     
  66.     ";
  67.         // line 9
  68.         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.'9$this->source); })()), 'form_start', ["attr" => ["enctype" => "multipart/form-data"]]);
  69.         yield "
  70. ";
  71.         // line 11
  72.         if (CoreExtension::getAttribute($this->env$this->source, ($context["form"] ?? null), "fichier", [], "any"truetruefalse11)) {
  73.             // line 12
  74.             yield "    <div class=\"row mb-3 align-items-center\">
  75.         <label for=\"";
  76.             // line 13
  77.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'13$this->source); })()), "fichier", [], "any"falsefalsefalse13), "vars", [], "any"falsefalsefalse13), "id", [], "any"falsefalsefalse13), "html"nulltrue);
  78.             yield "\" class=\"col-sm-4 col-form-label\">Fichier météo :</label>
  79.         <div class=\"col-sm-8\">
  80.             ";
  81.             // line 15
  82.             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.'15$this->source); })()), "fichier", [], "any"falsefalsefalse15), 'widget', ["attr" => ["class" => "form-control"]]);
  83.             yield "
  84.             ";
  85.             // line 16
  86.             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.'16$this->source); })()), "fichier", [], "any"falsefalsefalse16), 'errors');
  87.             yield "
  88.         </div>
  89.     </div>
  90. ";
  91.         }
  92.         // line 20
  93.         yield "
  94.     <div class=\"row mb-3 align-items-center\">
  95.         <label for=\"";
  96.         // line 22
  97.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'22$this->source); })()), "stationAPI", [], "any"falsefalsefalse22), "vars", [], "any"falsefalsefalse22), "id", [], "any"falsefalsefalse22), "html"nulltrue);
  98.         yield "\" class=\"col-sm-4 col-form-label\">Station météo :</label>
  99.         <div class=\"col-sm-8\">
  100.             ";
  101.         // line 24
  102.         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.'24$this->source); })()), "stationAPI", [], "any"falsefalsefalse24), 'widget', ["attr" => ["class" => "form-control"]]);
  103.         yield "
  104.             ";
  105.         // line 25
  106.         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.'25$this->source); })()), "stationAPI", [], "any"falsefalsefalse25), 'errors');
  107.         yield "
  108.         </div>
  109.     </div>
  110.     ";
  111.         // line 29
  112.         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); })()), "Envoyer", [], "any"falsefalsefalse29), 'widget');
  113.         yield "
  114.     ";
  115.         // line 31
  116.         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.'31$this->source); })()), 'form_end');
  117.         yield "
  118. </form>
  119.     Les données sont issues de l'API de Météo-France de l'année 2003 à 2024. Le calcul prend quelques minutes.
  120. ";
  121.         
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  123.         
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  125.         yield from [];
  126.     }
  127.     /**
  128.      * @codeCoverageIgnore
  129.      */
  130.     public function getTemplateName(): string
  131.     {
  132.         return "caniculeFormulaire.html.twig";
  133.     }
  134.     /**
  135.      * @codeCoverageIgnore
  136.      */
  137.     public function isTraitable(): bool
  138.     {
  139.         return false;
  140.     }
  141.     /**
  142.      * @codeCoverageIgnore
  143.      */
  144.     public function getDebugInfo(): array
  145.     {
  146.         return array (  135 => 31,  130 => 29,  123 => 25,  119 => 24,  114 => 22,  110 => 20,  103 => 16,  99 => 15,  94 => 13,  91 => 12,  89 => 11,  84 => 9,  76 => 3,  63 => 2,  40 => 1,);
  147.     }
  148.     public function getSourceContext(): Source
  149.     {
  150.         return new Source("{% extends 'base.html.twig' %}
  151. {% block body %}
  152. <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css\" rel=\"stylesheet\">
  153. <h2 class=\"text-center my-4\">Sélection des données météo</h2>
  154. <form method=\"post\" enctype=\"multipart/form-data\" class=\"container p-4 shadow-sm bg-light rounded\" style=\"max-width: 600px;\">
  155.     
  156.     {{ form_start(form, {'attr': {'enctype': 'multipart/form-data'}}) }}
  157. {% if form.fichier is defined %}
  158.     <div class=\"row mb-3 align-items-center\">
  159.         <label for=\"{{ form.fichier.vars.id }}\" class=\"col-sm-4 col-form-label\">Fichier météo :</label>
  160.         <div class=\"col-sm-8\">
  161.             {{ form_widget(form.fichier, {'attr': {'class': 'form-control'}}) }}
  162.             {{ form_errors(form.fichier) }}
  163.         </div>
  164.     </div>
  165. {% endif %}
  166.     <div class=\"row mb-3 align-items-center\">
  167.         <label for=\"{{ form.stationAPI.vars.id }}\" class=\"col-sm-4 col-form-label\">Station météo :</label>
  168.         <div class=\"col-sm-8\">
  169.             {{ form_widget(form.stationAPI, {'attr': {'class': 'form-control'}}) }}
  170.             {{ form_errors(form.stationAPI) }}
  171.         </div>
  172.     </div>
  173.     {{ form_widget(form.Envoyer) }}
  174.     {{ form_end(form) }}
  175. </form>
  176.     Les données sont issues de l'API de Météo-France de l'année 2003 à 2024. Le calcul prend quelques minutes.
  177. {% endblock %}    
  178.     ""caniculeFormulaire.html.twig""/srv/data/web/vhosts/app.sobro.fr/syntherm/templates/caniculeFormulaire.html.twig");
  179.     }
  180. }