{% extends 'mobile/mobile_base.html' %} {% load static %} {% load i18n %} {% load document_viewer_tags %} {% block title %} {{ project.name }} {% endblock title %} {% block upleft %} {% endblock upleft %} {% block content %}
{{ project.name }}

{{ project.code }}

{% translate "Statut" %} : {{ project.get_status_display }}

{% translate "Type de maintenance" %} : {{ project.get_maintain_type_display }}

{% translate "Thématique" %} : {% if project.thematic %} {{ project.thematic.name }} {% endif%}

{% translate "Dates" %} : {{ project.start_date|date:"d/m/Y" }} - {% if project.end_date %} {{ project.end_date|date:"d/m/Y" }} {% else %} En cours {% endif%}

{% if project.description %}

{% translate "Description" %} : {{ project.description }}

{% endif %}
{% translate "Phases du projet" %}
{% if project.phases.all %}
{% for phase in project.phases.all %}
{{ phase.name }}

{{ phase.start_date|date:"d/m/Y" }} - {% if phase.end_date %} {{ phase.end_date|date:"d/m/Y" }} {% else %} {% translate "En cours" %} {% endif%}

{% if phase.description %}

{{ phase.description }}

{% endif %}
{% endfor %}
{% else %}

{% translate "Aucune phase définie pour ce projet." %}

{% endif %}
{% translate "Contrôles associés" %}
{% translate "Ajouter un contrôle" %} {% if project.controls.all %}
{% for control in project.controls.all %}
{{ control.control_code }}

{% translate "Type" %} : {{ control.get_control_type_display }} | {% translate "Statut" %} : {{ control.get_status_display }}

{% translate "Lieu" %} : {{ control.location }}

{% translate "Mis à jour le" %} : {{ control.updated_at|date:"d/m/Y H:i" }}

{% endfor %}
{% else %}

{% translate "Aucun contrôle associé à ce projet." %}

{% endif %}
{% translate "Documents" %}
{% if can_add_documents %} {% endif %}
{% if use_managed_documents %} {% render_document_viewer project_documents modal_id="projectDocViewerModal" show_tags=True show_versions=True location_id=project.id %} {% else %}

{% translate "Aucun document disponible." %}

{% endif %}
{% if can_add_documents %} {% endif %} {# Config JSON pour le JS du formulaire d'ajout #} {% endblock content %} {% block extra_scripts %} {% endblock extra_scripts %}