<?php

/* FishmanFrontEndBundle:Dashboard/Poll:index.html.twig */
class __TwigTemplate_6d9d2da36986a672be933df41f3fe316 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'),
            'content' => array($this, 'block_content'),
            '__internal_075d5f3f3968b0a3c68de2d88d8629e32402651c' => array($this, 'block___internal_075d5f3f3968b0a3c68de2d88d8629e32402651c'),
            '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())
    {
        // line 4
        if (((($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_ADMIN") || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_SUPER_ADMIN")) || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_TEACHER"))) {
            // line 5
            echo "<span class=\"icon-screen\"></span>Encuestas
";
        } else {
            // line 7
            echo "<span class=\"icon-screen\"></span>Encuestas | ";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "workinginformation"), "method"), "company_name"), "html", null, true);
            echo "
";
        }
    }

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

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

    // line 19
    public function block_breadcrumb($context, array $blocks = array())
    {
        // line 20
        echo "<ul id=\"breadcrumbs\" class=\"breadcrumbs\">
    <li><a href=\"";
        // line 21
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fishman_front_end_homepage"), "html", null, true);
        echo "\">Dashboard</a></li>
    <li class=\"current\"><a href=\"";
        // line 22
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fishman_front_end_polls"), "html", null, true);
        echo "\">Encuestas</a></li>
</ul>
";
    }

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

<div class=\"dataList\">

    <div class=\"widget tableDefault clearfix\">
    
        <div class=\"whead clearfix\">
            <h6>";
        // line 34
        echo twig_escape_filter($this->env, twig_upper_filter($this->env, (string) $this->renderBlock("__internal_075d5f3f3968b0a3c68de2d88d8629e32402651c", $context, $blocks)), "html", null, true);
        echo "</h6>
        </div>
        
        <div class=\"tablePars clearfix\">
            <div class=\"dataTables_filter clearfix\">
                <form action=\"\" method=\"get\" ";
        // line 39
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'enctype');
        echo " class=\"clearfix\">
                    <div class=\"formRow formRowWord clearfix\">
                        ";
        // line 41
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "word"), 'label', array("label" => "Id / Nombre"));
        echo "
                        <div>";
        // line 42
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "word"), 'widget');
        echo "</div>
                    </div>
                    ";
        // line 44
        if (((($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_ADMIN") || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_SUPER_ADMIN")) || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_TEACHER"))) {
            // line 45
            echo "                    <div class=\"formRow formText clearfix\">
                        ";
            // line 46
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "resolved"), 'label', array("label" => "Resuelto"));
            echo "
                        <div>";
            // line 47
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "resolved"), 'widget');
            echo "</div>
                    </div>
                    ";
        }
        // line 50
        echo "                    <div class=\"formRow clearfix\">
                        ";
        // line 51
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "company"), 'label', array("label" => "Empresa"));
        echo "
                        <div>";
        // line 52
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "company"), 'widget');
        echo "</div>
                    </div>
                    <div class=\"formRow formDatetime clearfix\">
                        ";
        // line 55
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "initdate"), 'label', array("label" => "Inicio"));
        echo "
                        <div>";
        // line 56
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "initdate"), 'widget', array("attr" => array("class" => "datepicker", "value" => $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "initdate"), "vars"), "value"))));
        echo "</div>
                    </div>
                    <div class=\"formRow formDatetime clearfix\">
                        ";
        // line 59
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "enddate"), 'label', array("label" => "Fin"));
        echo "
                        <div>";
        // line 60
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "enddate"), 'widget', array("attr" => array("class" => "datepicker", "value" => $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "enddate"), "vars"), "value"))));
        echo "</div>
                    </div>
                    <div class=\"formRow clearfix\">
                        <button type=\"submit\" class=\"buttonSearch sideB\"></button>
                    </div>
                    <div class=\"hide\">
                        ";
        // line 66
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'widget');
        echo "
                    </div>
                </form>
            </div>
        </div>
        <!-- /.tablePars -->

        <div class=\"dataListTable\">
            <table class=\"records_list dataTable\">
                <thead>
                    <tr>
                        <th>Id</th>
                        <th>Nombre</th>
                        ";
        // line 79
        if (((($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_ADMIN") || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_SUPER_ADMIN")) || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_TEACHER"))) {
            // line 80
            echo "                        <th>Resuelto</th>
                        ";
        }
        // line 82
        echo "                        <th>Empresa</th>
                        <th>Inicio</th>
                        <th>Fin</th>
                        ";
        // line 85
        if (((($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_ADMIN") || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_SUPER_ADMIN")) || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_TEACHER"))) {
            // line 86
            echo "                        <th>Avance</th>
                        ";
        }
        // line 88
        echo "                        <th>Acción</th>
                    </tr>
                </thead>
                <tbody>
                    ";
        // line 92
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["polls"]) ? $context["polls"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["poll"]) {
            // line 93
            echo "                    <tr>
                        <td>";
            // line 94
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "id"), "html", null, true);
            echo "</td>
                        ";
            // line 95
            if (($this->env->getExtension('fishman_extension')->dateIsBeforeFunction($this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "initdate")) && $this->env->getExtension('fishman_extension')->dateIsAfterFunction($this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "enddate")))) {
                // line 96
                echo "                        <td><a href=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fishman_front_end_poll", array("pollid" => $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "id"))), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "title"), "html", null, true);
                echo "</a></td>
                        ";
            } else {
                // line 98
                echo "                        <td>";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "title"), "html", null, true);
                echo "</td>
                        ";
            }
            // line 100
            echo "                        ";
            if (((($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_ADMIN") || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_SUPER_ADMIN")) || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_TEACHER"))) {
                // line 101
                echo "                        <td>";
                if (($this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "time_number") == "")) {
                    echo "0";
                } else {
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "time_number"), "html", null, true);
                }
                echo "</td>
                        ";
            }
            // line 103
            echo "                        <td>";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "company"), "html", null, true);
            echo "</td>
                        <td>";
            // line 104
            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "initdate"), "d/m/Y"), "html", null, true);
            echo "</td>
                        <td>";
            // line 105
            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "enddate"), "d/m/Y"), "html", null, true);
            echo "</td>
                        ";
            // line 106
            if (((($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_ADMIN") || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_SUPER_ADMIN")) || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_TEACHER"))) {
                // line 107
                echo "                        <td>";
                echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->calculatePercentageFunction($this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "quantity"), $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "total")), "html", null, true);
                echo "</td>
                        ";
            }
            // line 109
            echo "                        <td class=\"actionsButtons actionsButtonsView\">
                            ";
            // line 110
            if (($this->env->getExtension('fishman_extension')->dateIsBeforeFunction($this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "initdate")) && $this->env->getExtension('fishman_extension')->dateIsAfterFunction($this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "enddate")))) {
                // line 111
                echo "                            <ul>
                                <li>
                                    <a href=\"";
                // line 113
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fishman_front_end_poll", array("pollid" => $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "id"))), "html", null, true);
                echo "\" class=\"tablectrl_small bDefault\" title=\"Ver\"><span class=\"icos-preview\"></span></a>
                                </li>
                            </ul>
                            ";
            }
            // line 117
            echo "                        </td>
                    </tr>
                    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['poll'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 120
        echo "                </tbody>
            </table>
            
            <div class=\"fg-toolbar tableFooter\">
                <div class=\"dataTables_info\">";
        // line 124
        echo twig_escape_filter($this->env, (isset($context["info_paginator"]) ? $context["info_paginator"] : null), "html", null, true);
        echo "</div>
                ";
        // line 125
        $this->env->loadTemplate("FishmanFrontEndBundle:Dashboard:paginator.html.twig")->display(array_merge($context, array("route" => "fishman_front_end_polls", "rparams" => array("form" => (isset($context["form_data"]) ? $context["form_data"] : null)), "id" => "polls")));
        // line 126
        echo "            </div>
            
        </div>
        <!-- /.dataListTable -->
        
    </div>
    <!-- /.tableDefault -->
    
</div>
<!-- /.dataList -->

";
    }

    // line 34
    public function block___internal_075d5f3f3968b0a3c68de2d88d8629e32402651c($context, array $blocks = array())
    {
        echo "Listado de Encuestas";
    }

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

    public function getTemplateName()
    {
        return "FishmanFrontEndBundle:Dashboard/Poll:index.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  330 => 141,  326 => 140,  323 => 139,  317 => 34,  302 => 126,  300 => 125,  296 => 124,  290 => 120,  282 => 117,  275 => 113,  271 => 111,  269 => 110,  266 => 109,  260 => 107,  258 => 106,  254 => 105,  250 => 104,  245 => 103,  235 => 101,  232 => 100,  226 => 98,  218 => 96,  216 => 95,  212 => 94,  209 => 93,  205 => 92,  199 => 88,  195 => 86,  193 => 85,  188 => 82,  184 => 80,  182 => 79,  166 => 66,  157 => 60,  153 => 59,  147 => 56,  143 => 55,  137 => 52,  133 => 51,  130 => 50,  124 => 47,  120 => 46,  117 => 45,  115 => 44,  110 => 42,  106 => 41,  101 => 39,  93 => 34,  83 => 27,  80 => 26,  73 => 22,  69 => 21,  66 => 20,  63 => 19,  59 => 16,  56 => 15,  52 => 12,  49 => 11,  41 => 7,  37 => 5,  35 => 4,  32 => 3,);
    }
}
