{% extends 'layout/app.html.twig' %} {% block title %}Paramètres PÉPITE - Portail{% endblock %} {% block breadcrumb %}Paramètres PÉPITE{% endblock %} {% block app_content %}

Paramètres PÉPITE

{% for status in statuses %} {% if statusCounts[status.value] > 0 %} {{ statusCounts[status.value] }} {{ status.label|lower }}{{ statusCounts[status.value] > 1 and status.value != 'open' ? 's' : '' }} {% endif %} {% endfor %}

Les limites et valeurs par défaut du Portail. Un changement s'applique tout de suite et reste dans l'historique (ancienne valeur, nouvelle valeur, qui, quand). Acté = décision prise · Hypothèse = valeur de travail à confirmer · Ouvert = pas encore tranché.

{% for group, items in groups %}

{{ group }}

{% for item in items %} {% set def = item.definition %} {% set rule = item.rule %}

{{ def.label }}

{{ def.description }}

{{ rule.key }} · modifiée le {{ rule.updatedAt|date('d/m/Y H:i') }}

Historique {% if item.history %}({{ item.history|length }}{{ item.history|length >= 10 ? '+' : '' }}){% else %}— aucun changement depuis la création{% endif %} {% if item.history %}
    {% for h in item.history %}
  • {{ h.changedAt|date('d/m/Y H:i') }} — {% if h.oldValue != h.newValue and def.type.value == 'text' %} texte modifié ({{ h.oldValue|length }} → {{ h.newValue|length }} caractères)
    voir l'ancienne version
    {{ h.oldValue }}
    {% elseif h.oldValue != h.newValue %} {{ def.type.value == 'bool' ? (h.oldValue == '1' ? 'Oui' : 'Non') : h.oldValue }} → {{ def.type.value == 'bool' ? (h.newValue == '1' ? 'Oui' : 'Non') : h.newValue }} {% endif %} {% if h.oldStatus != h.newStatus %} statut {{ h.oldStatus.label }} → {{ h.newStatus.label }} {% endif %} {% if h.changedBy %}· par {{ h.changedBy.firstName }} {{ h.changedBy.lastName }}{% endif %} {% if h.comment %}· « {{ h.comment }} »{% endif %}
  • {% endfor %}
{% endif %}
{% endfor %}
{% endfor %} {% endblock %}