<?php

/* FishmanEntityBundle:Companyorganizationalunit:edit.html.twig */
class __TwigTemplate_0157bb3d57ec29859e230e0cc1ef5056 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_f6676a59bb85336e00da0ecee47b8979d52fca6e' => array($this, 'block___internal_f6676a59bb85336e00da0ecee47b8979d52fca6e'),
            '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($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "company"), "id"))), "html", null, true);
        echo "\">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "company"), "html", null, true);
        echo "</a></li>
    <li><a href=\"";
        // line 18
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit", array("companyid" => $this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "company"), "id"))), "html", null, true);
        echo "\">Unidades Organizativas</a></li>
    <li><a href=\"";
        // line 19
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit_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></li>
    <li class=\"current\"><a href=\"";
        // line 20
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit_edit", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
        echo "\" title=\"\">Editar</a></li>
</ul>
";
    }

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

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

<div class=\"formCrudEdit\">

    <form action=\"";
        // line 33
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit_update", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
        echo "\" method=\"post\" ";
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["edit_form"]) ? $context["edit_form"] : null), 'enctype');
        echo " class=\"crud main formControl\">
    
        <div class=\"widget fluid tableDefault clearfix\">
        
            <div class=\"whead clearfix\">
                <h6>";
        // line 38
        echo twig_escape_filter($this->env, twig_upper_filter($this->env, (string) $this->renderBlock("__internal_f6676a59bb85336e00da0ecee47b8979d52fca6e", $context, $blocks)), "html", null, true);
        echo "</h6>
            </div>
                
            <fieldset class=\"step ui-formwizard-content clearfix\" id=\"w1first\" style=\"display: block;\">

                <div class=\"grid7\">
                    ";
        // line 44
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["edit_form"]) ? $context["edit_form"] : null), 'errors');
        echo "
                    <div class=\"formRow clearfix\">
                        <div class=\"grid3\">";
        // line 46
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "code"), 'label', array("label" => "Código"));
        echo "<span class=\"req\">*</span></div>
                        <div class=\"grid9\">
                            ";
        // line 48
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "code"), 'widget');
        echo "
                            ";
        // line 49
        if ($this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "code"), 'errors')) {
            // line 50
            echo "                                <div class=\"nNote nFailure nFieldFailure\">";
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "code"), 'errors');
            echo "</div>
                            ";
        }
        // line 52
        echo "                        </div>
                    </div>
                    <div class=\"formRow clearfix\">
                        <div class=\"grid3\">";
        // line 55
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "name"), 'label', array("label" => "Nombre"));
        echo "<span class=\"req\">*</span></div>
                        <div class=\"grid9\">
                            ";
        // line 57
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "name"), 'widget');
        echo "
                            ";
        // line 58
        if ($this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "name"), 'errors')) {
            // line 59
            echo "                                <div class=\"nNote nFailure nFieldFailure\">";
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "name"), 'errors');
            echo "</div>
                            ";
        }
        // line 61
        echo "                        </div>
                    </div>
                    <div class=\"formRow clearfix\">
                        <div class=\"grid3\">";
        // line 64
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "organizationalunit"), 'label', array("label" => "Nombre Global"));
        echo "</div>
                        <div class=\"grid9\">
                            ";
        // line 66
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "organizationalunit"), 'widget', array("empty_value" => "SELECCIONE UNA OPCIÓN"));
        echo "
                            ";
        // line 67
        if ($this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "organizationalunit"), 'errors')) {
            // line 68
            echo "                                <div class=\"nNote nFailure nFieldFailure\">";
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "organizationalunit"), 'errors');
            echo "</div>
                            ";
        }
        // line 70
        echo "                        </div>
                    </div>
                    <div class=\"formRow clearfix\">
                        <div class=\"grid3\">";
        // line 73
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "parentid"), 'label', array("label" => "Unidad Padre"));
        echo "</div>
                        <div class=\"grid9\">
                            ";
        // line 75
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "parentid"), 'widget', array("attr" => array("class" => "boss")));
        echo "
                            ";
        // line 76
        if ($this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "parentid"), 'errors')) {
            // line 77
            echo "                                <div class=\"nNote nFailure nFieldFailure\">";
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "parentid"), 'errors');
            echo "</div>
                            ";
        }
        // line 79
        echo "                        </div>
                    </div>
                    <div class=\"formRow clearfix\">
                        <div class=\"grid3\">";
        // line 82
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "type"), 'label', array("label" => "Tipo Nivel"));
        echo "</div>
                        <div class=\"grid9\">
                            ";
        // line 84
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "type"), 'widget', array("empty_value" => "SELECCIONE UNA OPCIÓN"));
        echo "
                            ";
        // line 85
        if ($this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "type"), 'errors')) {
            // line 86
            echo "                                <div class=\"nNote nFailure nFieldFailure\">";
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "type"), 'errors');
            echo "</div>
                            ";
        }
        // line 88
        echo "                        </div>
                    </div>
                    <div class=\"formRow clearfix\">
                        <div class=\"grid3\">";
        // line 91
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "unit_type"), 'label', array("label" => "Tipo Unidad"));
        echo "<span class=\"req\">*</span></div>
                        <div class=\"grid9 unitType\">
                            <select disabled id=\"fishman_entitybundle_companyorganizationalunittype_unit_type\" name=\"fishman_entitybundle_companyorganizationalunittype[unit_type]\" class=\"unitTypeDefault\" style=\"opacity: 0;\">
                                <option value=\"\">SELECCIONE UNA OPCIÓN</option>
                                ";
        // line 95
        if ((($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "unittype") == "") || ($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "unittype") == "administrative"))) {
            // line 96
            echo "                                    <option selected value=\"administrative\">Administrativa</option>
                                ";
        } elseif (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "unittype") == "academic")) {
            // line 98
            echo "                                    <option selected value=\"academic\">Academica</option>
                                ";
        }
        // line 100
        echo "                            </select>
                        </div>
                    </div>
                    <div class=\"formRow clearfix\">
                        <div class=\"grid3\">";
        // line 104
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "boss"), 'label', array("label" => "Responsable/Jefe"));
        echo "</div>
                        <div class=\"grid9\">
                            ";
        // line 106
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "boss"), 'widget', array("empty_value" => "NINGUNO"));
        echo "
                            ";
        // line 107
        if ($this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "boss"), 'errors')) {
            // line 108
            echo "                                <div class=\"nNote nFailure nFieldFailure\">";
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "boss"), 'errors');
            echo "</div>
                            ";
        }
        // line 110
        echo "                        </div>
                    </div>
                    <div class=\"formRow clearfix\">
                        <div class=\"grid3\">";
        // line 113
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "status"), 'label', array("label" => "Estado"));
        echo "<span class=\"req\">*</span></div>
                        <div class=\"grid9\">
                            ";
        // line 115
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "status"), 'widget', array("empty_value" => "SELECCIONE UNA OPCIÓN"));
        echo "
                            ";
        // line 116
        if ($this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "status"), 'errors')) {
            // line 117
            echo "                                <div class=\"nNote nFailure nFieldFailure\">";
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "status"), 'errors');
            echo "</div>
                            ";
        }
        // line 119
        echo "                        </div>
                    </div>
                    <div class=\"hide\">
                        ";
        // line 122
        if (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "unittype") == "")) {
            // line 123
            echo "                        ";
            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["edit_form"]) ? $context["edit_form"] : null), "unit_type"), 'widget', array("value" => "administrative"));
            echo "
                        ";
        }
        // line 125
        echo "                        ";
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["edit_form"]) ? $context["edit_form"] : null), 'rest');
        echo "
                    </div>
                </div>
                
                <div class=\"grid4 audit\">
                    <div class=\"widget\">
                        <div class=\"whead clearfix\">
                            <h6>Auditoría</h6>
                        </div>
                        <table class=\"audit_list dataTable\">
                            <tbody>
                                <tr>
                                    <th class=\"textL\">Id</th>
                                    <td>";
        // line 138
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"), "html", null, true);
        echo "</td>
                                </tr>
                                <tr>
                                    <th class=\"textL\">Creado por</th>
                                    <td>";
        // line 142
        echo twig_escape_filter($this->env, (isset($context["createdByName"]) ? $context["createdByName"] : null), "html", null, true);
        echo "</td>
                                </tr>
                                <tr>
                                    <th class=\"textL\">Creado el</th>
                                    <td>";
        // line 146
        echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "created"), "d/m/Y - H:i"), "html", null, true);
        echo "</td>
                                </tr>
                                <tr>
                                    <th class=\"textL\">Modificado por</th>
                                    <td>";
        // line 150
        echo twig_escape_filter($this->env, (isset($context["modifiedByName"]) ? $context["modifiedByName"] : null), "html", null, true);
        echo "</td>
                                </tr>
                                <tr>
                                    <th class=\"textL\">Última modificación</th>
                                    <td>";
        // line 154
        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>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                
            </fieldset>
        
            <div class=\"menuCrud clearfix\">
                <ul class=\"record_actions\">
                    <li>
                        <button type=\"submit\" class=\"sideB bRed mt10\">Guardar</button>
                    </li>
                </ul>
            </div>
            
        </div>
        <!-- /.tableDefault -->
        
    </form>
        
    <div class=\"menuCrud clearfix\">
        <ul class=\"record_actions\">
            <li>
                <a href=\"";
        // line 179
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit", array("companyid" => $this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "company"), "id"))), "html", null, true);
        echo "\" class=\"sideB bGreyish mt10\">Regresar a la lista</a>
            </li>
            <li>
                <a href=\"";
        // line 182
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit_show", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
        echo "\" class=\"sideB bRed mt10\">Ver</a>
            </li>
            <li>
                <a href=\"";
        // line 185
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("companyorganizationalunit_drop", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
        echo "\" class=\"sideB bRed mt10\">Eliminar</a>
            </li>
        </ul>
    </div>
    <!-- /.menuCrud -->

</div>
<!-- /.formCrudEdit -->

";
    }

    // line 38
    public function block___internal_f6676a59bb85336e00da0ecee47b8979d52fca6e($context, array $blocks = array())
    {
        echo "Editar Unidad Organizativa";
    }

    // line 196
    public function block_javascripts($context, array $blocks = array())
    {
        // line 197
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
";
        // line 198
        echo (isset($context["globaljavascript"]) ? $context["globaljavascript"] : null);
        echo "
<script type=\"text/javascript\" src=\"";
        // line 199
        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 200
        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 201
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/unittype_ajax.js"), "html", null, true);
        echo "\"></script>
";
    }

    public function getTemplateName()
    {
        return "FishmanEntityBundle:Companyorganizationalunit:edit.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  443 => 201,  439 => 200,  435 => 199,  431 => 198,  427 => 197,  424 => 196,  418 => 38,  404 => 185,  398 => 182,  392 => 179,  364 => 154,  357 => 150,  350 => 146,  343 => 142,  336 => 138,  319 => 125,  313 => 123,  311 => 122,  306 => 119,  300 => 117,  298 => 116,  294 => 115,  289 => 113,  284 => 110,  278 => 108,  276 => 107,  272 => 106,  267 => 104,  261 => 100,  257 => 98,  253 => 96,  251 => 95,  244 => 91,  239 => 88,  233 => 86,  231 => 85,  227 => 84,  222 => 82,  217 => 79,  211 => 77,  209 => 76,  205 => 75,  200 => 73,  195 => 70,  189 => 68,  187 => 67,  183 => 66,  178 => 64,  173 => 61,  167 => 59,  165 => 58,  161 => 57,  156 => 55,  151 => 52,  145 => 50,  143 => 49,  139 => 48,  134 => 46,  129 => 44,  120 => 38,  110 => 33,  103 => 29,  100 => 28,  93 => 25,  90 => 24,  83 => 20,  77 => 19,  73 => 18,  67 => 17,  63 => 16,  59 => 15,  56 => 14,  53 => 13,  49 => 10,  46 => 9,  42 => 6,  39 => 5,  33 => 3,);
    }
}
