first commit

This commit is contained in:
mrtoine 2025-09-20 13:18:04 +02:00
commit e6c52820cd
227 changed files with 16156 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{# Bouton réutilisable pour créer une tâche #}
{# Il lie automatiquement si entity_type et entity_id sont disponibles dans le contexte #}
{% set et = (entity_type | default(request.args.get('entity_type'))) %}
{% set eid = (entity_id | default(request.args.get('entity_id'))) %}
{% if et and eid %}
<a class="btn btn-outline-success" href="{{ url_for('tasks.quick_add_page', entity_type=et, entity_id=eid) }}">
Ajouter une tâche
</a>
{% else %}
<a class="btn btn-outline-secondary" href="{{ url_for('tasks.tasks_index') }}">
Nouvelle tâche
</a>
{% endif %}