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\" class=\"container p-4 shadow-sm bg-light rounded\" style=\"max-width: 600px;\">
  65.     
  66. ";
  67.         // line 16
  68.         yield "
  69.     <div class=\"row mb-3 align-items-center\">
  70.         <label for=\"";
  71.         // line 18
  72.         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.'18$this->source); })()), "stationAPI", [], "any"falsefalsefalse18), "vars", [], "any"falsefalsefalse18), "id", [], "any"falsefalsefalse18), "html"nulltrue);
  73.         yield "\" class=\"col-sm-4 col-form-label\">Station météo : </label>
  74.         <div class=\"col-sm-8\">
  75.             ";
  76.         // line 20
  77.         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.'20$this->source); })()), "stationAPI", [], "any"falsefalsefalse20), 'widget', ["attr" => ["class" => "form-control"]]);
  78.         yield "
  79.             ";
  80.         // line 21
  81.         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.'21$this->source); })()), "stationAPI", [], "any"falsefalsefalse21), 'errors');
  82.         yield "
  83.         </div>
  84.     </div>
  85.     ";
  86.         // line 26
  87.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'26$this->source); })()), 'rest');
  88.         yield "
  89. </form>
  90.     Les données sont issues de l'API de Météo-France de l'année 2003 à 2024. Le calcul prend quelques minutes.
  91. ";
  92.         
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  94.         
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  96.         yield from [];
  97.     }
  98.     /**
  99.      * @codeCoverageIgnore
  100.      */
  101.     public function getTemplateName(): string
  102.     {
  103.         return "caniculeFormulaire.html.twig";
  104.     }
  105.     /**
  106.      * @codeCoverageIgnore
  107.      */
  108.     public function isTraitable(): bool
  109.     {
  110.         return false;
  111.     }
  112.     /**
  113.      * @codeCoverageIgnore
  114.      */
  115.     public function getDebugInfo(): array
  116.     {
  117.         return array (  105 => 26,  97 => 21,  93 => 20,  88 => 18,  84 => 16,  76 => 3,  63 => 2,  40 => 1,);
  118.     }
  119.     public function getSourceContext(): Source
  120.     {
  121.         return new Source("{% extends 'base.html.twig' %}
  122. {% block body %}
  123. <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css\" rel=\"stylesheet\">
  124. <h2 class=\"text-center my-4\">Sélection des données météo</h2>
  125. <form method=\"post\" class=\"container p-4 shadow-sm bg-light rounded\" style=\"max-width: 600px;\">
  126.     
  127. {#    <div class=\"row mb-3 align-items-center\">
  128.         <label for=\"{{ form.apikey.vars.id }}\" class=\"col-sm-4 col-form-label\">API Key : </label>
  129.         <div class=\"col-sm-8\">
  130.             {{ form_widget(form.apikey, {'attr': {'class': 'form-control'}}) }}
  131.             {{ form_errors(form.apikey) }}
  132.         </div>
  133.     </div>#}
  134.     <div class=\"row mb-3 align-items-center\">
  135.         <label for=\"{{ form.stationAPI.vars.id }}\" class=\"col-sm-4 col-form-label\">Station météo : </label>
  136.         <div class=\"col-sm-8\">
  137.             {{ form_widget(form.stationAPI, {'attr': {'class': 'form-control'}}) }}
  138.             {{ form_errors(form.stationAPI) }}
  139.         </div>
  140.     </div>
  141.     {{ form_rest(form) }}
  142. </form>
  143.     Les données sont issues de l'API de Météo-France de l'année 2003 à 2024. Le calcul prend quelques minutes.
  144. {% endblock %}    
  145.     ""caniculeFormulaire.html.twig""/srv/data/web/vhosts/app.sobro.fr/syntherm/templates/caniculeFormulaire.html.twig");
  146.     }
  147. }