{% extends "layouts/base.html" %} {% load fm_tags %} {% block title %}Validation · {{ entity_label }}{% endblock %} {% block breadcrumb %}
  • Validations
  • {{ entity_label }}
  • {% endblock %} {% block content %} {% if validation.amount_xaf %}{{ validation.amount_xaf|money }}{% endif %} {% if entity_link %}Ouvrir l'élément{% endif %}
      {% for d in decisions %}
    • {{ d.validator.get_full_name }}{% if d.decision == "APPROVE" %}Approuve{% else %}Rejette{% endif %}{{ d.decided_at|date:"d/m/Y H:i" }}

      {% if d.comment %}

      {{ d.comment }}

      {% endif %}
    • {% empty %}
    • {% endfor %}
      {% for h in history %}
    1. {{ h.from_status|default:"Création" }} → {{ h.to_status }}

      {{ h.occurred_at|date:"d/m/Y H:i" }}{% if h.actor %} · {{ h.actor.get_full_name }}{% endif %}{% if h.comment %} · {{ h.comment }}{% endif %}

    2. {% empty %}
    3. —
    4. {% endfor %}
    {% if can_decide %}

    Votre décision

    {% csrf_token %}

    Obligatoire pour un rejet (10 caractères minimum). Votre décision est définitive et tracée.

    {% elif validation.status == "PENDING" %} {{ reason|default:"Vous ne pouvez pas décider sur cette demande." }} {% endif %} {% if validation.status == "PENDING" and validation.requested_by_id == user.id or validation.status == "PENDING" and user.is_national_admin %}
    {% csrf_token %}
    {% endif %}
    Type
    {{ entity_label }}
    Agence
    {{ validation.agency.name }}
    Identifiant
    {{ validation.entity_id }}
    {% endblock %}