{% extends 'base.html.twig' %} {% block title %}Compte rendu radiologique - {{ patient.prenom }} {{ patient.nom }}{% endblock %} {% block body %}
{# En-tête #}

Compte rendu radiologique

Retour
{# Carte patient #}

Patient : {{ patient.prenom }} {{ patient.nom }} (ID: {{ patient.id }})

{# Section Radio #}
{# Colonne gauche - Image radio #}

Image radiologique

{% if radio %}
Radio {{ radio.type }}

Type: {{ radio.type }}

Date: {{ radio.createdAt|date('d/m/Y H:i') }}

{% else %}

Aucune image disponible

{% endif %}
{# Colonne droite - Formulaire compte rendu #}

Compte rendu

{{ form_start(form, {'attr': {'class': 'space-y-4'}}) }}
{{ form_label(form.compteRendu, 'Rédigez votre compte rendu', { 'label_attr': {'class': 'block text-sm font-medium text-gray-700 mb-1'} }) }} {{ form_widget(form.compteRendu, { 'attr': { 'class': 'w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500', 'rows': 12, 'placeholder': 'Décrivez vos observations radiologiques...' } }) }} {{ form_errors(form.compteRendu) }}
{{ form_end(form) }}
{% endblock %}