centralisation des tags de complétion par thème

This commit is contained in:
Tykayn 2025-07-05 17:21:18 +02:00 committed by tykayn
parent 6cfb2f0958
commit c7e4f4e6a2
7 changed files with 433 additions and 184 deletions

View file

@ -339,6 +339,28 @@
</div>
{% endfor %}
</div>
<div class="row mb-4">
{% for type in all_types %}
<div class="col-md-4 col-12 mb-2">
<span class="fw-bold">{{ followup_labels[type]|default(type|capitalize) }}</span>
<button class="btn btn-link p-0 ms-1" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-tags-{{ type }}" aria-expanded="false" aria-controls="collapse-tags-{{ type }}" title="Voir les critères de complétion">
<i class="bi bi-question-circle"></i>
</button>
<div class="collapse mt-2" id="collapse-tags-{{ type }}">
<div class="card card-body p-2 small">
<span class="fw-bold">Critères de complétion attendus :</span>
<ul class="mb-0">
{% for tag in completion_tags[type] ?? [] %}
<li><code>{{ tag }}</code></li>
{% else %}
<li><span class="text-muted">Aucun critère défini</span></li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>