<?php

/* VGMUserBundle:User:new_content.html.twig */
class __TwigTemplate_c5dd411fb07f5f1a8778f5060b87e8166c106482c012b53b9d18919baf0c022c 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 "
<!-- form as modal panel -->
<div class=\"modal fade bs-example-modal-lg\"
     id=\"new-user-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 User</p>
            </div>
            <div class=\"modal-body\">
                <div class=\"container-fluid\"
                     style=\"padding: 0px;\">
                    ";
        // line 23
        $this->env->getExtension('form')->renderer->setTheme((isset($context["new_user_form"]) ? $context["new_user_form"] : null), array(0 => $this));
        // line 24
        echo "                    <form id=\"new-user-form\"
                          action=\"";
        // line 25
        echo $this->env->getExtension('routing')->getPath("vgm_user_create");
        echo "\"
                          method=\"POST\" ";
        // line 26
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["new_user_form"]) ? $context["new_user_form"] : null), 'enctype');
        echo " class=\"fos_user_group_new\">
                        <div class=\"container-fluid\">
                            <div class=\"col-lg-5\">
                                <div class=\"col-lg-12\">
                                    ";
        // line 30
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["new_user_form"]) ? $context["new_user_form"] : null), "email", array()), 'widget', array("attr" => array("tabindex" => 1, "class" => "input-control", "placeholder" => "E-mail")));
        // line 33
        echo "
                                </div>
                                <div class=\"col-lg-12\" style=\"margin-top: 10px;\">
                                    ";
        // line 36
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["new_user_form"]) ? $context["new_user_form"] : null), "username", array()), 'widget', array("attr" => array("tabindex" => 2, "class" => "input-control", "placeholder" => "Username")));
        // line 39
        echo "
                                </div>
                                <div class=\"col-lg-12\" style=\"margin-top: 10px;\">
                                    ";
        // line 42
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["new_user_form"]) ? $context["new_user_form"] : null), "worker", array()), 'widget', array("attr" => array("tabindex" => 3, "class" => "input-control", "placeholder" => "Username")));
        // line 45
        echo "
                                </div>
                                <div class=\"col-lg-12\" style=\"margin-top: 10px;\">
                                    ";
        // line 48
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getAttribute((isset($context["new_user_form"]) ? $context["new_user_form"] : null), "plainPassword", array()), "first", array()), 'widget', array("attr" => array("tabindex" => 4, "class" => "input-control", "placeholder" => "Password")));
        // line 51
        echo "
                                </div>
                                <div class=\"col-lg-12\" style=\"margin-top: 10px;\">
                                    ";
        // line 54
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getAttribute((isset($context["new_user_form"]) ? $context["new_user_form"] : null), "plainPassword", array()), "second", array()), 'widget', array("attr" => array("tabindex" => 5, "class" => "input-control", "placeholder" => "Confirm password")));
        // line 57
        echo "
                                </div>
                            </div>
                            <div class=\"col-xs-1\"></div>
                            <div class=\"col-lg-6\">
                                <div><strong>Access Groups</strong></div>
                                ";
        // line 63
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["new_user_form"]) ? $context["new_user_form"] : null), "groups", 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["group"]) {
            // line 64
            echo "                                    <div>";
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($context["group"], 'widget', array("attr" => array("tabindex" => ($this->getAttribute(            // line 65
$context["loop"], "index", array()) + 5))));
            echo "
                                    ";
            // line 66
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($context["group"], '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['group'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 68
        echo "                                ";
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["new_user_form"]) ? $context["new_user_form"] : null), 'rest');
        echo "
                            </div>

                        </div>
                    </form>
                </div>
            </div>
            <div class=\"modal-footer\">
                <button form=\"new-user-form\" id=\"new-group-modal-create-button\"
                        type=\"submit\" class=\"btn btn-primary\">
                    Create user
                </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 "VGMUserBundle:User:new_content.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  135 => 68,  119 => 66,  115 => 65,  113 => 64,  96 => 63,  88 => 57,  86 => 54,  81 => 51,  79 => 48,  74 => 45,  72 => 42,  67 => 39,  65 => 36,  60 => 33,  58 => 30,  51 => 26,  47 => 25,  44 => 24,  42 => 23,  19 => 2,);
    }
}
