{% extends '@App/partials/base.html.twig' %} {% block content %}
{% set sollicitation = cible.sollicitation %} {% set overdue = sollicitation.deadlineAt and sollicitation.deadlineAt < now and cible.statut not in ['soumis', 'valide'] %} {% set delayDays = overdue and sollicitation.deadlineAt ? (((now|date('U') - sollicitation.deadlineAt|date('U')) / 86400)|round(0, 'ceil')) : 0 %} Retour à mes demandes

{{ sollicitation.titre }}

{{ overdue ? 'En retard' : (cible.statut|replace({'_':' '})|title) }}
{% include '@App/partials/components/badge_user_simple.html.twig' with {user: sollicitation.createdBy, taille: 20, police: 2, bold: 'fw-normal' } %} {{ sollicitation.projet.titre }} {{ sollicitation.deadlineAt ? 'Échéance ' ~ sollicitation.deadlineAt|date('d/m/Y') : 'Sans échéance' }}{% if overdue %} ({{ delayDays }} jour(s) de retard){% endif %}
Instructions
{{ sollicitation.instructions ?: 'Aucune instruction fournie.' }}
{% if requirements is not empty %}
Points importants
    {% for req in requirements %}
  • {{ req }}
  • {% endfor %}
{% endif %}
Fichiers modèles
{% set hasTemplate = false %} {% for piece in sollicitation.piecesJointes %} {% if not piece.deleted %} {% set hasTemplate = true %}
{{ piece.nomOriginal }}
{{ piece.size ? (piece.size / 1024 / 1024)|number_format(2, ',', ' ') ~ ' MB' : '' }}
Télécharger
{% endif %} {% endfor %} {% if not hasTemplate %}
Aucun fichier modèle.
{% endif %}
Déposer vos fichiers
Glissez-déposez les fichiers ici
ou cliquez pour parcourir
Aucun fichier téléversé.
{% if draftReponse %} {% for file in draftReponse.fichiers %} {% if not file.deleted %}
{{ file.nomOriginal }}
{{ file.size ? (file.size / 1024 / 1024)|number_format(2, ',', ' ') ~ ' MB' : '' }}
Téléchargé
{% endif %} {% endfor %} {% endif %}
Statut de la demande
Statut actuel {{ overdue ? 'En retard' : (cible.statut|replace({'_':' '})|title) }}
Date limite
{{ sollicitation.deadlineAt ? sollicitation.deadlineAt|date('d/m/Y') : '-' }}
{% if overdue %}{{ delayDays }} jour(s) de retard{% endif %}
Organisateur {% include '@App/partials/components/badge_societe.html.twig' with {societe: sollicitation.projet.societe, taille: 40} %}
Projet {% include '@App/partials/components/badge_projet.html.twig' with {projet: sollicitation.projet, taille: 40} %}

Checklist
    {% for req in requirements|slice(0, 5) %}
  • {{ req|length > 35 ? req|slice(0, 35) ~ '…' : req }}
  • {% else %}
  • Aucune exigence explicite.
  • {% endfor %}
{% if reponse %}
Dernière soumission
{{ reponse.statut|replace({'_':' '})|title }}
{{ reponse.submittedAt ? reponse.submittedAt|date('d/m/Y H:i') : '-' }} {% if reponse.commentaireRevision %}
{{ reponse.commentaireRevision }}
{% endif %}
{% endif %}
{% endblock %}