<?php

/* VGMWOBundle:NDepartment:new.html.twig */
class __TwigTemplate_b5ae00b9c56028dd00b6c954e04f9c87c5f3663478edaa40831623bd792a35c9 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("VGMWOBundle::layout.html.twig", "VGMWOBundle:NDepartment:new.html.twig", 1);
        $this->blocks = array(
            'jumbotron_content' => array($this, 'block_jumbotron_content'),
            'content' => array($this, 'block_content'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "VGMWOBundle::layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 2
    public function block_jumbotron_content($context, array $blocks = array())
    {
        // line 3
        echo "    <div class=\"jumbotron\" style=\"padding-top: 10px; padding-bottom: 5px;\"  id=\"jumbotron\">
        <div class=\"container-fluid\">
            <div class=\"col-md-12 text-center\" style=\"padding-left: 0px;\">
                <H3 style=\"margin: 0px;\"><strong>Create departments</strong></H3>
            </div>
        </div>
    </div>
";
    }

    // line 11
    public function block_content($context, array $blocks = array())
    {
        // line 12
        echo "    <div class=\"container\" style=\"min-height: 500px;\">
        <div class=\"col-md-12 text-right\">
            <div class=\"col-ms-2 pull-right\">
                <a href=\"";
        // line 15
        echo $this->env->getExtension('routing')->getPath("vgm_departments");
        echo "\">
                    <span class=\"glyphicon glyphicon-list\"></span>
                    Main list
                </a>
            </div>
        </div>
        ";
        // line 21
        echo         $this->env->getExtension('form')->renderer->renderBlock((isset($context["form"]) ? $context["form"] : null), 'form_start');
        echo "
            ";
        // line 22
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'errors');
        echo "
            <div class=\"container-fluid\">
                <div class=\"col-lg-12\">
                    <label class=\"form-label\">Department name:</label>
                    ";
        // line 26
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "name", array()), 'widget', array("attr" => array("tabindex" => 1, "class" => "form-control for-desktop", "placeholder" => "Department Name")));
        // line 29
        echo "
                </div>
                <div class=\"col-lg-12\">
                    <label class=\"form-label\" style=\"margin-top: 10px;\">Department description:</label>
                    ";
        // line 33
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "description", array()), 'widget', array("attr" => array("tabindex" => 3, "class" => "form-control for-desktop", "placeholder" => "Department Description")));
        // line 36
        echo "
                </div>
                <div class=\"col-lg-12\">
                    <div  style=\"margin-top: 10px;\">
                        <strong style=\"text-decoration: underline\">Units</strong>
                    </div>
                    ";
        // line 42
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "units", 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["unit"]) {
            // line 43
            echo "                        <div>
                            ";
            // line 44
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($context["unit"], 'widget', array("attr" => array("tabindex" => ($this->getAttribute(            // line 45
$context["loop"], "index", array()) + 1))));
            echo "
                            ";
            // line 46
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($context["unit"], '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['unit'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 49
        echo "                </div>
                <div class=\"col-lg-12\">
                    <div  style=\"margin-top: 10px;\">
                        <strong style=\"text-decoration: underline\">Supervisors</strong>
                    </div>
                    ";
        // line 54
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "supervisors", 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["sup"]) {
            // line 55
            echo "                        <div>
                            ";
            // line 56
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($context["sup"], 'widget', array("attr" => array("tabindex" => ($this->getAttribute(            // line 57
$context["loop"], "index", array()) + 1))));
            echo "
                            ";
            // line 58
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($context["sup"], '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['sup'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 61
        echo "                </div>
                <div class=\"col-lg-12 container-fluid text-right\" style=\"margin-top: 10px;\">
                    <button class=\"btn btn-primary\"
                            type=\"submit\">
                        Create
                    </button>
                    <a class=\"btn btn-warning\"
                       href=\"";
        // line 68
        echo $this->env->getExtension('routing')->getPath("vgm_departments");
        echo "\">
                        Cancel
                    </a>
                </div>
            </div>

        ";
        // line 74
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'rest');
        echo "
        ";
        // line 75
        echo         $this->env->getExtension('form')->renderer->renderBlock((isset($context["form"]) ? $context["form"] : null), 'form_end');
        echo "
    </div>
";
    }

    public function getTemplateName()
    {
        return "VGMWOBundle:NDepartment:new.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  202 => 75,  198 => 74,  189 => 68,  180 => 61,  163 => 58,  159 => 57,  158 => 56,  155 => 55,  138 => 54,  131 => 49,  114 => 46,  110 => 45,  109 => 44,  106 => 43,  89 => 42,  81 => 36,  79 => 33,  73 => 29,  71 => 26,  64 => 22,  60 => 21,  51 => 15,  46 => 12,  43 => 11,  32 => 3,  29 => 2,  11 => 1,);
    }
}
