{% extends "base.html" %}{% block content %}<div class="container py-3" style="max-width:850px"><h1 class="h3">Prévisualisation — locaux à créer</h1><p>{{ building.name }}{% if zone %} · {{ zone.name }}{% endif %} · étage {{ floor }}</p><div class="alert alert-info">{{ names|length }} ligne(s) analysée(s). Les noms déjà présents seront ignorés sans doublon.</div><ul class="list-group mb-3">{% for name in names %}<li class="list-group-item d-flex justify-content-between"><span>{{ name }}</span>{% if name in existing %}<span class="badge text-bg-secondary">déjà présent</span>{% else %}<span class="badge text-bg-success">à créer</span>{% endif %}</li>{% endfor %}</ul><form method="post" action="{{ url_for('rooms.bulk_create') }}"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><input type="hidden" name="building_id" value="{{ building.id }}"><input type="hidden" name="zone_id" value="{{ zone.id if zone else '' }}"><input type="hidden" name="room_type_id" value="{{ room_type_id or '' }}"><input type="hidden" name="room_profile_id" value="{{ room_profile_id or '' }}"><input type="hidden" name="floor" value="{{ floor }}"><textarea name="names" class="d-none">{{ names|join('\n') }}</textarea><button class="btn btn-primary">Valider la création</button><a class="btn btn-link" href="{{ url_for('rooms.bulk_create') }}">Modifier</a></form></div>{% endblock %}
