<?php

/* FOSUserBundle:Group:new_content.html.twig */
class __TwigTemplate_e95207fc76c597f1a507e85eb6851efc360979bf8af312011b4599973a2cf5d7 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 "
";
        // line 9
        echo "
<!-- form as modal panel -->
<div class=\"modal fade bs-example-modal-lg\"
     id=\"new-group-modal\"
     tabindex=\"-1\"
     role=\"dialog\"
     aria-labelledby=\"myModalLabel\"
     aria-hidden=\"true\">
    <div class=\"modal-dialog\">
        <div class=\"modal-content\">
            <div class=\"modal-header\">
                <button type=\"button\" class=\"close\" data-dismiss=\"modal\">
                    <span aria-hidden=\"true\">&times;</span>
                    <span class=\"sr-only\">Cancel</span>
                </button>
                <p class=\"modal-title\"
                   style=\"font-size: 2.5vmin; font-weight: bold;\">New Group</p>
            </div>
            <div class=\"modal-body\">
                <div class=\"container-fluid\"
                     style=\"padding: 0px;\">
                    ";
        // line 30
        $this->env->getExtension('form')->renderer->setTheme((isset($context["new_group_form"]) ? $context["new_group_form"] : null), array(0 => $this));
        // line 31
        echo "                    <form id=\"new-group-form\"
                          action=\"";
        // line 32
        echo $this->env->getExtension('routing')->getPath("fos_user_group_new");
        echo "\" ";
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["new_group_form"]) ? $context["new_group_form"] : null), 'enctype');
        echo "
                          method=\"POST\" class=\"fos_user_group_new\">
                        <div class=\"container-fluid\">
                            <div class=\"col-lg-5\"><label class=\"form-label\">Group name:</label>
                                ";
        // line 36
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["new_group_form"]) ? $context["new_group_form"] : null), "name", array()), 'widget', array("attr" => array("tabindex" => 1, "class" => "form-control", "placeholder" => "Group Name")));
        // line 39
        echo "
                            </div>
                            <div class=\"col-xs-1\"></div>
                            <div class=\"col-lg-6\">
                                <div><strong>Roles</strong></div>
                                ";
        // line 44
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["new_group_form"]) ? $context["new_group_form"] : null), "roles", array()));
        $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["choice"]) {
            // line 45
            echo "                                    <div>";
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($context["choice"], 'widget', array("attr" => array("tabindex" => ($this->getAttribute(            // line 46
$context["loop"], "index", array()) + 1))));
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($context["choice"], 'label');
            echo "</div>
                                ";
            ++$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['choice'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 48
        echo "                                ";
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["new_group_form"]) ? $context["new_group_form"] : null), 'rest');
        echo "
                            </div>

                        </div>
                    </form>
                </div>
            </div>
            <div class=\"modal-footer\">
                <button form=\"new-group-form\" id=\"new-group-modal-create-button\"
                        type=\"submit\" class=\"btn btn-primary\">
                    ";
        // line 58
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("group.new.submit", array(), "FOSUserBundle"), "html", null, true);
        echo "
                </button>
                <button id=\"new-group-modal-cancel-button\"
                        type=\"button\"
                        class=\"btn btn-warning\"
                        data-dismiss=\"modal\">
                    Cancel
                </button>
            </div>
        </div>
    </div>
</div>";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  118 => 58,  104 => 48,  87 => 46,  85 => 45,  68 => 44,  61 => 39,  59 => 36,  50 => 32,  47 => 31,  45 => 30,  22 => 9,  19 => 2,);
    }
}
