<?php

/* FishmanPollBundle:Pollschedulingpeople:import.html.twig */
class __TwigTemplate_ce89cd9da2c698d899431f6fa834cf20 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_cfddaf6a79b49a0d548d83ca03cffa81ea743a20' => array($this, 'block___internal_cfddaf6a79b49a0d548d83ca03cffa81ea743a20'),
            '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=\"icos-create\"></span>Programaciones";
    }

    // 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("pollscheduling"), "html", null, true);
        echo "\">Programación de Encuestas</a></li>
    <li><a href=\"";
        // line 17
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollscheduling_show", array("id" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\">";
        echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "title") . " ") . $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "version")), "html", null, true);
        echo "</a></li>
    <li><a href=\"";
        // line 18
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingpeople", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\">Personas</a></li>
    <li class=\"current\"><a href=\"";
        // line 19
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingpeople_import", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\" title=\"\">Importar</a></li>
</ul>
";
    }

    // line 23
    public function block_subtitle2($context, array $blocks = array())
    {
        // line 24
        echo "<span class=\"icos-cog4\"></span><h5>Programación de Encuestas: ";
        echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "title") . " ") . $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "version")), "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_cfddaf6a79b49a0d548d83ca03cffa81ea743a20", $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("pollscheduling_show", array("id" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\">General</a></li>
                    ";
        // line 39
        if (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "entitytype") == "pollscheduling")) {
            // line 40
            echo "                    <li class=\"activeTab\"><a href=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingpeople", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
            echo "\">Personas</a></li>
                    ";
        }
        // line 42
        echo "                    <li><a href=\"";
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingevaluator", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\">Evaluaciones</a></li>
                    ";
        // line 43
        if (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "level") != 0)) {
            // line 44
            echo "                        <li><a href=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingsection", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
            echo "\">Secciones</a></li>
                    ";
        }
        // line 46
        echo "                    <li><a href=\"";
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingquestion", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\">Preguntas</a></li>
                    <li><a href=\"";
        // line 47
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingnotification", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\">Notificaciones</a></li>
                </ul>
            </div>
        </div>
        
        <form action=\"";
        // line 52
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingpeople_import", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : 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 class=\"\">
            <div class=\"formRow clearfix\">
              <div class=\"grid3\"><label>Plantilla</label></div>
              <div class=\"grid9\"><a href=\"";
        // line 56
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingpeople_downloadtemplate", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\" class=\"linkDownload\">importar-programacion-encuesta-personas.xlsx</a></div>
            </div>
            <div class=\"formRow clearfix noBorderB\">
                <div class=\"grid3\">";
        // line 59
        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 61
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "file"), 'widget');
        echo "
                    ";
        // line 62
        if ($this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "file"), 'errors')) {
            // line 63
            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 65
        echo "                </div>
            </div>
          </div>

        <div class=\"hide\">
            ";
        // line 70
        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 79
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingpeople", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\" class=\"sideB bGreyish mt10\">Cerrar</a>
                </li>
            </ul>
        </div>
        <!-- /.menuCrud -->
        </form>

        ";
        // line 86
        if ((isset($context["people"]) ? $context["people"] : null)) {
            // line 87
            echo "        <div class=\"dataListTable insideTable importTable\">
            <table class=\"records_list dataTable\">
                <thead>
                    <tr>
                      <th>Num</th>
                      <th>Código</th>
                      <th>Ape. Paterno</th>
                      <th>Ape. Materno</th>
                      <th>Nombres</th>
                      <th>Información</th>
                      <th>Unidad</th>
                      <th>Cargo</th>
                      <th>Perfil</th>
                      <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["people"]) {
                // 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["people"]) ? $context["people"] : null), "code"), "html", null, true);
                echo "</td>
                        <td>";
                // line 109
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["people"]) ? $context["people"] : null), "surname"), "html", null, true);
                echo "</td>
                        <td>";
                // line 110
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["people"]) ? $context["people"] : null), "lastname"), "html", null, true);
                echo "</td>
                        <td>";
                // line 111
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["people"]) ? $context["people"] : null), "name"), "html", null, true);
                echo "</td>
                        <td>";
                // line 112
                echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->workinginformationTypeFilter($this->getAttribute((isset($context["people"]) ? $context["people"] : null), "type")), "html", null, true);
                echo "</td>
                        <td>";
                // line 113
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["people"]) ? $context["people"] : null), "organizationalunit"), "html", null, true);
                echo "</td>
                        <td>";
                // line 114
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["people"]) ? $context["people"] : null), "charge"), "html", null, true);
                echo "</td>
                        <td>";
                // line 115
                echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->profileNameFilter($this->getAttribute((isset($context["people"]) ? $context["people"] : null), "role")), "html", null, true);
                echo "</td>
                        <td>";
                // line 116
                echo $this->getAttribute((isset($context["people"]) ? $context["people"] : null), "message");
                echo "</td>
                        <td>";
                // line 117
                echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->validToStringFilter($this->getAttribute((isset($context["people"]) ? $context["people"] : 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['people'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 119
            echo " 
                </tbody>
            </table>
            
        </div>
        <!-- /.dataListTable -->
        ";
        }
        // line 126
        echo "    </div>
    <!-- /.tableDefault -->
                          
       ";
        // line 129
        if ((isset($context["form2"]) ? $context["form2"] : null)) {
            // line 130
            echo "       <form action=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingpeople_import", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : 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=\"hide clearfix\">
            <div>";
            // line 133
            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 134
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form2"]) ? $context["form2"] : null), "temporalimportdata_id"), 'widget');
            echo "</div>
        </div>

        <div class=\"menuCrud clearfix\">
            <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 153
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingpeople", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : 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 169
        echo "
</div>
<!-- /.dataList -->

";
    }

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

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

    public function getTemplateName()
    {
        return "FishmanPollBundle:Pollschedulingpeople:import.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  410 => 179,  406 => 178,  402 => 177,  398 => 176,  395 => 175,  389 => 35,  381 => 169,  362 => 153,  340 => 134,  336 => 133,  327 => 130,  325 => 129,  320 => 126,  311 => 119,  294 => 117,  290 => 116,  286 => 115,  282 => 114,  278 => 113,  274 => 112,  270 => 111,  266 => 110,  262 => 109,  258 => 108,  254 => 107,  251 => 106,  234 => 105,  214 => 87,  212 => 86,  202 => 79,  190 => 70,  183 => 65,  177 => 63,  175 => 62,  171 => 61,  166 => 59,  160 => 56,  151 => 52,  143 => 47,  138 => 46,  132 => 44,  130 => 43,  125 => 42,  119 => 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,);
    }
}
