<?php

/* VGMWOBundle:SaleType:index.html.twig */
class __TwigTemplate_81b689428dd7f295452d8a93749c6fc1ab4525d2b524d322ef65b4fa581c1402 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("VGMWOBundle::layout.html.twig", "VGMWOBundle:SaleType:index.html.twig", 1);
        $this->blocks = array(
            'jumbotron_content' => array($this, 'block_jumbotron_content'),
            'content' => array($this, 'block_content'),
            'javascripts' => array($this, 'block_javascripts'),
        );
    }

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

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

    // line 2
    public function block_jumbotron_content($context, array $blocks = array())
    {
        // line 3
        echo "    <div class=\"jumbotron\" style=\"padding-top: 10px; padding-bottom: 5px;\"  id=\"jumbotron\">
        <div class=\"container-fluid\">
            <div class=\"col-md-12 text-center\" style=\"padding-left: 0px;\">
                <H3 style=\"margin: 0px;\"><strong>Sale Types</strong></H3>
            </div>
        </div>
    </div>
";
    }

    // line 11
    public function block_content($context, array $blocks = array())
    {
        // line 12
        echo "    <div class=\"container\" style=\"min-height: 500px;\">
        <div class=\"table-responsive\">
            <table class=\"table table-striped table-hover\">
                <thead>
                <tr>
                    <th class=\"col-md-2\">Sale</th>
                    <th class=\"col-md-9\">Description</th>
                    <th class=\"text-center col-md-1\">Actions</th>
                </tr>
                </thead>
                <tbody>
                ";
        // line 23
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities")));
        foreach ($context['_seq'] as $context["_key"] => $context["entity"]) {
            // line 24
            echo "                    <tr>
                        <!--/*<td><a href=\"";
            // line 25
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("saletypes_show", array("id" => $this->getAttribute($context["entity"], "id", array()))), "html", null, true);
            echo "*/\">";
            echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "id", array()), "html", null, true);
            echo "</a></td>-->
                        <td>";
            // line 26
            echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "saletype", array()), "html", null, true);
            echo "</td>
                        <td>";
            // line 27
            echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "description", array()), "html", null, true);
            echo "</td>
                        <td class=\"text-center\">
                            <a href=\"";
            // line 29
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("saletypes_show", array("id" => $this->getAttribute($context["entity"], "id", array()))), "html", null, true);
            echo "\"><span class=\"glyphicon glyphicon-eye-open\"></span></a>
                            <a href=\"";
            // line 30
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("saletypes_edit", array("id" => $this->getAttribute($context["entity"], "id", array()))), "html", null, true);
            echo "\"><span class=\"glyphicon glyphicon-pencil\"></span></a>
                        </td>
                    </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 34
        echo "                </tbody>
            </table>
            <div class=\"container-fluid\">
                <div class=\"col-md-3 text-muted text-left\">
                    <strong>";
        // line 38
        echo twig_escape_filter($this->env, (isset($context["cant_saletypes"]) ? $context["cant_saletypes"] : $this->getContext($context, "cant_saletypes")), "html", null, true);
        echo "</strong> registered sale types
                    ";
        // line 39
        if (((isset($context["last_page"]) ? $context["last_page"] : $this->getContext($context, "last_page")) > 1)) {
            // line 40
            echo "                        - page <strong>";
            echo twig_escape_filter($this->env, (isset($context["current_page"]) ? $context["current_page"] : $this->getContext($context, "current_page")), "html", null, true);
            echo "/";
            echo twig_escape_filter($this->env, (isset($context["last_page"]) ? $context["last_page"] : $this->getContext($context, "last_page")), "html", null, true);
            echo "</strong>
                    ";
        }
        // line 42
        echo "                </div>
                <div class=\"col-md-6 text-center\">
                    ";
        // line 44
        if (((isset($context["last_page"]) ? $context["last_page"] : $this->getContext($context, "last_page")) > 1)) {
            // line 45
            echo "                        ";
            if (((isset($context["current_page"]) ? $context["current_page"] : $this->getContext($context, "current_page")) > 1)) {
                // line 46
                echo "                            <a href=\"";
                echo $this->env->getExtension('routing')->getPath("saletypes", array("page" => 1));
                echo "\" >
                                <span class=\"glyphicon glyphicon-step-backward \"
                                      alt=\"First page\" title=\"First page\"/>
                            </a>

                            <a href=\"";
                // line 51
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("saletypes", array("page" => (isset($context["previous_page"]) ? $context["previous_page"] : $this->getContext($context, "previous_page")))), "html", null, true);
                echo "\">
                                <span class=\"glyphicon glyphicon-backward\" alt=\"Previous page\" title=\"Previous page\" />
                            </a>
                        ";
            }
            // line 55
            echo "
                        ";
            // line 56
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable(range(1, (isset($context["last_page"]) ? $context["last_page"] : $this->getContext($context, "last_page"))));
            foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
                // line 57
                echo "                            ";
                if (($context["page"] == (isset($context["current_page"]) ? $context["current_page"] : $this->getContext($context, "current_page")))) {
                    // line 58
                    echo "                                ";
                    echo twig_escape_filter($this->env, $context["page"], "html", null, true);
                    echo "
                            ";
                } else {
                    // line 60
                    echo "                                <a href=\"";
                    echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("saletypes", array("page" => $context["page"])), "html", null, true);
                    echo "\">";
                    echo twig_escape_filter($this->env, $context["page"], "html", null, true);
                    echo "</a>
                            ";
                }
                // line 62
                echo "                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 63
            echo "
                        ";
            // line 64
            if (((isset($context["last_page"]) ? $context["last_page"] : $this->getContext($context, "last_page")) > (isset($context["current_page"]) ? $context["current_page"] : $this->getContext($context, "current_page")))) {
                // line 65
                echo "                            <a href=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("saletypes", array("page" => (isset($context["next_page"]) ? $context["next_page"] : $this->getContext($context, "next_page")))), "html", null, true);
                echo "\">
                                <span class=\"glyphicon glyphicon-forward\" alt=\"Next page\" title=\"Next page\" />
                            </a>

                            <a href=\"";
                // line 69
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("saletypes", array("page" => (isset($context["last_page"]) ? $context["last_page"] : $this->getContext($context, "last_page")))), "html", null, true);
                echo "\">
                                <span class=\"glyphicon glyphicon-step-forward\" alt=\"Last page\" title=\"Last page\" />
                            </a>
                        ";
            }
            // line 73
            echo "                    ";
        }
        // line 74
        echo "                </div>
                <div class=\"col-md-3 text-right\">
                    <a href=\"";
        // line 76
        echo $this->env->getExtension('routing')->getPath("saletypes_new");
        echo "\">
                        <span class=\"glyphicon glyphicon-plus-sign\"></span>
                        Create
                    </a>
                </div>
            </div>
        </div>
    </div>
";
    }

    // line 85
    public function block_javascripts($context, array $blocks = array())
    {
        // line 86
        echo "    ";
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
    <script type=\"text/javascript\">
        // Activates knockout.js
        //ko.applyBindings(baseViewModel, document.getElementById(\"menu-bar\"));
    </script>
";
    }

    public function getTemplateName()
    {
        return "VGMWOBundle:SaleType:index.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  214 => 86,  211 => 85,  198 => 76,  194 => 74,  191 => 73,  184 => 69,  176 => 65,  174 => 64,  171 => 63,  165 => 62,  157 => 60,  151 => 58,  148 => 57,  144 => 56,  141 => 55,  134 => 51,  125 => 46,  122 => 45,  120 => 44,  116 => 42,  108 => 40,  106 => 39,  102 => 38,  96 => 34,  86 => 30,  82 => 29,  77 => 27,  73 => 26,  67 => 25,  64 => 24,  60 => 23,  47 => 12,  44 => 11,  33 => 3,  30 => 2,  11 => 1,);
    }
}
