var/cache/dev/twig/10/104c471fc524d3e610526d0591e03baf.php line 50

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. /* user/index.html.twig */
  15. class __TwigTemplate_d890cc47d81d7970dc1adad3d42a770c extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'title' => [$this'block_title'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base_baux.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""user/index.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""user/index.html.twig"));
  40.         $this->parent $this->loadTemplate("base_baux.html.twig""user/index.html.twig"1);
  41.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         yield "User index";
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.         return; yield '';
  61.     }
  62.     // line 5
  63.     public function block_body($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  70.         // line 6
  71.         yield "    <h1>Liste des utilisateurs</h1>
  72.     <table class=\"table\">
  73.         <thead>
  74.             <tr>
  75.                 <th>Id</th>
  76.                 <th>Nom et prénom</th>
  77.                 <th>Email</th>
  78.                 <th>Roles</th>
  79.                 ";
  80.         // line 16
  81.         yield "                <th>actions</th>
  82.             </tr>
  83.         </thead>
  84.         <tbody>
  85.         ";
  86.         // line 20
  87.         $context['_parent'] = $context;
  88.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["users"]) || array_key_exists("users"$context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.'20$this->source); })()));
  89.         $context['_iterated'] = false;
  90.         foreach ($context['_seq'] as $context["_key"] => $context["user"]) {
  91.             // line 21
  92.             yield "            <tr>
  93.                 <td>";
  94.             // line 22
  95.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["user"], "id", [], "any"falsefalsefalse22), "html"nulltrue);
  96.             yield "</td>
  97.                 <td>";
  98.             // line 23
  99.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["user"], "prenom", [], "any"falsefalsefalse23), "html"nulltrue);
  100.             yield " ";
  101.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["user"], "nom", [], "any"falsefalsefalse23), "html"nulltrue);
  102.             yield " </td>
  103.                 <td>";
  104.             // line 24
  105.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["user"], "fonction", [], "any"falsefalsefalse24), "html"nulltrue);
  106.             yield "
  107.                 <td>";
  108.             // line 25
  109.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["user"], "email", [], "any"falsefalsefalse25), "html"nulltrue);
  110.             yield "</td>
  111.                 <td>";
  112.             // line 26
  113.             ((CoreExtension::getAttribute($this->env$this->source$context["user"], "roles", [], "any"falsefalsefalse26)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(json_encode(CoreExtension::getAttribute($this->env$this->source$context["user"], "roles", [], "any"falsefalsefalse26)), "html"nulltrue)) : (yield ""));
  114.             yield "</td>
  115.                 ";
  116.             // line 28
  117.             yield "                <td>
  118.                     <a href=\"";
  119.             // line 29
  120.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_user_show", ["id" => CoreExtension::getAttribute($this->env$this->source$context["user"], "id", [], "any"falsefalsefalse29)]), "html"nulltrue);
  121.             yield "\">show</a>
  122.                     <a href=\"";
  123.             // line 30
  124.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_user_edit", ["id" => CoreExtension::getAttribute($this->env$this->source$context["user"], "id", [], "any"falsefalsefalse30)]), "html"nulltrue);
  125.             yield "\">edit</a>
  126.                 </td>
  127.             </tr>
  128.         ";
  129.             $context['_iterated'] = true;
  130.         }
  131.         if (!$context['_iterated']) {
  132.             // line 34
  133.             yield "            <tr>
  134.                 <td colspan=\"5\">no records found</td>
  135.             </tr>
  136.         ";
  137.         }
  138.         $_parent $context['_parent'];
  139.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['user'], $context['_parent'], $context['loop']);
  140.         $context array_intersect_key($context$_parent) + $_parent;
  141.         // line 38
  142.         yield "        </tbody>
  143.     </table>
  144.     <a href=\"";
  145.         // line 41
  146.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_user_new");
  147.         yield "\">Create new</a>
  148. ";
  149.         
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  151.         
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153.         return; yield '';
  154.     }
  155.     /**
  156.      * @codeCoverageIgnore
  157.      */
  158.     public function getTemplateName()
  159.     {
  160.         return "user/index.html.twig";
  161.     }
  162.     /**
  163.      * @codeCoverageIgnore
  164.      */
  165.     public function isTraitable()
  166.     {
  167.         return false;
  168.     }
  169.     /**
  170.      * @codeCoverageIgnore
  171.      */
  172.     public function getDebugInfo()
  173.     {
  174.         return array (  167 => 41,  162 => 38,  153 => 34,  144 => 30,  140 => 29,  137 => 28,  133 => 26,  129 => 25,  125 => 24,  119 => 23,  115 => 22,  112 => 21,  107 => 20,  101 => 16,  90 => 6,  80 => 5,  60 => 3,  37 => 1,);
  175.     }
  176.     public function getSourceContext()
  177.     {
  178.         return new Source("{% extends 'base_baux.html.twig' %}
  179. {% block title %}User index{% endblock %}
  180. {% block body %}
  181.     <h1>Liste des utilisateurs</h1>
  182.     <table class=\"table\">
  183.         <thead>
  184.             <tr>
  185.                 <th>Id</th>
  186.                 <th>Nom et prénom</th>
  187.                 <th>Email</th>
  188.                 <th>Roles</th>
  189.                 {# <th>Password</th> #}
  190.                 <th>actions</th>
  191.             </tr>
  192.         </thead>
  193.         <tbody>
  194.         {% for user in users %}
  195.             <tr>
  196.                 <td>{{ user.id }}</td>
  197.                 <td>{{ user.prenom }} {{ user.nom }} </td>
  198.                 <td>{{ user.fonction }}
  199.                 <td>{{ user.email }}</td>
  200.                 <td>{{ user.roles ? user.roles|json_encode : '' }}</td>
  201.                 {# <td>{{ user.password }}</td> #}
  202.                 <td>
  203.                     <a href=\"{{ path('app_user_show', {'id': user.id}) }}\">show</a>
  204.                     <a href=\"{{ path('app_user_edit', {'id': user.id}) }}\">edit</a>
  205.                 </td>
  206.             </tr>
  207.         {% else %}
  208.             <tr>
  209.                 <td colspan=\"5\">no records found</td>
  210.             </tr>
  211.         {% endfor %}
  212.         </tbody>
  213.     </table>
  214.     <a href=\"{{ path('app_user_new') }}\">Create new</a>
  215. {% endblock %}
  216. ""user/index.html.twig""/home/u131790682/domains/brainsensetech.com/public_html/baux/templates/user/index.html.twig");
  217.     }
  218. }