{% extends "@crud\\crud\\index_inner_modal.html.twig" %}
{#% block button_new_no_elements_href %}
href="{{ path('crud_plain_new', {'routeClassName': routeClassName } ) }}"
{% endblock button_new_no_elements_href %#}
{#% block button_new_elements %}
{% set texto = routeClassName~'.singular' %}
{% set onClick = "javascript:creaNuevo('"~routeClassName~"', '"~ texto | trans({}, 'crud') ~"',"~ widthModalForm ~","~ heightModalForm ~"); return false;" %}
.append("<div id='{{routeClassName}}_botonNuevoDiv' class='forChanges'><a id='{{routeClassName}}_botonNuevoBoton' onclick='{{ onClick }}' href='{{ path('especialista_new', {'routeClassName': routeClassName } ) }}'><button class='btn btn-white btn-inverse btn-bold btn-round' title='{% trans from 'crud' %}botones.nuevo{% endtrans %}'><i class='fas fa-plus green'></i><span class='hidden-xs'>{% trans from 'crud' %}botones.nuevo{% endtrans %}</span></button></a></div>")
{% endblock button_new_elements %#}
{#% block edit_action %}
{% set href=path('crud_plain_edit', { 'routeClassName': routeClassName, 'id': entity.id }) %}
{% set texto=routeClassName~'.singular' %}
<a href="" itemid="{{ entity.id }}" onclick="javascript:editModal('{{ routeClassName }}','{{ href }}', '{{ texto | trans({}, 'crud') }}',{{ widthModalForm }}, {{ heightModalForm }}); return false;">
<i class="{{ buttons['edit'] }}" title="{% trans from 'crud' %}index.acciones.edit_alt{% endtrans %}"></i>
</a>
{% endblock edit_action %#}
{#% block delete_action %}
{% set href=path('crud_plain_delete', { 'id': entity.id, 'routeClassName': routeClassName }) %}
<a class="del_modal_{{ routeClassName }}" href="{{ href }}" itemid="{{ entity.id }}">
<i class="{{ buttons['delete'] }}" title="{% trans from 'crud' %}index.acciones.delete_alt{% endtrans %}"></i>
</a>
{% endblock delete_action %#}
{% block secondary_heading %}
{% endblock %}
{% block filter %}
{% endblock filter %}
{% block on_modal_success %}
if (data.reload) {
document.location.href="";
} else {
var url="{% autoescape %}{{ path('crud_index', {'routeClassName': routeClassName, 'filterData': filter, 'idParent' : parent, 'view': index_view} ) }}{% endautoescape %}";
reloadContenedor('{{ routeClassName }}',url);
}
{% endblock on_modal_success %}