{% extends 'base_print.html' %} {% load static %} {% block title %}PV n°{{ pv.numero|default:"" }} - Impression{% endblock %} {% block content %}
CONTRÔLE TECHNIQUE
{% if entreprise.logo %} Logo {% endif %}

PROCÈS-VERBAL DE CONTRÔLE TECHNIQUE

N° {{ pv.numero|default:"En cours de génération" }}

{% if pv.version %}
Version {{ pv.version }}
{% endif %}

INFORMATIONS GÉNÉRALES

{{ pv.get_statut_display|upper }}
Type de PV
{{ pv.get_type_pv_display|default:"Non spécifié" }}
Date de visite
{{ pv.date_visite|date:"d/m/Y"|default:"Non spécifiée" }}
Client
{{ pv.client.nom|default:"Non spécifié" }} {% if pv.client.siret %}
SIRET: {{ pv.client.siret }}{% endif %}
Lieu d'intervention
{{ pv.lieu|default:"Non spécifié" }}
Inspecteur
{{ pv.inspecteur.get_full_name|default:pv.inspecteur.username }} {% if pv.inspecteur.fonction %}
{{ pv.inspecteur.fonction }}{% endif %}
Date d'émission
{{ pv.date_creation|date:"d/m/Y" }} à {{ pv.date_creation|time:"H:i" }}
{% if pv.date_validite %}
Date de validité
{{ pv.date_validite|date:"d/m/Y" }}
{% endif %} {% if pv.reference_dossier %}
Référence dossier
{{ pv.reference_dossier }}
{% endif %}
{% if pv.objet_controle %}

OBJET DU CONTRÔLE

{{ pv.objet_controle.nom_projet|linebreaks }}
{% endif %} {% if pv.observations_generales %}

OBSERVATIONS GÉNÉRALES

{{ pv.observations_generales|linebreaks }}
{% endif %}

POINTS DE CONTRÔLE Total: {{ elements_controle|length }}

{% if elements_controle %} {% for element in elements_controle %} {% if element.photos.all %} {% endif %} {% endfor %}
# Élément contrôlé État Commentaires / Observations Recommandations
{{ forloop.counter }} {{ element.element.nom|default:element.element }} {% if element.element.reference %}
Réf: {{ element.element.reference }} {% endif %}
{% if element.etat == 'conforme' %} ✓ CONFORME {% elif element.etat == 'non_conforme' %} ✗ NON CONFORME {% elif element.etat == 'reserve' %} ⚠ AVEC RÉSERVE {% elif element.etat == 'non_applicable' %} ○ NON APPLICABLE {% else %} {{ element.get_etat_display|upper }} {% endif %} {{ element.commentaire|default:"-"|linebreaks }} {{ element.recommandation|default:"-"|linebreaks }}
Photos jointes:
{% else %}

Aucun point de contrôle enregistré.

{% endif %} {% if recommandations %}

RECOMMANDATIONS GÉNÉRALES

{% for rec in recommandations %}
{{ rec.ordre }} {{ rec.texte|linebreaks }}
{% endfor %}
{% endif %}

PARTICIPANTS ET SIGNATURES

{% if participants %}
{% for participant in participants %}
{{ participant.participant.nom|default:participant.participant }}
{{ participant.participant.fonction|default:"Participant" }}
{% if participant.signature %}
Signature
{% else %}
Non signé
{% endif %}
Signature
{% if participant.date_signature %}
le {{ participant.date_signature|date:"d/m/Y" }}
{% endif %}
{% endfor %}

Fait à {{ pv.lieu|default:"[Lieu]" }}, le {{ pv.date_visite|date:"d/m/Y" }}

{% else %}

Aucun participant enregistré.

{% endif %}
{% endblock %}