first commit
This commit is contained in:
commit
e6c52820cd
227 changed files with 16156 additions and 0 deletions
14
Templates/partials/task_quick_add_button.html
Normal file
14
Templates/partials/task_quick_add_button.html
Normal 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue