<?php

/* FOSUserBundle:Group:list_content.html.twig */
class __TwigTemplate_a3b625e519bf3c652c058e44be150c5d1a36654bbde7a7c77fc52e1fa38a7917 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_group_list\"
     style=\"margin-top: 2.5vmin;\">
    <div class=\"col-lg-12\" style=\"font-size: 2.5vmin; margin-bottom: 1vmin;\">
        <strong>Access Groups</strong>
        <a style=\"display: inline-block; margin-left: 2vmin; color: #428bca; cursor: pointer;\" data-toggle=\"modal\" data-target=\"#new-group-modal\" href=\"#\"
           ";
        // line 8
        echo ">
            <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\">Group name</th>
                <th class=\"col-md-8\">Group roles</th>
            </tr>
            </thead>
            <tbody>
            ";
        // line 21
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["groups"]) ? $context["groups"] : $this->getContext($context, "groups")));
        foreach ($context['_seq'] as $context["_key"] => $context["group"]) {
            // line 22
            echo "                <tr style=\"cursor: pointer;\"
                    onclick=\"location.href='";
            // line 23
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fos_user_group_edit", array("groupName" => $this->getAttribute($context["group"], "getName", array(), "method"))), "html", null, true);
            echo "'\">
                    <td>
                        ";
            // line 25
            echo twig_escape_filter($this->env, $this->getAttribute($context["group"], "getName", array(), "method"), "html", null, true);
            echo "
                    </td>
                    <td>
                        ";
            // line 28
            $context["roles_length"] = twig_length_filter($this->env, $this->getAttribute($context["group"], "getRoles", array(), "method"));
            // line 29
            echo "                        ";
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["group"], "getRoles", 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["role"]) {
                // line 30
                echo "                            ";
                echo twig_escape_filter($this->env, $context["role"], "html", null, true);
                echo "
                            ";
                // line 31
                if (((isset($context["roles_length"]) ? $context["roles_length"] : $this->getContext($context, "roles_length")) > $this->getAttribute($context["loop"], "index", array()))) {
                    // line 32
                    echo "                                |
                            ";
                }
                // line 34
                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['role'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 35
            echo "                    </td>
                </tr>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['group'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 38
        echo "            </tbody>
        </table>
    </div>

    ";
        // line 42
        $this->loadTemplate("FOSUserBundle:Group:new_content.html.twig", "FOSUserBundle:Group:list_content.html.twig", 42)->display($context);
        // line 43
        echo "</div>
";
    }

    public function getTemplateName()
    {
        return "FOSUserBundle:Group:list_content.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  121 => 43,  119 => 42,  113 => 38,  105 => 35,  91 => 34,  87 => 32,  85 => 31,  80 => 30,  62 => 29,  60 => 28,  54 => 25,  49 => 23,  46 => 22,  42 => 21,  27 => 8,  19 => 2,);
    }
}
