{% extends "base.html" %} {% block title %}Ma journée{% endblock %} {% block content %}

Ma journée

Une proposition de tâches pour le {{ target_date.strftime('%d/%m/%Y') }}. Vous gardez la main sur les changements.

{% if not hours_configured %} {% endif %} {% if candidates %}
{{ candidates|length }} tâche(s) {{ candidates|selectattr('status', 'equalto', 'à replanifier')|list|length }} à replanifier {{ candidates|selectattr('task_type', 'equalto', 'emergency')|list|length }} urgence(s) {{ candidates|selectattr('status', 'equalto', 'conflit')|list|length }} conflit(s)
{% for item in candidates %}
{% if item.proposed_start and item.proposed_end %} {{ item.proposed_start.strftime('%H:%M') }} – {{ item.proposed_end.strftime('%H:%M') }} {% else %}Horaire à définir{% endif %} · {{ item.duration_minutes }} min

{{ item.title }}

{{ item.location_label }}
{{ item.type_label }} {{ item.constraint_label }}
{{ item.status|capitalize }}
{% if item.explanation %}

{{ item.explanation }}

{% endif %} {% set item_alternatives = alternatives.get((item.source_type, item.source_id), []) %} {% if item_alternatives and item.status != 'conflit' %}
Replanifier cette tâche
{% endif %}
{% endfor %}
{% else %}

Aucune tâche à afficher

Les interventions, maintenances préventives et tâches administratives du jour apparaîtront ici.

{% endif %}
{% endblock %}