var/cache/dev/twig/8e/8e26d92636d24bb4eb13bacfbb5684da.php line 52

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_management/users/index.html.twig */
  15. class __TwigTemplate_20f84ef2a382ad825d979c16e5d0402c 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.             'breadcrumb' => [$this'block_breadcrumb'],
  26.             'pagetitle' => [$this'block_pagetitle'],
  27.             'body' => [$this'block_body'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""user_management/users/index.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""user_management/users/index.html.twig"));
  42.         $this->parent $this->loadTemplate("base.html.twig""user_management/users/index.html.twig"1);
  43.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 3
  50.     public function block_title($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         yield "User index
  58. ";
  59.         
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  61.         
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  63.         return; yield '';
  64.     }
  65.     // line 5
  66.     public function block_breadcrumb($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  73.         // line 6
  74.         yield "\t<li class=\"breadcrumb-item\">
  75. \t\t<a href=\"";
  76.         // line 7
  77.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_index");
  78.         yield "\">";
  79.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("User", [], "messages");
  80.         // line 9
  81.         yield "</a>
  82. \t</li>
  83. \t<li class=\"breadcrumb-item active\">";
  84.         // line 11
  85.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("List", [], "messages");
  86.         // line 13
  87.         yield "</li>
  88. ";
  89.         
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  91.         
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  93.         return; yield '';
  94.     }
  95.     // line 15
  96.     public function block_pagetitle($context, array $blocks = [])
  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""pagetitle"));
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pagetitle"));
  103.         // line 16
  104.         yield "\t";
  105.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("User", [], "messages");
  106.         
  107.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  108.         
  109.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  110.         return; yield '';
  111.     }
  112.     // line 19
  113.     public function block_body($context, array $blocks = [])
  114.     {
  115.         $macros $this->macros;
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  120.         // line 20
  121.         yield "
  122. ";
  123.         // line 21
  124.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("user_create")) {
  125.             // line 22
  126.             yield "<a href=\"";
  127.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_new");
  128.             yield "\" class=\"btn btn-sm btn-success\">
  129. \t<span class=\"fa fa-plus\"></span>
  130. \t";
  131.             // line 24
  132.             yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Create new", [], "messages");
  133.             yield "</a>
  134. ";
  135.         }
  136.         // line 26
  137.         yield "<br>
  138. \t<div class=\"card card-info mt-3 \">
  139. \t\t<div class=\"card-header\">
  140. \t\t\t<h5>";
  141.         // line 30
  142.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Users List", [], "messages");
  143.         // line 32
  144.         yield "</h5>
  145. \t\t</div>
  146. \t\t<div class=\"card-body\">
  147. \t\t\t<table class=\"table\">
  148. \t\t\t\t<thead>
  149. \t\t\t\t\t<tr>
  150. \t\t\t\t\t\t<th>#</th>
  151. \t\t\t\t\t\t<th>";
  152.         // line 39
  153.         yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->sortable($this->env, (isset($context["users"]) || array_key_exists("users"$context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.'39$this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Name"), "u.full_name");
  154.         yield "</th>
  155. \t\t\t\t\t\t<th>";
  156.         // line 40
  157.         yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->sortable($this->env, (isset($context["users"]) || array_key_exists("users"$context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.'40$this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email"), "u.email");
  158.         yield "</th>
  159. \t\t\t\t\t\t<th>";
  160.         // line 41
  161.         yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->sortable($this->env, (isset($context["users"]) || array_key_exists("users"$context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.'41$this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Unit"), "u.unit");
  162.         yield "</th>
  163. \t\t\t\t\t\t<th>";
  164.         // line 42
  165.         yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->sortable($this->env, (isset($context["users"]) || array_key_exists("users"$context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.'42$this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Position"), "u.position");
  166.         yield "</th>
  167. \t\t\t\t\t\t<th>";
  168.         // line 43
  169.         yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->sortable($this->env, (isset($context["users"]) || array_key_exists("users"$context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.'43$this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Active"), "u.isActive");
  170.         yield "</th>
  171. \t\t\t\t\t\t<th>";
  172.         // line 44
  173.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Actions", [], "messages");
  174.         yield "</th>
  175. \t\t\t\t\t</tr>
  176. \t\t\t\t</thead>
  177. \t\t\t\t<tbody>
  178. \t\t\t\t\t";
  179.         // line 48
  180.         $context["i"] = 1;
  181.         // line 49
  182.         yield "\t\t\t\t\t";
  183.         $context['_parent'] = $context;
  184.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["users"]) || array_key_exists("users"$context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.'49$this->source); })()));
  185.         $context['_iterated'] = false;
  186.         $context['loop'] = [
  187.           'parent' => $context['_parent'],
  188.           'index0' => 0,
  189.           'index'  => 1,
  190.           'first'  => true,
  191.         ];
  192.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  193.             $length count($context['_seq']);
  194.             $context['loop']['revindex0'] = $length 1;
  195.             $context['loop']['revindex'] = $length;
  196.             $context['loop']['length'] = $length;
  197.             $context['loop']['last'] = === $length;
  198.         }
  199.         foreach ($context['_seq'] as $context["_key"] => $context["user"]) {
  200.             // line 50
  201.             yield "\t\t\t\t\t\t<tr>
  202. \t\t\t\t\t\t\t<td>";
  203.             // line 51
  204.             yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'51$this->source); })()), "html"nulltrue);
  205.             yield "
  206. \t\t\t\t\t\t\t\t";
  207.             // line 52
  208.             $context["i"] = ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'52$this->source); })()) + 1);
  209.             // line 53
  210.             yield "\t\t\t\t\t\t\t</td>
  211. \t\t\t\t\t\t\t<td>";
  212.             // line 54
  213.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source$context["user"], "fullName", [], "any"falsefalsefalse54), "html"nulltrue);
  214.             yield "</td>
  215. \t\t\t\t\t\t\t<td>";
  216.             // line 55
  217.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source$context["user"], "email", [], "any"falsefalsefalse55), "html"nulltrue);
  218.             yield "</td>
  219. \t\t\t\t\t\t\t<td>";
  220.             // line 56
  221.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["user"], "unit", [], "any"falsefalsefalse56), "name", [], "any"falsefalsefalse56), "html"nulltrue);
  222.             yield "</td>
  223. \t\t\t\t\t\t\t<td>";
  224.             // line 57
  225.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source$context["user"], "position", [], "any"falsefalsefalse57), "html"nulltrue);
  226.             yield "</td>
  227. \t\t\t\t\t\t\t<td>";
  228.             // line 58
  229.             yield ((CoreExtension::getAttribute($this->env$this->source$context["user"], "isActive", [], "any"falsefalsefalse58)) ? ("Yes") : ("No"));
  230.             yield "</td>
  231. \t\t\t\t\t\t\t<td>
  232. \t\t\t\t\t\t\t\t";
  233.             // line 60
  234.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("user_show")) {
  235.                 // line 61
  236.                 yield "\t\t\t\t\t\t\t\t\t<a href=\"";
  237.                 yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_show", ["id" => CoreExtension::getAttribute($this->env$this->source$context["user"], "id", [], "any"falsefalsefalse61)]), "html"nulltrue);
  238.                 yield "\" class=\"btn btn-xs btn-primary\"><span class=\"fa fa-eye\"></span>";
  239.                 yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Show", [], "messages");
  240.                 yield "</a>
  241. \t\t\t\t\t\t\t\t";
  242.             }
  243.             // line 63
  244.             yield "\t\t\t\t\t\t\t\t";
  245.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("user_edit")) {
  246.                 // line 64
  247.                 yield "\t\t\t\t\t\t\t\t\t<a href=\"";
  248.                 yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_edit", ["id" => CoreExtension::getAttribute($this->env$this->source$context["user"], "id", [], "any"falsefalsefalse64)]), "html"nulltrue);
  249.                 yield "\" class=\"btn btn-xs btn-warning text-white\"><span class=\"fa fa-pen\"></span>
  250. \t\t\t\t\t\t\t\t\t";
  251.                 // line 65
  252.                 yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Edit", [], "messages");
  253.                 // line 66
  254.                 yield "\t\t\t\t\t\t\t\t\t</a>
  255. \t\t\t\t\t\t\t\t";
  256.             }
  257.             // line 68
  258.             yield "\t\t\t\t\t\t\t\t";
  259.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("user_delete")) {
  260.                 // line 69
  261.                 yield "\t\t\t\t\t\t\t\t\t";
  262.                 yield Twig\Extension\CoreExtension::include($this->env$context"user_management/users/_delete_form.html.twig");
  263.                 yield "
  264. \t\t\t\t\t\t\t\t";
  265.             }
  266.             // line 71
  267.             yield "\t\t\t\t\t\t\t</td>
  268. \t\t\t\t\t\t</tr>
  269. \t\t\t\t\t";
  270.             $context['_iterated'] = true;
  271.             ++$context['loop']['index0'];
  272.             ++$context['loop']['index'];
  273.             $context['loop']['first'] = false;
  274.             if (isset($context['loop']['length'])) {
  275.                 --$context['loop']['revindex0'];
  276.                 --$context['loop']['revindex'];
  277.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  278.             }
  279.         }
  280.         if (!$context['_iterated']) {
  281.             // line 74
  282.             yield "\t\t\t\t\t\t<tr>
  283. \t\t\t\t\t\t\t<td colspan=\"7\">";
  284.             // line 75
  285.             yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("no records found", [], "messages");
  286.             yield "</td>
  287. \t\t\t\t\t\t</tr>
  288. \t\t\t\t\t";
  289.         }
  290.         $_parent $context['_parent'];
  291.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['user'], $context['_parent'], $context['loop']);
  292.         $context array_intersect_key($context$_parent) + $_parent;
  293.         // line 78
  294.         yield "\t\t\t\t</tbody>
  295. \t\t\t</table>
  296. \t\t\t<div class=\"navigation\">";
  297.         // line 80
  298.         yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["users"]) || array_key_exists("users"$context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.'80$this->source); })()));
  299.         yield "</div>
  300. \t\t</div>
  301. \t</div>
  302. ";
  303.         
  304.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  305.         
  306.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  307.         return; yield '';
  308.     }
  309.     /**
  310.      * @codeCoverageIgnore
  311.      */
  312.     public function getTemplateName()
  313.     {
  314.         return "user_management/users/index.html.twig";
  315.     }
  316.     /**
  317.      * @codeCoverageIgnore
  318.      */
  319.     public function isTraitable()
  320.     {
  321.         return false;
  322.     }
  323.     /**
  324.      * @codeCoverageIgnore
  325.      */
  326.     public function getDebugInfo()
  327.     {
  328.         return array (  328 => 80,  324 => 78,  315 => 75,  312 => 74,  297 => 71,  291 => 69,  288 => 68,  284 => 66,  282 => 65,  277 => 64,  274 => 63,  266 => 61,  264 => 60,  259 => 58,  255 => 57,  251 => 56,  247 => 55,  243 => 54,  240 => 53,  238 => 52,  234 => 51,  231 => 50,  212 => 49,  210 => 48,  203 => 44,  199 => 43,  195 => 42,  191 => 41,  187 => 40,  183 => 39,  174 => 32,  172 => 30,  166 => 26,  161 => 24,  155 => 22,  153 => 21,  150 => 20,  140 => 19,  128 => 16,  118 => 15,  106 => 13,  104 => 11,  100 => 9,  96 => 7,  93 => 6,  83 => 5,  62 => 3,  39 => 1,);
  329.     }
  330.     public function getSourceContext()
  331.     {
  332.         return new Source("{% extends 'base.html.twig' %}
  333. {% block title %}User index
  334. {% endblock %}
  335. {% block breadcrumb %}
  336. \t<li class=\"breadcrumb-item\">
  337. \t\t<a href=\"{{path('user_index')}}\">{% trans %}
  338. \t\t\tUser
  339. \t\t\t{% endtrans %}</a>
  340. \t</li>
  341. \t<li class=\"breadcrumb-item active\">{% trans %}
  342. \t\tList
  343. \t\t{% endtrans %}</li>
  344. {% endblock %}
  345. {% block pagetitle %}
  346. \t{% trans %}
  347. \tUser{% endtrans %}
  348. {% endblock %}
  349. {% block body %}
  350. {% if is_granted(\"user_create\") %}
  351. <a href=\"{{ path('user_new') }}\" class=\"btn btn-sm btn-success\">
  352. \t<span class=\"fa fa-plus\"></span>
  353. \t{% trans %}Create new{% endtrans %}</a>
  354. {% endif %}
  355. <br>
  356. \t<div class=\"card card-info mt-3 \">
  357. \t\t<div class=\"card-header\">
  358. \t\t\t<h5>{% trans %}
  359. \t\t\t\tUsers List
  360. \t\t\t\t{% endtrans %}</h5>
  361. \t\t</div>
  362. \t\t<div class=\"card-body\">
  363. \t\t\t<table class=\"table\">
  364. \t\t\t\t<thead>
  365. \t\t\t\t\t<tr>
  366. \t\t\t\t\t\t<th>#</th>
  367. \t\t\t\t\t\t<th>{{ knp_pagination_sortable(users, 'Name'|trans, 'u.full_name') }}</th>
  368. \t\t\t\t\t\t<th>{{ knp_pagination_sortable(users, 'Email'|trans, 'u.email') }}</th>
  369. \t\t\t\t\t\t<th>{{ knp_pagination_sortable(users, 'Unit'|trans, 'u.unit') }}</th>
  370. \t\t\t\t\t\t<th>{{ knp_pagination_sortable(users, 'Position'|trans, 'u.position') }}</th>
  371. \t\t\t\t\t\t<th>{{ knp_pagination_sortable(users, 'Active'|trans, 'u.isActive') }}</th>
  372. \t\t\t\t\t\t<th>{% trans %}Actions{% endtrans %}</th>
  373. \t\t\t\t\t</tr>
  374. \t\t\t\t</thead>
  375. \t\t\t\t<tbody>
  376. \t\t\t\t\t{% set i = 1 %}
  377. \t\t\t\t\t{% for user in users %}
  378. \t\t\t\t\t\t<tr>
  379. \t\t\t\t\t\t\t<td>{{ i }}
  380. \t\t\t\t\t\t\t\t{% set i = i+1 %}
  381. \t\t\t\t\t\t\t</td>
  382. \t\t\t\t\t\t\t<td>{{ user.fullName }}</td>
  383. \t\t\t\t\t\t\t<td>{{ user.email }}</td>
  384. \t\t\t\t\t\t\t<td>{{ user.unit.name }}</td>
  385. \t\t\t\t\t\t\t<td>{{ user.position }}</td>
  386. \t\t\t\t\t\t\t<td>{{ user.isActive ? 'Yes' : 'No' }}</td>
  387. \t\t\t\t\t\t\t<td>
  388. \t\t\t\t\t\t\t\t{% if is_granted(\"user_show\") %}
  389. \t\t\t\t\t\t\t\t\t<a href=\"{{ path('user_show', {'id': user.id}) }}\" class=\"btn btn-xs btn-primary\"><span class=\"fa fa-eye\"></span>{% trans %}Show{% endtrans %}</a>
  390. \t\t\t\t\t\t\t\t{% endif %}
  391. \t\t\t\t\t\t\t\t{% if is_granted(\"user_edit\") %}
  392. \t\t\t\t\t\t\t\t\t<a href=\"{{ path('user_edit', {'id': user.id}) }}\" class=\"btn btn-xs btn-warning text-white\"><span class=\"fa fa-pen\"></span>
  393. \t\t\t\t\t\t\t\t\t{% trans %}Edit{% endtrans %}
  394. \t\t\t\t\t\t\t\t\t</a>
  395. \t\t\t\t\t\t\t\t{% endif %}
  396. \t\t\t\t\t\t\t\t{% if is_granted(\"user_delete\") %}
  397. \t\t\t\t\t\t\t\t\t{{ include('user_management/users/_delete_form.html.twig') }}
  398. \t\t\t\t\t\t\t\t{% endif %}
  399. \t\t\t\t\t\t\t</td>
  400. \t\t\t\t\t\t</tr>
  401. \t\t\t\t\t{% else %}
  402. \t\t\t\t\t\t<tr>
  403. \t\t\t\t\t\t\t<td colspan=\"7\">{% trans %}no records found{% endtrans %}</td>
  404. \t\t\t\t\t\t</tr>
  405. \t\t\t\t\t{% endfor %}
  406. \t\t\t\t</tbody>
  407. \t\t\t</table>
  408. \t\t\t<div class=\"navigation\">{{ knp_pagination_render(users) }}</div>
  409. \t\t</div>
  410. \t</div>
  411. {% endblock %}
  412. ""user_management/users/index.html.twig""/var/www/project.digitalethiopia.gov.et/templates/user_management/users/index.html.twig");
  413.     }
  414. }