{% extends "@crud\\crud.html.twig" %}
{% block jquery %}
{{ parent() }}
<script type="text/javascript">
$(function()
{
$("#ul_breadcrumb").append('<li class="active"><a>{{ 'subtitles.show' | trans({}, 'crud') | capitalize }}</a></li>');
$(".show_del_item").click(function(e){
if (!confirm("Está seguro de querer eliminar el elemento seleccionado?"))
{
e.preventDefault();
}
});
$('.ace-switch').click(function(e){
e.preventDefault();
});
});
</script>
{% endblock %}
{% block crud %}
{% block show %}
<div class="widget-box transparent">
{#% block principal_heading %}
<div class="widget-header widget-header-flat">
<h4 class="widget-title lighter">
<i class="fas fa-search orange"></i>
{% set texto = routeClassName~'.plural' %}
{{ texto | trans({}, 'crud') }}
</h4>
<!--div class="widget-toolbar">
<a href="#" data-action="collapse">
<i class="fas fa-chevron-up"></i>
</a>
</div-->
</div>
{% endblock %#}
<div class="widget-body" style="display: block;">
<div class="widget-main no-padding">
{% block showdata %}
{% include '@crud\\crud\\show_data.html.twig' %}
{% endblock %}
<div class="row">
<div class="col-xs-12">
<div class="hr hr-8 hr-dotted"></div>
</div>
</div>
{% block actions %}
<div id="botones" class="row">
{% if editInIndex and deleteInIndex%}
{% set clase = 'col-xs-4' %}
{% else %}
{% if editInIndex or deleteInIndex %}
{% set clase = 'col-xs-6' %}
{% else %}
{% set clase = 'col-xs-12' %}
{% endif %}
{% endif %}
<div class="{{ clase }}">
<center>
{% block action_retorno %}
{#<a class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('crud_index', {'routeClassName': routeClassName}) }}">#}
<a class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('crud_plain_back_to_list', {'rol': rol, 'routeClassName': routeClassName, 'id': entity.id, 'from': 'show'}) }}">
{% trans from 'crud' %}botones.regresar{% endtrans %}
</a>
{% endblock %}
</center>
</div>
{% if editInIndex %}
<div class="{{ clase }} forChanges">
<center>
<a id="btnShowUpdate" class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('crud_plain_edit', {'rol': rol, 'id':entity.id, 'routeClassName': routeClassName}) }}">{% trans from 'crud' %}botones.modificar{% endtrans %}</a>
</center>
</div>
{% endif %}
{% if deleteInIndex %}
<div class="{{ clase }} forChanges">
<center>
{% block action_delete %}
<a id="btn_delete_{{ routeClassName }}" class="btn btn-white btn-inverse btn-bold btn-round show_del_item" href="{{ path('crud_plain_delete', { 'rol': rol, 'id' : entity.id, 'routeClassName': routeClassName }) }}">{% trans from 'crud' %}botones.eliminar{% endtrans %}</a>
{% endblock %}
</center>
</div>
{% endif %}
</div>
{% endblock %}
{% block show_details %}
<div class="row">
<div class="col-xs-12">
<div class="hr hr-8 hr-dotted"></div>
</div>
</div>
{% endblock %}
</div>
</div>
</div>
{% endblock %}
{% endblock %}