var/cache/dev/twig/e6/e64a13937e0e9760f0caaee018b3ce14.php line 56

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/choiceList.html.twig */
  16. class __TwigTemplate_ea3f49571ac9d792da7f906fc48ad3d1 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/choiceList.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/choiceList.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/depChoice.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 "        <header> 
  108.           <nav class=\"navbar navbar-expand-lg navbar-light bg-white\">
  109.                ";
  110.             // line 10
  111.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((("Bonjour " CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'10$this->source); })()), "user", [], "any"falsefalsefalse10), "username", [], "any"falsefalsefalse10)) . " ") . CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'10$this->source); })()), "user", [], "any"falsefalsefalse10), "firstname", [], "any"falsefalsefalse10)) . " choisissez votre departement"), "html"nulltrue);
  112.             yield "
  113.          </nav>
  114.         </header>
  115.         <div class =\"body\">
  116.           <div class=\"user_list_dep\">
  117.            <ul>
  118.              ";
  119.             // line 16
  120.             $context['_parent'] = $context;
  121.             $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); })()));
  122.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  123.                 // line 17
  124.                 yield "                <li class=\"dep\" data-user-dep=\"";
  125.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "dep", [], "any"falsefalsefalse17), "html"nulltrue);
  126.                 yield "\">";
  127.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "dep", [], "any"falsefalsefalse17), "html"nulltrue);
  128.                 yield "</li>
  129.              ";
  130.             }
  131.             $_parent $context['_parent'];
  132.             unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
  133.             $context array_intersect_key($context$_parent) + $_parent;
  134.             // line 19
  135.             yield "           </ul>
  136.           </div>
  137.         </div>
  138.         
  139.       ";
  140.         }
  141.         // line 24
  142.         yield "      
  143.     ";
  144.         
  145.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  146.         
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  148.         yield from [];
  149.     }
  150.     // line 27
  151.     /**
  152.      * @return iterable<null|scalar|\Stringable>
  153.      */
  154.     public function block_javascriptDepchoice(array $context, array $blocks = []): iterable
  155.     {
  156.         $macros $this->macros;
  157.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascriptDepchoice"));
  159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  160.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascriptDepchoice"));
  161.         // line 28
  162.         yield "  <script type=\"text/javascript\" src=\"/js/depChoice.js\"></script>
  163. ";
  164.         
  165.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  166.         
  167.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  168.         yield from [];
  169.     }
  170.     /**
  171.      * @codeCoverageIgnore
  172.      */
  173.     public function getTemplateName(): string
  174.     {
  175.         return "agent/choiceList.html.twig";
  176.     }
  177.     /**
  178.      * @codeCoverageIgnore
  179.      */
  180.     public function isTraitable(): bool
  181.     {
  182.         return false;
  183.     }
  184.     /**
  185.      * @codeCoverageIgnore
  186.      */
  187.     public function getDebugInfo(): array
  188.     {
  189.         return array (  191 => 28,  178 => 27,  166 => 24,  159 => 19,  148 => 17,  144 => 16,  135 => 10,  131 => 8,  128 => 7,  104 => 6,  91 => 5,  79 => 3,  66 => 2,  43 => 1,);
  190.     }
  191.     public function getSourceContext(): Source
  192.     {
  193.         return new Source("{% extends 'base.html.twig' %}
  194. {% block depChoiceStylesheet%}
  195.  <link href=\"/css/depChoice.css\" rel=\"stylesheet\">
  196. {% endblock %}
  197. {% block body %}
  198.     {% block content %}
  199.       {% if is_granted('ROLE_USER') %}
  200.         <header> 
  201.           <nav class=\"navbar navbar-expand-lg navbar-light bg-white\">
  202.                {{'Bonjour '~app.user.username~' '~app.user.firstname ~\" choisissez votre departement\"}}
  203.          </nav>
  204.         </header>
  205.         <div class =\"body\">
  206.           <div class=\"user_list_dep\">
  207.            <ul>
  208.              {% for item in items%}
  209.                 <li class=\"dep\" data-user-dep=\"{{item.dep}}\">{{ item.dep }}</li>
  210.              {% endfor %}
  211.            </ul>
  212.           </div>
  213.         </div>
  214.         
  215.       {% endif %}
  216.       
  217.     {% endblock %}
  218. {% endblock %}
  219. {% block javascriptDepchoice %}
  220.   <script type=\"text/javascript\" src=\"/js/depChoice.js\"></script>
  221. {% endblock %}""agent/choiceList.html.twig""/home/infostatmut/validation_resto_new/templates/agent/choiceList.html.twig");
  222.     }
  223. }