var/cache/dev/twig/57/57fda5462173f1150daabdec900848de.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. /* fichierMeteo.html.twig */
  16. class __TwigTemplate_f223c590e9a7db9a8c93c02103e661d7 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""fichierMeteo.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""fichierMeteo.html.twig"));
  43.         $this->parent $this->loadTemplate("base.html.twig""fichierMeteo.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.     <div class=\"row mb-3 align-items-center\">
  67.         <label for=\"";
  68.         // line 12
  69.         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.'12$this->source); })()), "stationAPI", [], "any"falsefalsefalse12), "vars", [], "any"falsefalsefalse12), "id", [], "any"falsefalsefalse12), "html"nulltrue);
  70.         yield "\" class=\"col-sm-4 col-form-label\">Station météo : </label>
  71.         <div class=\"col-sm-8\">
  72.             ";
  73.         // line 14
  74.         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.'14$this->source); })()), "stationAPI", [], "any"falsefalsefalse14), 'widget', ["attr" => ["class" => "form-control"]]);
  75.         yield "
  76.             ";
  77.         // line 15
  78.         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); })()), "stationAPI", [], "any"falsefalsefalse15), 'errors');
  79.         yield "
  80.         </div>
  81.     </div>
  82.     <div class=\"row mb-3 align-items-center\">
  83.         <label for=\"";
  84.         // line 19
  85.         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.'19$this->source); })()), "annee", [], "any"falsefalsefalse19), "vars", [], "any"falsefalsefalse19), "id", [], "any"falsefalsefalse19), "html"nulltrue);
  86.         yield "\" class=\"col-sm-4 col-form-label\">Annee : </label>
  87.         <div class=\"col-sm-8\">
  88.             ";
  89.         // line 21
  90.         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); })()), "annee", [], "any"falsefalsefalse21), 'widget', ["attr" => ["class" => "form-control"]]);
  91.         yield "
  92.             ";
  93.         // line 22
  94.         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.'22$this->source); })()), "annee", [], "any"falsefalsefalse22), 'errors');
  95.         yield "
  96.         </div>
  97.     </div>
  98.     ";
  99.         // line 26
  100.         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');
  101.         yield "
  102. </form>
  103. <BR>
  104.     Cet outil permet une extraction des données Météo-France via son API. 
  105. ";
  106.         
  107.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  108.         
  109.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  110.         yield from [];
  111.     }
  112.     /**
  113.      * @codeCoverageIgnore
  114.      */
  115.     public function getTemplateName(): string
  116.     {
  117.         return "fichierMeteo.html.twig";
  118.     }
  119.     /**
  120.      * @codeCoverageIgnore
  121.      */
  122.     public function isTraitable(): bool
  123.     {
  124.         return false;
  125.     }
  126.     /**
  127.      * @codeCoverageIgnore
  128.      */
  129.     public function getDebugInfo(): array
  130.     {
  131.         return array (  119 => 26,  112 => 22,  108 => 21,  103 => 19,  96 => 15,  92 => 14,  87 => 12,  76 => 3,  63 => 2,  40 => 1,);
  132.     }
  133.     public function getSourceContext(): Source
  134.     {
  135.         return new Source("{% extends 'base.html.twig' %}
  136. {% block body %}
  137. <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css\" rel=\"stylesheet\">
  138. <h2 class=\"text-center my-4\">Sélection des données météo</h2>
  139. <form method=\"post\" class=\"container p-4 shadow-sm bg-light rounded\" style=\"max-width: 600px;\">
  140.     
  141.     <div class=\"row mb-3 align-items-center\">
  142.         <label for=\"{{ form.stationAPI.vars.id }}\" class=\"col-sm-4 col-form-label\">Station météo : </label>
  143.         <div class=\"col-sm-8\">
  144.             {{ form_widget(form.stationAPI, {'attr': {'class': 'form-control'}}) }}
  145.             {{ form_errors(form.stationAPI) }}
  146.         </div>
  147.     </div>
  148.     <div class=\"row mb-3 align-items-center\">
  149.         <label for=\"{{ form.annee.vars.id }}\" class=\"col-sm-4 col-form-label\">Annee : </label>
  150.         <div class=\"col-sm-8\">
  151.             {{ form_widget(form.annee, {'attr': {'class': 'form-control'}}) }}
  152.             {{ form_errors(form.annee) }}
  153.         </div>
  154.     </div>
  155.     {{ form_rest(form) }}
  156. </form>
  157. <BR>
  158.     Cet outil permet une extraction des données Météo-France via son API. 
  159. {% endblock %}    
  160.     ""fichierMeteo.html.twig""/srv/data/web/vhosts/app.sobro.fr/syntherm/templates/fichierMeteo.html.twig");
  161.     }
  162. }