{% extends 'base.html.twig' %} {% block breadcrumb %} {% endblock %} {% block javascripts_base %} function clickEliminarPsiquiatra(e) { $url_eliminar=e.currentTarget.dataset.url; debugger; swal({ title: "Eliminar", text: "¿Está seguro que quiere eliminar este Psiquiatra?", icon: "warning", buttons: true, }) .then((aceptar) => { if (aceptar) { window.location.href = $url_eliminar; } }); } {% endblock %} {% block titulo_body %}
edit

Editar Psiquiatra

{% endblock %} {% block body %}
{{ form_start(form) }}
Datos Personales:
{{ form_row(form.persona.nombres) }}
{{ form_row(form.persona.dni) }}
{{ form_row(form.persona.apellidos) }}
{{ form_row(form.persona.genero) }}
Direcciones: {{ include('bd_personas/direcciones/_form.html.twig', {'direcciones' : form.persona.direcciones}) }}
Teléfonos:
{{ include('bd_personas/telefonos/_form.html.twig', {'telefonos' : form.persona.telefonos}) }}
Emails:
{{ include('bd_personas/emails/_form.html.twig', {'emails' : form.persona.emails}) }}

Volver al listado undo {% if (is_granted(constant('App\\Entity\\PsiConsejoUser::ROLE_INFORMATICA')) or is_granted(constant('App\\Entity\\PsiConsejoUser::ROLE_RESPONSABLE_INFORMES'))) %} Eliminar Psiquiatradelete {% endif %}
{{ form_end(form) }} {% endblock %}