{% extends "base.html" %} {% load static %} {% block title %}Détail du Projet #{{ order.order_number }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Projet : {{ order.project_details.project_name|default:"Projet sans nom" }}

Commande #{{ order.order_number }}

Suivi d'Avancement

Validation

{% if order.status == 'PENDING_VALIDATION' %} En cours de validation {% elif order.status == 'DRAFT' %} À valider {% else %} Projet validé {% endif %}

Développement

{% if order.status == 'IN_PROGRESS' %} Développement en cours {% elif order.status == 'PENDING_FEEDBACK' or order.status == 'COMPLETED' or order.status == 'DELIVERED' %} Développement terminé {% else %} À venir {% endif %}

Feedback

{% if order.status == 'PENDING_FEEDBACK' %} En attente de retour {% elif order.status == 'COMPLETED' or order.status == 'DELIVERED' %} Feedback intégré {% else %} À venir {% endif %}

Livraison

{% if order.status == 'DELIVERED' %} Projet livré {% elif order.status == 'COMPLETED' %} Prêt à livrer {% else %} À venir {% endif %}

Détails du Projet

Objectif Principal
{{ order.project_details.main_objective|default:"Non spécifié" }}
Type de Site
{{ order.project_details.site_type|default:"Non spécifié" }}
Nombre de Pages
{{ order.project_details.page_count|default:"Non spécifié" }} pages
Public Cible
{{ order.project_details.target_audience|default:"Non spécifié" }}
Fonctionnalités
{% if order.project_details.features %}
    {% for feature in order.project_details.features %}
  • {{ feature }}
  • {% endfor %}
{% else %} Non spécifié {% endif %}
Design Souhaité
{{ order.project_details.design_preference|default:"Non spécifié" }}
Budget
{% if order.project_details.budget %} {{ order.project_details.budget }}€ {% else %} Non spécifié {% endif %}
Délai Souhaité
{{ order.project_details.deadline|default:"Non spécifié" }}
{% if order.project_details.additional_notes %}
Notes Additionnelles
{{ order.project_details.additional_notes|linebreaks }}
{% endif %}
{% if order.status == 'QUOTE_SENT' %}
Votre Réponse au Devis
{% csrf_token %}
{% endif %}
Résumé
Statut Actuel {% if order.status == 'DRAFT' %} Brouillon {% elif order.status == 'PENDING_VALIDATION' %} En Attente de Validation {% elif order.status == 'QUOTE_SENT' %} Devis Envoyé {% elif order.status == 'IN_PROGRESS' %} En Cours {% elif order.status == 'PENDING_FEEDBACK' %} En Attente de Feedback {% elif order.status == 'COMPLETED' %} Terminée {% elif order.status == 'DELIVERED' %} Livrée {% elif order.status == 'CANCELLED' %} Annulée {% elif order.status == 'ON_HOLD' %} En Pause {% endif %}
Date de Création {{ order.created_at|date:"d F Y" }} {{ order.created_at|time:"H:i" }}
Montant Total {% if order.total_price %}{{ order.total_price|floatformat:2 }} €{% else %}À définir{% endif %}
Fichiers & Documents
Factures
{% for invoice in order.invoices.all %} Facture #{{ invoice.invoice_number }} ({{ invoice.get_invoice_type_display }}) PDF - {{ invoice.created_at|date:"d/m/Y" }} {% empty %}

Aucune facture générée pour le moment.

{% endfor %}
Partage de Fichiers
Envoyer un message
Formats acceptés: PDF, DOC, JPG, PNG (Max: 10MB)
Messages & Communications
{% if last_owner_message %}

{{ last_owner_message.body|linebreaks }}

Envoyé par {{ last_owner_message.sender.username }} le {{ last_owner_message.sent_at|date:"d/m/Y" }}
{% else %}

Aucune communication pour le moment.

Démarrer une conversation
{% endif %}
{% endblock %}