<?php

/* FishmanEntityBundle:Companyorganizationalunit:import.html.twig */
class __TwigTemplate_119b5c6a831e961626db4dc5d7d0c142 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = $this->env->loadTemplate("::base_fishman.html.twig");

        $this->blocks = array(
            'subtitle' => array($this, 'block_subtitle'),
            'top_navigation' => array($this, 'block_top_navigation'),
            'navigation' => array($this, 'block_navigation'),
            'breadcrumb' => array($this, 'block_breadcrumb'),
            'subtitle2' => array($this, 'block_subtitle2'),
            'content' => array($this, 'block_content'),
            '__internal_c1866f37185ab31d3d4f73729d2f7ef9cfc50f63' => array($this, 'block___internal_c1866f37185ab31d3d4f73729d2f7ef9cfc50f63'),
            'javascripts' => array($this, 'block_javascripts'),
        );
    }

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

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

    // line 3
    public function block_subtitle($context, array $blocks = array())
    {
        echo "<span class=\"icon-screen\"></span>mantenimientos";
    }

    // line 5
    public function block_top_navigation($context, array $blocks = array())
    {
        // line 6
        $this->env->loadTemplate("FishmanFrontEndBundle:Dashboard:navigation.html.twig")->display(array_merge($context, array("navigation" => "admin")));
    }

    // line 9
    public function block_navigation($context, array $blocks = array())
    {
        // line 10
        $this->env->loadTemplate("FishmanFrontEndBundle:Dashboard:navigation.html.twig")->display(array_merge($context, array("navigation" => "admin")));
    }

    // line 13
    public function block_breadcrumb($context, array $blocks = array())
    {
        // line 14
        echo "<ul id=\"breadcrumbs\" class=\"breadcrumbs\">
    <li><a href=\"";
        // line 15
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fishman_front_end_homepage"), "html", null, true);
        echo "\">Dashboard</a></li>
    <li><a href=\"";
        // line 16
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("company"), "html", null, true);
        echo "\">Empresas</a></li>
    <li><a href=\"";
        // line 17
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("company_show", array("id" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "name"), "html", null, true);
        echo "</a></li>
    <li><a href=\"";
        // line 18
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">Unidades Organizativas</a></li>
    <li class=\"current\"><a href=\"";
        // line 19
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit_import", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">Importar</a></li>
</ul>
";
    }

    // line 23
    public function block_subtitle2($context, array $blocks = array())
    {
        // line 24
        echo "<span class=\"icos-companies\"></span><h5>Mantenimiento de Empresas: ";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "name"), "html", null, true);
        echo "</h5>
";
    }

    // line 27
    public function block_content($context, array $blocks = array())
    {
        // line 28
        $this->displayParentBlock("content", $context, $blocks);
        echo "

<div class=\"dataList\">

    <div class=\"widget crud tableDefault clearfix\">
    
        <div class=\"whead clearfix\">
            <h6>";
        // line 35
        echo twig_escape_filter($this->env, twig_upper_filter($this->env, (string) $this->renderBlock("__internal_c1866f37185ab31d3d4f73729d2f7ef9cfc50f63", $context, $blocks)), "html", null, true);
        echo "</h6>
            <div class=\"navTabs\">
                <ul>
                    <li><a href=\"";
        // line 38
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("company_show", array("id" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">General</a></li>
                    <li><a href=\"";
        // line 39
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("headquarter", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">Sedes</a></li>
                    <li class=\"activeTab\"><a href=\"";
        // line 40
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">Unidades Organizativas</a></li>
                    <li><a href=\"";
        // line 41
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companycharge", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">Cargos</a></li>
                    ";
        // line 42
        if (($this->getAttribute((isset($context["company"]) ? $context["company"] : null), "companytype") == "university")) {
            // line 43
            echo "                        <li><a href=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyfaculty", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
            echo "\">Facultades</a></li>
                        <li><a href=\"";
            // line 44
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companycareer", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
            echo "\">Carreras</a></li>
                    ";
        }
        // line 46
        echo "                    ";
        if (($this->getAttribute((isset($context["company"]) ? $context["company"] : null), "companytype") != "working")) {
            // line 47
            echo "                        <li><a href=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companycourse", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
            echo "\">Cursos</a></li>
                    ";
        }
        // line 49
        echo "                </ul>
            </div>
        </div>
        
        <form action=\"";
        // line 53
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit_import", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\" method=\"post\" ";
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'enctype');
        echo " class=\"formImport main importFile\">

            <div>
                <div class=\"formRow clearfix\">
                    <div class=\"grid3\"><label>Plantilla</label></div>
                    <div class=\"grid9\"><a href=\"";
        // line 58
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit_downloadtemplate", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">importar-empresa-unidades-organizativas.xlsx</a></div>
                </div>
                <div class=\"formRow clearfix\">
                    <div class=\"grid3\">";
        // line 61
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "file"), 'label', array("label" => "Archivo"));
        echo "<span class=\"req\">*</span></div>
                    <div class=\"grid9\">
                        ";
        // line 63
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "file"), 'widget');
        echo "
                        ";
        // line 64
        if ($this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "file"), 'errors')) {
            // line 65
            echo "                            <div class=\"nNote nFailure nFieldFailure\">";
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "file"), 'errors');
            echo "</div>
                        ";
        }
        // line 67
        echo "                    </div>
                </div>
            </div>
            <div class=\"hide\">
                ";
        // line 71
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'rest');
        echo "
            </div>
            
            <div class=\"menuCrud clearfix\">
                <ul>
                    <li>
                        <button name=\"import\" type=\"submit\" class=\"sideB bGreyish mt10 buttonImport\">Importar</button>
                    </li>
                    <li>
                        <a href=\"";
        // line 80
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\" class=\"sideB bGreyish mt10\">
                           Cerrar 
                        </a>
                    </li>
                </ul>
            </div>
            <!-- /.menuCrud -->
        </form>

       ";
        // line 89
        if ((isset($context["ous"]) ? $context["ous"] : null)) {
            // line 90
            echo "        <div class=\"dataListTable insideTable importTable\">
            <table class=\"records_list dataTable\">
                <thead>
                    <tr>
                      <th>Orden</th>
                      <th>Código</th>
                      <th>Nombre</th>
                      <th>Nombre Global</th>
                      <th>Responsable</th>
                      <th>Padre</th>
                      <th>Tipo Unidad</th>
                      <th>Mensajes</th>
                      <th>Válido</th>
                    </tr>
                </thead>
                <tbody>
                ";
            // line 106
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["ous"]) ? $context["ous"] : null));
            $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["ou"]) {
                // line 107
                echo "                    <tr>
                        <td>";
                // line 108
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["loop"]) ? $context["loop"] : null), "index"), "html", null, true);
                echo "</td>
                        <td>";
                // line 109
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["ou"]) ? $context["ou"] : null), "code"), "html", null, true);
                echo "</td>
                        <td>";
                // line 110
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["ou"]) ? $context["ou"] : null), "name"), "html", null, true);
                echo "</td>
                        <td>";
                // line 111
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["ou"]) ? $context["ou"] : null), "ou_name"), "html", null, true);
                echo "</td>
                        <td>";
                // line 112
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["ou"]) ? $context["ou"] : null), "ou_boss_name"), "html", null, true);
                echo "</td>
                        <td>";
                // line 113
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["ou"]) ? $context["ou"] : null), "ou_parent_name"), "html", null, true);
                echo "</td>
                        <td>";
                // line 114
                echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->ouUnitTypeNameFilter($this->getAttribute((isset($context["ou"]) ? $context["ou"] : null), "unit_type")), "html", null, true);
                echo "</td>
                        <td>";
                // line 115
                echo $this->getAttribute((isset($context["ou"]) ? $context["ou"] : null), "message");
                echo "</td>
                        <td>";
                // line 116
                echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->validToStringFilter($this->getAttribute((isset($context["ou"]) ? $context["ou"] : null), "valid")), "html", null, true);
                echo "</td>
                    </tr>
                  ";
                ++$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['ou'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 118
            echo " 
                </tbody>
            </table>
            
        </div>
        <!-- /.dataListTable -->
        ";
        }
        // line 125
        echo "    </div>
    <!-- /.tableDefault -->

    ";
        // line 128
        if ((isset($context["form2"]) ? $context["form2"] : null)) {
            // line 129
            echo "    <form action=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit_import", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
            echo "\" method=\"post\" ";
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form2"]) ? $context["form2"] : null), 'enctype');
            echo " class=\"main formControl\">
        
        <div class=\"menuCrud clearfix\">

            <div class=\"hide clearfix\">
                <div>";
            // line 134
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form2"]) ? $context["form2"] : null), "temporalimportdata_id"), 'label', array("label" => "Id"));
            echo "</div>
                <div>";
            // line 135
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form2"]) ? $context["form2"] : null), "temporalimportdata_id"), 'widget');
            echo "</div>
            </div>

            <ul>
                <li>
                    <button name=\"save\" value=\"1\" type=\"submit\" class=\"sideB bGreyish mt10\">Guardar</button>
                </li>
                <li>
                    <input type=\"hidden\" name=\"saveandclose\" value=\"0\" class=\"saveAndClose\" />
                    <button name=\"buttonsac\" value=\"0\" type=\"submit\" class=\"buttonSaveAndClose sideB bRed mt10\">Guardar y Cerrar</button>
                </li>
                <li>
                    <a id=\"close-button\" href=\"#confirmation-box\" class=\"sideB bGreyish mt10\">Cerrar</a>
                    <div class=\"hide\">
                        <div id=\"confirmation-box\" class=\"clearfix\">
                            <p>Aún no ha guardado los datos de importación. Si presiona continuar perderá esta información ¿Desea continuar?</p>
                            <div class=\"confirmationButton clearfix\">
                                <a href=\"";
            // line 152
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
            echo "\" class=\"sideB bRed mt10 mb10 submit f-left\">
                                    Continuar 
                                </a>
                                <a href=\"#\" class=\"fancybox-close sideB bGreyish mt10 mb10 submit f-left\" >
                                    Cancelar
                                </a>
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        <!-- /.menuCrud -->
    </form> 
    ";
        }
        // line 167
        echo "</div>
<!-- /.dataList -->
";
    }

    // line 35
    public function block___internal_c1866f37185ab31d3d4f73729d2f7ef9cfc50f63($context, array $blocks = array())
    {
        echo "Importar Unidades Organizativas";
    }

    // line 171
    public function block_javascripts($context, array $blocks = array())
    {
        // line 172
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
<script type=\"text/javascript\" src=\"";
        // line 173
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/custom_fischman.js"), "html", null, true);
        echo "\"></script>
<script type=\"text/javascript\" src=\"";
        // line 174
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/custom_validate.js"), "html", null, true);
        echo "\"></script>
<script type=\"text/javascript\" src=\"";
        // line 175
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/confirmation_message.js"), "html", null, true);
        echo "\"></script>
";
    }

    public function getTemplateName()
    {
        return "FishmanEntityBundle:Companyorganizationalunit:import.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  404 => 175,  400 => 174,  396 => 173,  392 => 172,  389 => 171,  383 => 35,  377 => 167,  359 => 152,  339 => 135,  335 => 134,  324 => 129,  322 => 128,  317 => 125,  308 => 118,  291 => 116,  287 => 115,  283 => 114,  279 => 113,  275 => 112,  271 => 111,  267 => 110,  263 => 109,  259 => 108,  256 => 107,  239 => 106,  221 => 90,  219 => 89,  207 => 80,  195 => 71,  189 => 67,  183 => 65,  181 => 64,  177 => 63,  172 => 61,  166 => 58,  156 => 53,  150 => 49,  144 => 47,  141 => 46,  136 => 44,  131 => 43,  129 => 42,  125 => 41,  121 => 40,  117 => 39,  113 => 38,  107 => 35,  97 => 28,  94 => 27,  87 => 24,  84 => 23,  77 => 19,  73 => 18,  67 => 17,  63 => 16,  59 => 15,  56 => 14,  53 => 13,  49 => 10,  46 => 9,  42 => 6,  39 => 5,  33 => 3,);
    }
}
