{% extends "base.html" %}
{% block title %}Nouvelle tournée de relevés{% endblock %}
{% block content %}<div class="container py-3"><h1 class="h3">Nouvelle tournée de relevés</h1><form method="post"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><label class="form-label" for="name">Nom</label><input class="form-control" id="name" name="name" required><label class="form-label mt-2" for="assigned_to_id">Responsable par défaut</label><select class="form-select" id="assigned_to_id" name="assigned_to_id"><option value="">Aucun</option>{% for user in users %}<option value="{{ user.id }}">{{ user.full_name or user.username }}</option>{% endfor %}</select><h2 class="h5 mt-3">Membres dans l'ordre</h2>{% for schedule in schedules %}<div class="form-check"><input class="form-check-input" type="checkbox" name="schedule_ids" value="{{ schedule.id }}" id="schedule-{{ schedule.id }}"><label class="form-check-label" for="schedule-{{ schedule.id }}">{{ schedule.meter.name }}</label></div>{% endfor %}<button class="btn btn-primary mt-3">Créer la tournée</button></form></div>{% endblock %}
