<?php

/* FishmanEntityBundle:Headquarter:index.html.twig */
class __TwigTemplate_14f664ec72bcfff2053f32510cf5b006 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_837d2326ff6e9049aa40c34038b6a2eaad88953b' => array($this, 'block___internal_837d2326ff6e9049aa40c34038b6a2eaad88953b'),
            '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" => "admin")));
    }

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

    // 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("company"), "html", null, true);
        echo "\">Empresas</a></li>
    <li><a href=\"";
        // line 17
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("company_show", array("id" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "name"), "html", null, true);
        echo "</a></li>
    <li class=\"current\"><a href=\"";
        // line 18
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("headquarter", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">Sedes</a></li>
</ul>
";
    }

    // line 22
    public function block_subtitle2($context, array $blocks = array())
    {
        // line 23
        echo "<span class=\"icos-users2\"></span><h5>Mantenimiento de Empresas: ";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "name"), "html", null, true);
        echo "</h5>
";
    }

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

<div class=\"dataList\">

    <div class=\"menuCrud clearfix\">
        <ul>
            <li>
                <a href=\"";
        // line 34
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("headquarter_new", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\" class=\"sideB bGreyish mt10\">
                    Crear Sede
                </a>
            </li>
        </ul>
    </div>
    <!-- /.menuCrud -->

    <div class=\"widget tableDefault clearfix\">
    
        <div class=\"whead clearfix\">
            <h6>";
        // line 45
        echo twig_escape_filter($this->env, twig_upper_filter($this->env, (string) $this->renderBlock("__internal_837d2326ff6e9049aa40c34038b6a2eaad88953b", $context, $blocks)), "html", null, true);
        echo "</h6>
            <div class=\"navTabs\">
                <ul>
                    <li><a href=\"";
        // line 48
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("company_show", array("id" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">General</a></li>
                    <li class=\"activeTab\"><a href=\"";
        // line 49
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("headquarter", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">Sedes</a></li>
                    <li><a href=\"";
        // line 50
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">Unidades Organizativas</a></li>
                    <li><a href=\"";
        // line 51
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companycharge", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
        echo "\">Cargos</a></li>
                    ";
        // line 52
        if (($this->getAttribute((isset($context["company"]) ? $context["company"] : null), "companytype") == "university")) {
            // line 53
            echo "                        <li><a href=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyfaculty", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
            echo "\">Facultades</a></li>
                        <li><a href=\"";
            // line 54
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companycareer", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
            echo "\">Carreras</a></li>
                    ";
        }
        // line 56
        echo "                    ";
        if (($this->getAttribute((isset($context["company"]) ? $context["company"] : null), "companytype") != "working")) {
            // line 57
            echo "                        <li><a href=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companycourse", array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"))), "html", null, true);
            echo "\">Cursos</a></li>
                    ";
        }
        // line 59
        echo "                </ul>
            </div>
        </div>
        
        <div class=\"tablePars clearfix\">
            <div class=\"dataTables_filter clearfix\">
                <form action=\"\" method=\"get\" ";
        // line 65
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'enctype');
        echo " class=\"clearfix\">
                    <div class=\"formRow formRowWord formRowWordOnly clearfix\">
                        ";
        // line 67
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "word"), 'label', array("label" => "Id / Código / Nombre"));
        echo "
                        <div>";
        // line 68
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "word"), 'widget');
        echo "</div>
                    </div>
                    <div class=\"formRow formSequence clearfix\">
                        ";
        // line 71
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "via"), 'label', array("label" => "Vía"));
        echo "
                        <div>";
        // line 72
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "via"), 'widget', array("empty_value" => "Todas"));
        echo "</div>
                    </div>
                    <div class=\"formRow formRowWord clearfix\">
                        ";
        // line 75
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "address"), 'label', array("label" => "Dirección"));
        echo "
                        <div>";
        // line 76
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "address"), 'widget');
        echo "</div>
                    </div>
                    <div class=\"formRow clearfix\">
                        ";
        // line 79
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "country"), 'label', array("label" => "País"));
        echo "
                        <div>";
        // line 80
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "country"), 'widget', array("empty_value" => "Todos"));
        echo "</div>
                    </div>
                    <div class=\"formRow formDepartment formActiveOff clearfix\">
                        <label for=\"ubigeo_department\">Departamento</label>
                        <div class=\"select_department\">";
        // line 84
        echo (isset($context["selectDepartment"]) ? $context["selectDepartment"] : null);
        echo "</div>
                    </div>
                    <div class=\"formRow formProvince formActiveOff clearfix\">
                        <label for=\"ubigeo_province\">Provincia</label>
                        <div class=\"select_province\">";
        // line 88
        echo (isset($context["selectProvince"]) ? $context["selectProvince"] : null);
        echo "</div>
                    </div>
                    <div class=\"formRow formDistrict formActiveOff clearfix\">
                        <label for=\"ubigeo_district\">Distrito</label>
                        <div class=\"select_district\">";
        // line 92
        echo (isset($context["selectDistrict"]) ? $context["selectDistrict"] : null);
        echo "</div>
                    </div>
                    <div class=\"formRow formCity formActiveOff clearfix\">
                        ";
        // line 95
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "city"), 'label', array("label" => "Ciudad"));
        echo "
                        <div>";
        // line 96
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "city"), 'widget');
        echo "</div>
                    </div>
                    <div class=\"formRow clearfix\">
                        ";
        // line 99
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "status"), 'label', array("label" => "Estado"));
        echo "
                        <div>";
        // line 100
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : null), "status"), 'widget', array("empty_value" => "Todos"));
        echo "</div>
                    </div>
                    <div class=\"formRow clearfix\">
                        <button type=\"submit\" class=\"buttonSearch sideB\"></button>
                    </div>
                    <div class=\"hide\">
                        ";
        // line 106
        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>Código</th>
                        <th>Nombre</th>
                        <th>Dirección</th>
                        <th>País</th>
                        <th>Departamento</th>
                        <th>Provincia</th>
                        <th>Distrito</th>
                        <th>Ciudad</th>
                        <th>Modificado por</th>
                        <th>Última modificación</th>
                        <th>Estado</th>
                        <th>Acciones</th>
                    </tr>
                </thead>
                <tbody>
                ";
        // line 133
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["entities"]) ? $context["entities"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["entity"]) {
            // line 134
            echo "                    <tr>
                        <td><a href=\"";
            // line 135
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("headquarter_show", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
            echo "\">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"), "html", null, true);
            echo "</a></td>
                        <td><a href=\"";
            // line 136
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("headquarter_show", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
            echo "\">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "code"), "html", null, true);
            echo "</a></td>
                        <td><a href=\"";
            // line 137
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("headquarter_show", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
            echo "\">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "name"), "html", null, true);
            echo "</a></td>
                        <td>";
            // line 138
            echo twig_escape_filter($this->env, (($this->env->getExtension('fishman_extension')->viaNameFilter($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "via")) . " ") . $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "address")), "html", null, true);
            echo "</td>
                        <td>";
            // line 139
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "country"), "html", null, true);
            echo "</td>
                        <td>";
            // line 140
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "department"), "html", null, true);
            echo "</td>
                        <td>";
            // line 141
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "province"), "html", null, true);
            echo "</td>
                        <td>";
            // line 142
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "district"), "html", null, true);
            echo "</td>
                        <td>";
            // line 143
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "city"), "html", null, true);
            echo "</td>
                        <td>";
            // line 144
            echo twig_escape_filter($this->env, (((($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "names") . " ") . $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "surname")) . " ") . $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "lastname")), "html", null, true);
            echo "</td>
                        <td>";
            // line 145
            if ($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "changed")) {
                echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "changed"), "d/m/Y - H:i"), "html", null, true);
            }
            echo "</td>
                        <td>";
            // line 146
            echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->statusNameFilter($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "status")), "html", null, true);
            echo "</td>
                        <td class=\"actionsButtons\">
                            <ul>
                                <li>
                                    <a href=\"";
            // line 150
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("headquarter_show", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
            echo "\" class=\"tablectrl_small bDefault\" title=\"Ver\"><span class=\"icos-preview\"></span></a>
                                </li>
                                <li>
                                    <a href=\"";
            // line 153
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("headquarter_edit", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
            echo "\" class=\"tablectrl_small bDefault\" title=\"Editar\"><span class=\"icos-pencil\"></span></a>
                                </li>
                                <li>
                                    <a href=\"";
            // line 156
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("headquarter_drop", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
            echo "\" class=\"tablectrl_small bDefault\" title=\"Eliminar\"><span class=\"icos-cross\"></span></a>
                                </li>
                            </ul>
                        </td>
                    </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 162
        echo "                </tbody>
            </table>
            
            <div class=\"fg-toolbar tableFooter\">
                <div class=\"dataTables_info\">";
        // line 166
        echo twig_escape_filter($this->env, (isset($context["info_paginator"]) ? $context["info_paginator"] : null), "html", null, true);
        echo "</div>
                ";
        // line 167
        $this->env->loadTemplate("FishmanFrontEndBundle:Dashboard:paginator.html.twig")->display(array_merge($context, array("route" => "headquarter", "rparams" => array("companyid" => $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"), "form" => (isset($context["form_data"]) ? $context["form_data"] : null)), "id" => "headquarter")));
        // line 168
        echo "            </div>
            
        </div>
        <!-- /.dataListTable -->
        
    </div>
    <!-- /.tableDefault -->
    
</div>
<!-- /.dataList -->

";
    }

    // line 45
    public function block___internal_837d2326ff6e9049aa40c34038b6a2eaad88953b($context, array $blocks = array())
    {
        echo "Detalle de Sede";
    }

    // line 181
    public function block_javascripts($context, array $blocks = array())
    {
        // line 182
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
<script type=\"text/javascript\" src=\"";
        // line 183
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/custom_fischman.js"), "html", null, true);
        echo "\"></script>
";
        // line 184
        echo (isset($context["globaljavascript"]) ? $context["globaljavascript"] : null);
        echo "
<script type=\"text/javascript\" src=\"";
        // line 185
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/ubigeo_ajax.js"), "html", null, true);
        echo "\"></script>
";
    }

    public function getTemplateName()
    {
        return "FishmanEntityBundle:Headquarter:index.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  425 => 185,  421 => 184,  417 => 183,  413 => 182,  410 => 181,  404 => 45,  389 => 168,  387 => 167,  383 => 166,  377 => 162,  365 => 156,  359 => 153,  353 => 150,  346 => 146,  340 => 145,  336 => 144,  332 => 143,  328 => 142,  324 => 141,  320 => 140,  316 => 139,  312 => 138,  306 => 137,  300 => 136,  294 => 135,  291 => 134,  287 => 133,  257 => 106,  248 => 100,  244 => 99,  238 => 96,  234 => 95,  228 => 92,  221 => 88,  214 => 84,  207 => 80,  203 => 79,  197 => 76,  193 => 75,  187 => 72,  183 => 71,  177 => 68,  173 => 67,  168 => 65,  160 => 59,  154 => 57,  151 => 56,  146 => 54,  141 => 53,  139 => 52,  135 => 51,  131 => 50,  127 => 49,  123 => 48,  117 => 45,  103 => 34,  93 => 27,  90 => 26,  83 => 23,  80 => 22,  73 => 18,  67 => 17,  63 => 16,  59 => 15,  56 => 14,  53 => 13,  49 => 10,  46 => 9,  42 => 6,  39 => 5,  33 => 3,);
    }
}
