<?php

/* VGMUserBundle:User:list_content.html.twig */
class __TwigTemplate_dab527361697e28e478feca9f4e824258f304d16998a9d6a531e8febd898fc5f extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 2
        echo "
<div class=\"container fos_user_list\"
     style=\"margin-top: 2.5vmin;\">
    <div class=\"col-lg-12\"
         style=\"font-size: 2.5vmin; margin-bottom: 1vmin;\">
        <strong>Users</strong>
        <a style=\"display: inline-block; margin-left: 2vmin; color: #428bca; cursor: pointer;\" data-toggle=\"modal\" data-target=\"#new-user-modal\" href=\"#\">
            <span class=\"glyphicon glyphicon-plus\"></span>
        </a>
    </div>
    <div class=\"table-responsive col-lg-12\">
        <table class=\"table table-striped table-hover\">
            <thead>
                <tr>
                    <th class=\"col-md-4\">Worker name</th>
                    <th class=\"col-md-2\">Username</th>
                    <th class=\"col-md-6\">Access groups</th>
                </tr>
            </thead>
            <tbody>
            ";
        // line 22
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["users"]) ? $context["users"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["user"]) {
            // line 23
            echo "                <tr style=\"cursor: pointer;\"
                    onclick=\"location.href='";
            // line 24
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("vgm_user_show_edit", array("username" => $this->getAttribute($context["user"], "username", array()))), "html", null, true);
            echo "'\">
                    <td>
                        ";
            // line 26
            echo twig_escape_filter($this->env, $this->getAttribute($context["user"], "getWorker", array(), "method"), "html", null, true);
            echo "
                    </td>
                    <td>
                        ";
            // line 29
            echo twig_escape_filter($this->env, $this->getAttribute($context["user"], "username", array()), "html", null, true);
            echo "
                    </td>
                    <td>
                        ";
            // line 32
            $context["groups_length"] = twig_length_filter($this->env, $this->getAttribute($context["user"], "getGroups", array(), "method"));
            // line 33
            echo "                        ";
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["user"], "getGroups", array(), "method"));
            $context['loop'] = array(
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            );
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["group"]) {
                // line 34
                echo "                            ";
                echo twig_escape_filter($this->env, $context["group"], "html", null, true);
                echo "
                            ";
                // line 35
                if (((isset($context["groups_length"]) ? $context["groups_length"] : null) > $this->getAttribute($context["loop"], "index", array()))) {
                    // line 36
                    echo "                                |
                            ";
                }
                // line 38
                echo "                        ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['group'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 39
            echo "                    </td>
                </tr>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['user'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 42
        echo "            </tbody>
        </table>
    </div>
    ";
        // line 45
        $this->loadTemplate("FOSUserBundle:User:new_content.html.twig", "VGMUserBundle:User:list_content.html.twig", 45)->display($context);
        // line 46
        echo "</div>";
    }

    public function getTemplateName()
    {
        return "VGMUserBundle:User:list_content.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  125 => 46,  123 => 45,  118 => 42,  110 => 39,  96 => 38,  92 => 36,  90 => 35,  85 => 34,  67 => 33,  65 => 32,  59 => 29,  53 => 26,  48 => 24,  45 => 23,  41 => 22,  19 => 2,);
    }
}
