<?php

/* FishmanPollBundle:Pollapplication:import_onebyone.html.twig */
class __TwigTemplate_33c9b3e74f53b7df15feb010954851c1 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'),
            '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>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 16
    public function block_subtitle2($context, array $blocks = array())
    {
        // line 17
        echo "<span class=\"icos-cog4\"></span><h5>Importar Evaluaciones: ";
        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 20
    public function block_content($context, array $blocks = array())
    {
        // line 21
        $this->displayParentBlock("content", $context, $blocks);
        echo "

<form action=\"\" method=\"post\" class=\"manualSendOneByOne\">
    <div class=\"widget tableDefault clearfix\">
        
        <div class=\"formRow clearfix\">
            
            <div class=\"grid2\">
                <strong><label>Contador</label></strong>
            </div>
  
            <div class=\"grid7\">
              <div class=\"loader\">
                  <img src=\" ";
        // line 34
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("images/ajax-loader.gif"), "html", null, true);
        echo "\" alt=\"\" />
              </div>
              <div id=\"pai-progress\" class=\"ui-progressbar ui-widget ui-widget-content ui-corner-all\" role=\"progressbar\" aria-valuemin=\"0\" aria-valuemax=\"100\" aria-valuenow=\"80\">
                  <div class=\"ui-progressbar-value ui-widget-header ui-corner-left\" style=\"width: 0%; \"></div>
              </div>
              <div class=\"containerCountText\"><label class=\"countText\">20 de 45 evaluaciones a importar</label></div>
            </div>
            
            <div class=\"grid1\">
                <button type=\"submit\" id=\"pai-stop\" class=\"sideB bBlack\" disabled>Detener</button>
            </div>
            
            <div class=\"grid2\">
                <button type=\"submit\" id=\"pai-pending\" class=\"sideB bBlue\">Importar pendientes</button>
            </div>
  
        </div>
        
        <div class=\"dataListTable\">
            <table class=\"records_list dataTable\">
                <thead>
                    <tr>
                        ";
        // line 56
        if (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "type") != "not_evaluateds")) {
            // line 57
            echo "                        <th>Código Evaluado</th>
                        <th>Evaluado</th>
                        ";
        }
        // line 60
        echo "                        <th>Código Evaluador</th>
                        <th>Evaluador</th>
                        ";
        // line 62
        if (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "type") != "not_evaluateds")) {
            // line 63
            echo "                        <th>Rol</th>
                        <th>Cargo Global</th>
                        <th>Nivel Responsabilidad</th>
                        ";
        }
        // line 67
        echo "                        <th>Estado</th>
                        <th>Acción</th>
                    </tr>
                </thead>
                <tbody>
                ";
        // line 72
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["poll_application_imports"]) ? $context["poll_application_imports"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["pai"]) {
            // line 73
            echo "                    <tr id=\"pai-";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "id"), "html", null, true);
            echo "\">
                        ";
            // line 74
            if (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "type") != "not_evaluateds")) {
                // line 75
                echo "                        <td>";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "ev_code"), "html", null, true);
                echo "</td>
                        <td>";
                // line 76
                echo twig_escape_filter($this->env, (((($this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "ev_names") . " ") . $this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "ev_surname")) . " ") . $this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "ev_lastname")), "html", null, true);
                echo "</td>
                        ";
            }
            // line 78
            echo "                        <td>";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "er_code"), "html", null, true);
            echo "</td>
                        <td>";
            // line 79
            echo twig_escape_filter($this->env, (((($this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "er_names") . " ") . $this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "er_surname")) . " ") . $this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "er_lastname")), "html", null, true);
            echo "</td>
                        ";
            // line 80
            if (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "type") != "not_evaluateds")) {
                // line 81
                echo "                            <td>";
                echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->evaluationRolNameFilter($this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "er_rol")), "html", null, true);
                echo "</td>
                            <td>";
                // line 82
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "er_cargo"), "html", null, true);
                echo "</td>
                            <td>";
                // line 83
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "er_responsabilidad"), "html", null, true);
                echo "</td>
                        ";
            }
            // line 85
            echo "                        <td class=\"pai-status\">";
            echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->statusEvaluationNameFilter($this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "status")), "html", null, true);
            echo "</td>
                        <td class=\"pai-importbutton\">
                        ";
            // line 87
            if (($this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "status") == 0)) {
                // line 88
                echo "                            <a href=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollapplication_import_evaluation_message", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"), "paiid" => $this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "id"))), "html", null, true);
                echo "\" class=\"sideOne sideB bDefault\">Importar</a>
                        ";
            } elseif (($this->getAttribute((isset($context["pai"]) ? $context["pai"] : null), "status") == 1)) {
                // line 90
                echo "                            Importado
                        ";
            }
            // line 92
            echo "                        </td>
                    </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pai'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 95
        echo "                </tbody>
            </table>
        </div>
    </div>
    <div class=\"menuCrud clearfix\">
        <ul class=\"record_actions\">
            <li><a id=\"pai-discard\" type=\"submit\" class=\"sideB bRed\" href=\"";
        // line 101
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollapplication_import_discard", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\">Descartar evaluaciones pendientes</a></li>
        </ul>
    </div>
</form>
";
    }

    // line 107
    public function block_javascripts($context, array $blocks = array())
    {
        // line 108
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
";
        // line 109
        echo (isset($context["globaljavascript"]) ? $context["globaljavascript"] : null);
        echo "
<script type=\"text/javascript\">
/*<![CDATA[*/
    var pollapplicationimports = ";
        // line 112
        echo (isset($context["poll_application_imports_json"]) ? $context["poll_application_imports_json"] : null);
        echo ";
    var paicount = ";
        // line 113
        echo twig_escape_filter($this->env, (isset($context["paicount"]) ? $context["paicount"] : null), "html", null, true);
        echo ";
    var paiok = ";
        // line 114
        echo twig_escape_filter($this->env, (isset($context["paiok"]) ? $context["paiok"] : null), "html", null, true);
        echo ";
/*]]>*/
</script>
<script type=\"text/javascript\" src=\"";
        // line 117
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/pai_importonebyone_ajax.js"), "html", null, true);
        echo "\"></script>
";
    }

    public function getTemplateName()
    {
        return "FishmanPollBundle:Pollapplication:import_onebyone.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  253 => 117,  247 => 114,  243 => 113,  239 => 112,  233 => 109,  229 => 108,  226 => 107,  217 => 101,  209 => 95,  201 => 92,  197 => 90,  191 => 88,  189 => 87,  183 => 85,  178 => 83,  174 => 82,  169 => 81,  167 => 80,  163 => 79,  158 => 78,  153 => 76,  148 => 75,  146 => 74,  141 => 73,  137 => 72,  130 => 67,  124 => 63,  122 => 62,  118 => 60,  113 => 57,  111 => 56,  86 => 34,  70 => 21,  67 => 20,  60 => 17,  57 => 16,  52 => 13,  48 => 10,  45 => 9,  41 => 6,  38 => 5,  32 => 3,);
    }
}
