var/cache/dev/twig/e3/e37f1c569264ead20b4eaf65debd9b7d.php line 46

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. /* agent/codinsseChoose.html.twig */
  16. class __TwigTemplate_9a39603542f3ffb4bca0566c2c37203c 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.             'depChoiceStylesheet' => [$this'block_depChoiceStylesheet'],
  29.             'body' => [$this'block_body'],
  30.             'content' => [$this'block_content'],
  31.             'javascriptDepchoice' => [$this'block_javascriptDepchoice'],
  32.         ];
  33.     }
  34.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  35.     {
  36.         // line 1
  37.         return "base.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = []): iterable
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""agent/codinsseChoose.html.twig"));
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""agent/codinsseChoose.html.twig"));
  46.         $this->parent $this->load("base.html.twig"1);
  47.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 2
  54.     /**
  55.      * @return iterable<null|scalar|\Stringable>
  56.      */
  57.     public function block_depChoiceStylesheet(array $context, array $blocks = []): iterable
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""depChoiceStylesheet"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""depChoiceStylesheet"));
  64.         // line 3
  65.         yield " <link href=\"/css/codinsee.css\" rel=\"stylesheet\">
  66. ";
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.         
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71.         yield from [];
  72.     }
  73.     // line 5
  74.     /**
  75.      * @return iterable<null|scalar|\Stringable>
  76.      */
  77.     public function block_body(array $context, array $blocks = []): iterable
  78.     {
  79.         $macros $this->macros;
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  84.         // line 6
  85.         yield "    ";
  86.         yield from $this->unwrap()->yieldBlock('content'$context$blocks);
  87.         
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  89.         
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  91.         yield from [];
  92.     }
  93.     /**
  94.      * @return iterable<null|scalar|\Stringable>
  95.      */
  96.     public function block_content(array $context, array $blocks = []): iterable
  97.     {
  98.         $macros $this->macros;
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  103.         // line 7
  104.         yield "      ";
  105.         if ((($tmp $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  106.             // line 8
  107.             yield "        ";
  108.             // line 13
  109.             yield "        <div class =\"body\">
  110.           <div class=\"user_list_dep\">
  111.            <ul>
  112.              ";
  113.             // line 16
  114.             $context['_parent'] = $context;
  115.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["items"]) || array_key_exists("items"$context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.'16$this->source); })()));
  116.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  117.                 // line 17
  118.                 yield "                <li>
  119.                   <button class=\"codinsee learn-more\" data-user-dep=\"";
  120.                 // line 18
  121.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "dep", [], "any"falsefalsefalse18), "html"nulltrue);
  122.                 yield "\" 
  123.                   data-user-codinsee=\"";
  124.                 // line 19
  125.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "codinsee", [], "any"falsefalsefalse19), "html"nulltrue);
  126.                 yield "\" 
  127.                   data-topo=\"";
  128.                 // line 20
  129.                 if (array_key_exists("topo"$context)) {
  130.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["topo"]) || array_key_exists("topo"$context) ? $context["topo"] : (function () { throw new RuntimeError('Variable "topo" does not exist.'20$this->source); })()), "html"nulltrue);
  131.                 } else {
  132.                     yield "false";
  133.                 }
  134.                 yield "\">
  135.                     ";
  136.                 // line 21
  137.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "codinsee", [], "any"falsefalsefalse21), "html"nulltrue);
  138.                 yield "
  139.                   </button>
  140.                 </li>
  141.              ";
  142.             }
  143.             $_parent $context['_parent'];
  144.             unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
  145.             $context array_intersect_key($context$_parent) + $_parent;
  146.             // line 25
  147.             yield "           </ul>
  148.           </div>
  149.         </div>
  150.         
  151.       ";
  152.         }
  153.         // line 30
  154.         yield "      
  155.     ";
  156.         
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  158.         
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  160.         yield from [];
  161.     }
  162.     // line 33
  163.     /**
  164.      * @return iterable<null|scalar|\Stringable>
  165.      */
  166.     public function block_javascriptDepchoice(array $context, array $blocks = []): iterable
  167.     {
  168.         $macros $this->macros;
  169.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  170.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascriptDepchoice"));
  171.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  172.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascriptDepchoice"));
  173.         // line 34
  174.         yield "  <script type=\"text/javascript\" src=\"/js/codinsee.js\"></script>
  175. ";
  176.         
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  178.         
  179.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  180.         yield from [];
  181.     }
  182.     /**
  183.      * @codeCoverageIgnore
  184.      */
  185.     public function getTemplateName(): string
  186.     {
  187.         return "agent/codinsseChoose.html.twig";
  188.     }
  189.     /**
  190.      * @codeCoverageIgnore
  191.      */
  192.     public function isTraitable(): bool
  193.     {
  194.         return false;
  195.     }
  196.     /**
  197.      * @codeCoverageIgnore
  198.      */
  199.     public function getDebugInfo(): array
  200.     {
  201.         return array (  203 => 34,  190 => 33,  178 => 30,  171 => 25,  161 => 21,  153 => 20,  149 => 19,  145 => 18,  142 => 17,  138 => 16,  133 => 13,  131 => 8,  128 => 7,  104 => 6,  91 => 5,  79 => 3,  66 => 2,  43 => 1,);
  202.     }
  203.     public function getSourceContext(): Source
  204.     {
  205.         return new Source("{% extends 'base.html.twig' %}
  206. {% block depChoiceStylesheet%}
  207.  <link href=\"/css/codinsee.css\" rel=\"stylesheet\">
  208. {% endblock %}
  209. {% block body %}
  210.     {% block content %}
  211.       {% if is_granted('ROLE_USER') %}
  212.         {# <header> 
  213.           <nav class=\"navbar navbar-expand-lg navbar-light bg-white\">
  214.                {{'Bonjour '~app.user.username~' '~app.user.firstname ~\" choisissez votre departement\"}}
  215.          </nav>
  216.         </header> #}
  217.         <div class =\"body\">
  218.           <div class=\"user_list_dep\">
  219.            <ul>
  220.              {% for item in items%}
  221.                 <li>
  222.                   <button class=\"codinsee learn-more\" data-user-dep=\"{{item.dep}}\" 
  223.                   data-user-codinsee=\"{{item.codinsee}}\" 
  224.                   data-topo=\"{% if topo is defined %}{{topo}}{% else %}false{% endif %}\">
  225.                     {{ item.codinsee }}
  226.                   </button>
  227.                 </li>
  228.              {% endfor %}
  229.            </ul>
  230.           </div>
  231.         </div>
  232.         
  233.       {% endif %}
  234.       
  235.     {% endblock %}
  236. {% endblock %}
  237. {% block javascriptDepchoice %}
  238.   <script type=\"text/javascript\" src=\"/js/codinsee.js\"></script>
  239. {% endblock %}""agent/codinsseChoose.html.twig""/home/infostatmut/validation_resto_new/templates/agent/codinsseChoose.html.twig");
  240.     }
  241. }