<?php

/* VGMUserBundle:User:edit_content.html.twig */
class __TwigTemplate_fa8553fcae72ff12f4d494a857a492d5f3fde243e7c3d9810e646797bcece5cd 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=\"container-fluid\"
         style=\"padding: 0px;\">
        ";
        // line 8
        $this->env->getExtension('form')->renderer->setTheme((isset($context["edit_user_form"]) ? $context["edit_user_form"] : null), array(0 => $this));
        // line 9
        echo "        <form id=\"edit-user-form\"
              action=\"";
        // line 10
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("vgm_user_show_edit", array("username" => (isset($context["username"]) ? $context["username"] : null))), "html", null, true);
        echo "\"
              method=\"POST\" ";
        // line 11
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["edit_user_form"]) ? $context["edit_user_form"] : null), 'enctype');
        echo " class=\"fos_user_group_new\">
            <div class=\"container-fluid\">
                <div class=\"col-lg-5\">
                    <div class=\"col-lg-12\">
                        <label>E-mail:</label>
                        ";
        // line 16
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_user_form"]) ? $context["edit_user_form"] : null), "email", array()), 'widget', array("attr" => array("tabindex" => 1, "class" => "input-control", "placeholder" => "E-mail")));
        // line 19
        echo "
                    </div>
                    <div class=\"col-lg-12\" style=\"margin-top: 10px;\">
                        <label>Username:</label>
                        ";
        // line 23
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_user_form"]) ? $context["edit_user_form"] : null), "username", array()), 'widget', array("attr" => array("tabindex" => 2, "class" => "input-control", "placeholder" => "Username")));
        // line 26
        echo "
                    </div>
                    <div class=\"col-lg-12\" style=\"margin-top: 10px;\">
                        <label>Worker:</label>
                        ";
        // line 30
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_user_form"]) ? $context["edit_user_form"] : null), "worker", array()), 'widget', array("attr" => array("tabindex" => 3, "class" => "input-control", "placeholder" => "Worker")));
        // line 33
        echo "
                    </div>
                </div>
                <div class=\"col-xs-1\"></div>
                <div class=\"col-lg-5\">
                    <label>Access Groups</label>
                    ";
        // line 39
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["edit_user_form"]) ? $context["edit_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 40
            echo "                        <div>";
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($context["group"], 'widget', array("attr" => array("tabindex" => ($this->getAttribute(            // line 41
$context["loop"], "index", array()) + 5))));
            echo "
                            ";
            // line 42
            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 44
        echo "                    ";
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["edit_user_form"]) ? $context["edit_user_form"] : null), 'rest');
        echo "
                </div>
                <div class=\"col-xs-1\">
                    <a href=\"";
        // line 47
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("vgm_user_change_password", array("username" => (isset($context["username"]) ? $context["username"] : null))), "html", null, true);
        echo "\">
                        Reset Password
                    </a>
                </div>
            </div>
            <div class=\"col-lg-12 container-fluid text-right\">
                <button form=\"edit-user-form\" id=\"new-group-modal-create-button\"
                        type=\"submit\" class=\"btn btn-primary\">
                    Update user
                </button>
                <a href=\"";
        // line 57
        echo $this->env->getExtension('routing')->getPath("vgm_user_list");
        echo "\"
                   class=\"btn btn-warning\">
                    Cancel
                </a>
            </div>
        </form>
    </div>
</div>";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  129 => 57,  116 => 47,  109 => 44,  93 => 42,  89 => 41,  87 => 40,  70 => 39,  62 => 33,  60 => 30,  54 => 26,  52 => 23,  46 => 19,  44 => 16,  36 => 11,  32 => 10,  29 => 9,  27 => 8,  19 => 2,);
    }
}
