{% extends "base.html" %}{% block content %}<div class="container-fluid" style="max-width:900px"><h1 class="h3">Créer plusieurs locaux</h1><p class="text-muted">Prévisualisez avant validation. Associer un profil ne crée aucun équipement automatiquement.</p><form method="post" class="card"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><div class="card-body row g-3"><div class="col-md-6"><label class="form-label">Bâtiment</label><select class="form-select" name="building_id" required><option value="">Choisir</option>{% for building in buildings %}<option value="{{ building.id }}">{{ building.name }}</option>{% endfor %}</select></div><div class="col-md-6"><label class="form-label">Zone</label><select class="form-select" name="zone_id"><option value="">Aucune zone</option>{% for zone in zones %}<option value="{{ zone.id }}">{{ zone.building.name }} — {{ zone.name }}</option>{% endfor %}</select></div><div class="col-md-6"><label class="form-label">Type structurel</label><select class="form-select" name="room_type_id"><option value="">À préciser plus tard</option>{% for rt in room_types %}<option value="{{ rt.id }}">{{ rt.name }}</option>{% endfor %}</select></div><div class="col-md-6"><label class="form-label">Profil de propositions</label><select class="form-select" name="room_profile_id"><option value="">Aucun</option>{% for profile in room_profiles %}<option value="{{ profile.id }}">{{ profile.name }}</option>{% endfor %}</select></div><div class="col-md-4"><label class="form-label">Étage</label><input class="form-control" type="number" name="floor" value="0"></div><div class="col-12"><label class="form-label">Noms des locaux (un par ligne)</label><textarea class="form-control" name="names" rows="8" required placeholder="B101&#10;B102&#10;B103"></textarea></div></div><div class="card-footer"><a class="btn btn-outline-secondary" href="{{ url_for('rooms.index') }}">Annuler</a> <button class="btn btn-primary" name="preview" value="1">Prévisualiser</button></div></form></div>{% endblock %}
