{% extends "base.html" %} {% block title %}{{ contract.name }} - Contrat GMAO{% endblock %} {% block content %}
| Date | Statut | Compte rendu | |
|---|---|---|---|
| {{ visit.scheduled_date.strftime('%d/%m/%Y') }} | {{ visit.status }} | {{ visit.report or '—' }} | {% if visit.status != 'realisee' %}{% endif %} |
| Aucune visite générée | |||
| Signe le | {{ contract.signed_date.strftime('%d/%m/%Y') if contract.signed_date else '—' }} |
| Date de debut | {{ contract.start_date.strftime('%d/%m/%Y') if contract.start_date else '—' }} |
| Date de fin | {% if contract.end_date %} {{ contract.end_date.strftime('%d/%m/%Y') }} {% if contract.days_until_expiry is not none %} {% if contract.days_until_expiry < 0 %}Expire {% elif contract.days_until_expiry <= 90 %}{{ contract.days_until_expiry }}j restants {% else %}({{ contract.days_until_expiry }}j){% endif %} {% endif %} {% else %}Duree indeterminee{% endif %} |
| Visites extérieures | {% if contract.visit_interval_days %}Tous les {{ contract.visit_interval_days }} jours · prochaine visite {{ contract.next_visit_date.strftime('%d/%m/%Y') if contract.next_visit_date else 'à planifier' }}{% else %}—{% endif %} |
| Tacite reconduction | {% if contract.tacit_renewal %}Oui (tous les {{ contract.renewal_period_days }} jours) {% else %}Non{% endif %} |
| Delai de preavis | {{ contract.notice_period_days }} jours avant la fin{% if not contract.notice_period_days %}—{% endif %} |
| Date limite preavis | {% if contract.notice_deadline_calculated %} {{ contract.notice_deadline_calculated.strftime('%d/%m/%Y') }} {% if contract.must_send_notice_now %}URGENT{% endif %} {% else %}—{% endif %} |
{{ contract.notes }}
{% endif %}