{% extends '@App/partials/base.html.twig' %} {% block content %}
Retour aux demandes

{{ sollicitation.titre }}

{% set globalStatusClass = { 'draft': 'bg-light text-secondary', 'sent': 'bg-success-subtle text-success', 'in_progress': 'bg-primary-subtle text-primary', 'completed': 'bg-info-subtle text-info' }[sollicitation.statut]|default('bg-light text-secondary') %} {{ sollicitation.statut|replace({'_':' '})|title }}
{{ projet.titre }} Échéance : {{ sollicitation.deadlineAt ? sollicitation.deadlineAt|date('d/m/Y') : '-' }} Créée : {{ sollicitation.createdAt ? sollicitation.createdAt|date('d/m/Y') : '-' }}
Progression : {{ progress.submitted }}/{{ progress.total }}
{{ progress.percent }}%
Exporter ZIP {% if sollicitation.statut != 'completed' %}
{% endif %}

Instructions de la demande

{{ step3Values.instructions ?: (sollicitation.instructions ?: 'Aucune instruction') }}

{% if step3Values.requirements %}
Exigences
    {% for requirement in step3Values.requirements|split('|') %} {% if requirement|trim != '' %}
  • {{ requirement|trim }}
  • {% endif %} {% endfor %}
{% endif %}
Documents modèles
{% set hasTemplate = false %} {% for piece in sollicitation.piecesJointes %} {% if not piece.deleted %} {% set hasTemplate = true %} {% endif %} {% endfor %} {% if not hasTemplate %}
Aucun document modèle
{% endif %}

Suivi des réponses partenaires

{% for cible in cibles %} {% set reponse = reponses[cible.idtoken]|default(null) %} {% set status = workflowService.getCibleDisplayStatus(sollicitation, cible) %} {% set statusClass = { 'non_ouvert': 'bg-light text-secondary', 'ouvert': 'bg-warning-subtle text-warning', 'en_cours': 'bg-primary-subtle text-primary', 'soumis': 'bg-success-subtle text-success', 'valide': 'bg-info-subtle text-info', 'refuse': 'bg-danger-subtle text-danger', 'relance': 'bg-warning-subtle text-warning', 'overdue': 'bg-danger-subtle text-danger' }[status]|default('bg-light text-secondary') %} {% set lastActivity = workflowService.getCibleLastActivityAt(cible) %} {% else %} {% endfor %}
Partenaire Statut Date de soumission Dernière activité Actions
{{ cible.mecene.nom }}
{{ cible.mecene.email ?: '-' }}
{{ status|replace({'_':' '})|title }} {{ reponse and reponse.submittedAt ? reponse.submittedAt|date('d/m/Y H:i') : '-' }} {{ workflowService.getRelativeTimeLabel(lastActivity) }} Voir soumission |
Aucun partenaire ciblé.

Timeline de la demande

{% for event in events|slice(0, 8) %} {% set iconClass = event.type starts with 'SENT' ? 'ti ti-send text-primary' : (event.type starts with 'REMINDER' ? 'ti ti-bell text-warning' : (event.type starts with 'RESPONSE' ? 'ti ti-file-check text-success' : 'ti ti-circle-check text-secondary')) %}
{{ event.message }}
{{ event.createdAt|date('d/m/Y H:i') }}
{% else %}
Aucune activité.
{% endfor %}
{% endblock %}