<?php

/* FishmanAuthBundle:User:import.html.twig */
class __TwigTemplate_373b78c0c89b6bff465e7e895949a0f3 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_00f7982ecf9d5ac97dbf14a74208dd5ab871fa06' => array($this, 'block___internal_00f7982ecf9d5ac97dbf14a74208dd5ab871fa06'),
            '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" => "scheduling")));
    }

    // 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" => "scheduling")));
    }

    // 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("user"), "html", null, true);
        echo "\">Personas</a></li>
    <li class=\"current\"><a href=\"";
        // line 17
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("user_import"), "html", null, true);
        echo "\">Importar</a></li>
</ul>
";
    }

    // line 21
    public function block_subtitle2($context, array $blocks = array())
    {
        // line 22
        echo "<span class=\"icos-users2\"></span><h5>Mantenimiento de Personas</h5>
";
    }

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

<div class=\"dataList\">

    <div class=\"widget crud tableDefault clearfix\">
    
        <div class=\"whead clearfix\">
            <h6>";
        // line 33
        echo twig_escape_filter($this->env, twig_upper_filter($this->env, (string) $this->renderBlock("__internal_00f7982ecf9d5ac97dbf14a74208dd5ab871fa06", $context, $blocks)), "html", null, true);
        echo "</h6>
        </div>
        
        <form action=\"";
        // line 36
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("user_import"), "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\">
                        <p><a href=\"";
        // line 42
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("user_downloadtemplate", array("type" => "working")), "html", null, true);
        echo "\">importar-personas-laboral.xlsx</a></p>
                        <p><a href=\"";
        // line 43
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("user_downloadtemplate", array("type" => "school")), "html", null, true);
        echo "\">importar-personas-colegio.xlsx</a></p>
                        <p><a href=\"";
        // line 44
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("user_downloadtemplate", array("type" => "university")), "html", null, true);
        echo "\">importar-personas-universidad.xlsx</a></p>
                    </div>
                </div>
                <div class=\"formRow clearfix\">
                    <div class=\"grid3\">";
        // line 48
        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=\"grid3\">";
        // line 49
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "file"), 'widget');
        echo "</div>
                </div>
                <div class=\"formRow clearfix\">
                    <div class=\"grid3\">";
        // line 52
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "type"), 'label', array("label" => "Tipo"));
        echo "<span class=\"req\">*</span></div>
                    <div class=\"grid9\">";
        // line 53
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "type"), 'widget', array("empty_value" => "SELECCIONE UNA OPCIÓN"));
        echo "</div>
                </div>
            </div>
            
            <div class=\"hide\">
                ";
        // line 58
        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 67
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("user"), "html", null, true);
        echo "\" class=\"sideB bGreyish mt10\">
                           Cerrar 
                        </a>
                    </li>
                    <li>
                </ul>
            </div>
            <!-- /.menuCrud -->

        </form>
        
        ";
        // line 78
        if ((isset($context["people"]) ? $context["people"] : null)) {
            // line 79
            echo "        <div class=\"dataListTable insideTable importTable importTableUser\">
            <table class=\"records_list dataTable\">
                <thead>
                    <tr>
                        <th>Orden</th>
                        <th>Código</th>
                        <th>Ape. Paterno</th>
                        <th>Ape. Materno</th>
                        <th>Nombres</th>
                        <th>Email</th>
                        ";
            // line 89
            if (($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "type") == "working")) {
                // line 90
                echo "                        <th>Unidad</th>
                        <th>Cargo</th>
                        ";
            } elseif (($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "type") == "school")) {
                // line 93
                echo "                        <th>Grado</th>
                        <th>Año de Estudio</th>
                        ";
            } elseif (($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "type") == "university")) {
                // line 96
                echo "                        <th>Facultad</th>
                        <th>Carrera</th>
                        <th>Ciclo Académico</th>
                        ";
            }
            // line 100
            echo "                        <th>Mensajes</th>
                        <th>Válido</th>
                    </tr>
                </thead>
                <tbody>
                ";
            // line 105
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["people"]) ? $context["people"] : 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["person"]) {
                // line 106
                echo "                    <tr>
                        <td>";
                // line 107
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["loop"]) ? $context["loop"] : null), "index"), "html", null, true);
                echo "</td>
                        <td>";
                // line 108
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "code"), "html", null, true);
                echo "</td>
                        <td>";
                // line 109
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "surname"), "html", null, true);
                echo "</td>
                        <td>";
                // line 110
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "lastname"), "html", null, true);
                echo "</td>
                        <td>";
                // line 111
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "names"), "html", null, true);
                echo "</td>
                        <td>";
                // line 112
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "email"), "html", null, true);
                echo "</td>
                        ";
                // line 113
                if (($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "type") == "working")) {
                    // line 114
                    echo "                        <td>";
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "ou_name"), "html", null, true);
                    echo "</td>
                        <td>";
                    // line 115
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "charge_name"), "html", null, true);
                    echo "</td>
                        ";
                } elseif (($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "type") == "school")) {
                    // line 117
                    echo "                        <td>";
                    echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->gradeNameFilter($this->getAttribute((isset($context["person"]) ? $context["person"] : null), "grade_code")), "html", null, true);
                    echo "</td>
                        <td>";
                    // line 118
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "study_year"), "html", null, true);
                    echo "</td>
                        ";
                } elseif (($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "type") == "university")) {
                    // line 120
                    echo "                        <td>";
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "faculty_name"), "html", null, true);
                    echo "</td>
                        <td>";
                    // line 121
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "career_name"), "html", null, true);
                    echo "</td>
                        <td>";
                    // line 122
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "academic_year"), "html", null, true);
                    echo "</td>
                        ";
                }
                // line 124
                echo "                        <td>";
                echo $this->getAttribute((isset($context["person"]) ? $context["person"] : null), "message");
                echo "</td>
                        <td>";
                // line 125
                echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->validToStringFilter($this->getAttribute((isset($context["person"]) ? $context["person"] : 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['person'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 128
            echo "                </tbody>
            </table>
            
        </div>
        <!-- /.dataListTable -->
        ";
        }
        // line 134
        echo "    </div>
    <!-- /.tableDefault -->
        
    ";
        // line 137
        if ((isset($context["form2"]) ? $context["form2"] : null)) {
            // line 138
            echo "    <form action=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("user_import"), "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 143
            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 144
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form2"]) ? $context["form2"] : null), "temporalimportdata_id"), 'widget');
            echo "</div>
            </div>

            <ul>
            ";
            // line 149
            echo "            ";
            if (((isset($context["disabled_valid"]) ? $context["disabled_valid"] : null) == 0)) {
                // line 150
                echo "                <li>
                    <button name=\"save\" disabled value=\"1\" type=\"submit\" class=\"sideB bGreyish mt10\">Guardar</button>
                </li>
                <li>
                    <button name=\"buttonsac\" value=\"0\" type=\"submit\" class=\"buttonSaveAndClose sideB bRed mt10\">>Guardar y Cerrar</button>
                </li>
            ";
            } else {
                // line 157
                echo "                <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=\"1\" type=\"submit\" class=\"buttonSaveAndClose sideB bRed mt10\">Guardar y Cerrar</button>
                </li>
            ";
            }
            // line 165
            echo "                <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 171
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("user"), "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 187
        echo "</div>
<!-- /.dataList -->

";
    }

    // line 33
    public function block___internal_00f7982ecf9d5ac97dbf14a74208dd5ab871fa06($context, array $blocks = array())
    {
        echo "Importar Personas";
    }

    // line 192
    public function block_javascripts($context, array $blocks = array())
    {
        // line 193
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
<script type=\"text/javascript\" src=\"";
        // line 194
        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 195
        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 196
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/confirmation_message.js"), "html", null, true);
        echo "\"></script>
";
    }

    public function getTemplateName()
    {
        return "FishmanAuthBundle:User:import.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  430 => 196,  426 => 195,  422 => 194,  418 => 193,  415 => 192,  409 => 33,  402 => 187,  383 => 171,  375 => 165,  365 => 157,  356 => 150,  353 => 149,  346 => 144,  342 => 143,  331 => 138,  329 => 137,  324 => 134,  316 => 128,  299 => 125,  294 => 124,  289 => 122,  285 => 121,  280 => 120,  275 => 118,  270 => 117,  265 => 115,  260 => 114,  258 => 113,  254 => 112,  250 => 111,  246 => 110,  242 => 109,  238 => 108,  234 => 107,  231 => 106,  214 => 105,  207 => 100,  201 => 96,  196 => 93,  191 => 90,  189 => 89,  177 => 79,  175 => 78,  161 => 67,  149 => 58,  141 => 53,  137 => 52,  131 => 49,  127 => 48,  120 => 44,  116 => 43,  112 => 42,  101 => 36,  95 => 33,  85 => 26,  82 => 25,  77 => 22,  74 => 21,  67 => 17,  63 => 16,  59 => 15,  56 => 14,  53 => 13,  49 => 10,  46 => 9,  42 => 6,  39 => 5,  33 => 3,);
    }
}
