{% extends "@crud\\crud\\edit.html.twig" %}
{% block jquery %}
{#% include 'RegionProvinciaCantonParroquia\\jquery.html.twig' with {'prefix': 'form_'~routeClassName } %#}
{{ parent() }}
{% endblock jquery %}
{% block jquery_functions %}
{{ parent() }}
{% include 'RegionProvinciaCantonParroquia\\jquery_functions.html.twig' %}
{% endblock jquery_functions %}
{% block show_details %}
{% if routeClassName == 'basemovilizacion' or routeClassName == 'centromovilizacion' %}
{% set jefeClassName = routeClassName~'Jefes' %}
<div class="col-xs-12">
<div class="hr hr-dotted"></div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title green">
<a id="atab-1" aria-expanded="true" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseJefes">
<i class="bigger-160 ace-icon fa fa-users" data-icon-hide="ace-icon fa fa-angle-down" data-icon-show="ace-icon fa fa-angle-right"></i>
{% set title = jefeClassName~'.plural' %}
{{ title|trans({},'crud') }}
</a>
</h4>
</div>
<div style="" aria-expanded="true" class="panel-collapse collapse in " id="collapseJefes">
<div class="panel-body" style="border-width: 1px; border-color: red">
<div id="contenedor_{{jefeClassName}}">
{% if routeClassName == 'basemovilizacion' %}
{{ render(controller('App\\Crud\\Controller\\crudPlainController::indexAction', {'rol':rol, 'routeClassName':jefeClassName,'idParent':entity.id, 'filterData':{'base' : entity.id}})) }}
{% else %}
{{ render(controller('App\\Crud\\Controller\\crudPlainController::indexAction', {'rol':rol, 'routeClassName':jefeClassName,'idParent':entity.id, 'filterData':{'centro' : entity.id}})) }}
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% endblock show_details %}