{% extends "base.html" %}
{% block title %}{{ round.name }}{% endblock %}
{% block content %}<div class="container py-3"><a href="{{ url_for('planning.meter_rounds') }}">← Tournées</a><h1 class="h3 mt-2">{{ round.name }}</h1>{% set done = members|selectattr('status', 'ne', 'À FAIRE')|list|length %}<p>{{ done }} / {{ members|length }} relevé(s) traité(s) — {{ target_date.strftime('%d/%m/%Y') }}</p><div class="list-group">{% for occurrence in members %}<div class="list-group-item d-flex justify-content-between align-items-center"><div><strong>{{ loop.index }}. {{ occurrence.schedule.meter.name }}</strong><div class="small text-muted">{{ occurrence.schedule.meter.current_value }} {{ occurrence.schedule.meter.unit }} · {{ occurrence.schedule.duration_minutes }} min</div></div>{% if occurrence.status == 'À FAIRE' %}<a class="btn btn-sm btn-primary" href="{{ url_for('planning.meter_occurrence_detail', occurrence_id=occurrence.id) }}">Relever</a>{% else %}<span class="badge text-bg-success">{{ occurrence.status }}</span>{% endif %}</div>{% else %}<div class="alert alert-info">Aucune occurrence pour cette date.</div>{% endfor %}</div></div>{% endblock %}
