Add physical escape room map, reviews, and website admin

Public:
- /escape-rooms: Leaflet + OpenStreetMap map with marker clustering and a
  searchable list, both built from a cached slim JSON feed
- /escape-rooms/{id}-{slug}: room detail with a mini-map and user reviews
  (rating + title + body, login required)
- /escape-rooms/suggest: visitor submission form with click-to-drop-pin map
  and reCAPTCHA v3; new rooms land as pending

Data:
- EscapeRoom / EscapeRoomReview entities (soft-delete), migration
- app:escaperooms:import-osm console command pulls leisure=escape_game from
  the Overpass API, upserts by (osmType, osmId), skips locked rows;
  --tiled / --area / --bbox options

Admin (new "Website Admin" area, separate from Game Admin):
- src/Website/Controller/AdminEscapeRoomController.php at /admin/escape-rooms:
  status-filtered list, new/edit, publish/hide/reject, delete, review removal
- game admin sidebar extracted into a block and cross-linked

Assets: leaflet + leaflet.markercluster; escaperoom-map and escaperoom-detail
Encore entries.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Frank
2026-08-31 00:24:03 +02:00
co-authored by Claude Sonnet 5
parent 0edaa9d8cc
commit 008887ab60
29 changed files with 2532 additions and 0 deletions
+5
View File
@@ -124,6 +124,7 @@
<div class="admin-shell">
{# ── Sidebar ──────────────────────────────────────────────────────── #}
{% block admin_sidebar %}
<nav class="admin-sidebar">
<div class="admin-sidebar-title">Game Admin</div>
@@ -156,11 +157,15 @@
</ul>
<div class="admin-sidebar-footer">
<a href="{{ path('website_admin_escaperooms') }}" style="color: #64748b; font-size: 0.8rem; text-decoration: none; display: block; margin-bottom: 0.4rem;">
Website admin →
</a>
<a href="{{ path('game_dashboard') }}" style="color: #64748b; font-size: 0.8rem; text-decoration: none;">
← Back to game
</a>
</div>
</nav>
{% endblock %}
{# ── Content ──────────────────────────────────────────────────────── #}
<main class="admin-main">
+3
View File
@@ -20,6 +20,9 @@
<li class="nav-item">
<a class="nav-link" href="{{ path('game_dashboard') }}">{{ 'nav.game'|trans }}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('website_escaperooms') }}">{{ 'nav.escaperooms'|trans }}</a>
</li>
{% if app.user %}
{% if is_granted('ROLE_ADMIN') %}
<li class="nav-item">
+110
View File
@@ -0,0 +1,110 @@
{% extends 'game/admin/base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
<style>
.er-form {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem 1.25rem;
max-width: 720px;
}
.er-form .er-field-wide { grid-column: 1 / -1; }
.er-form label {
display: block;
font-weight: 600;
margin-bottom: 0.3rem;
color: #374151;
font-size: 0.8rem;
}
.er-form input[type=text],
.er-form input[type=number],
.er-form input[type=url],
.er-form input[type=tel],
.er-form select,
.er-form textarea {
width: 100%;
padding: 0.5rem 0.7rem;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 0.9rem;
box-sizing: border-box;
}
.er-form .form-error,
.er-form ul { color: #b91c1c; font-size: 0.8rem; margin: 0.25rem 0 0; padding-left: 1rem; }
.er-btn {
padding: 0.55rem 1.2rem;
background: #3b82f6;
color: #fff;
border: none;
border-radius: 6px;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
text-decoration: none;
display: inline-block;
}
.er-btn--ghost { background: #f1f5f9; color: #475569; }
.er-badge {
display: inline-block;
padding: 0.1rem 0.5rem;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 600;
}
.er-badge--published { background: #dcfce7; color: #166534; }
.er-badge--pending { background: #fef9c3; color: #854d0e; }
.er-badge--rejected { background: #fee2e2; color: #991b1b; }
.er-badge--hidden { background: #e2e8f0; color: #475569; }
.er-actions form { display: inline; }
.er-actions button,
.er-actions a {
background: none;
border: none;
padding: 0;
margin-right: 0.6rem;
font-size: 0.82rem;
color: #3b82f6;
cursor: pointer;
text-decoration: none;
}
.er-actions button.er-danger { color: #ef4444; }
</style>
{% endblock %}
{% block admin_sidebar %}
<nav class="admin-sidebar">
<div class="admin-sidebar-title">Website Admin</div>
<ul class="admin-nav-list">
{% set current = app.request.attributes.get('_route') %}
{% set navItems = [
{ route: 'website_admin_escaperooms', label: 'Escape Rooms', icon: '📍' },
{ route: 'website_admin_escaperoom_reviews', label: 'Reviews', icon: '⭐' },
] %}
{% for item in navItems %}
{% set isActive = current starts with item.route %}
<li>
<a href="{{ path(item.route) }}" class="admin-nav-link" style="
color: {{ isActive ? '#f1f5f9' : '#94a3b8' }};
background: {{ isActive ? '#334155' : 'transparent' }};
border-left: 3px solid {{ isActive ? '#3b82f6' : 'transparent' }};
">
<span>{{ item.icon }}</span>
{{ item.label }}
</a>
</li>
{% endfor %}
</ul>
<div class="admin-sidebar-footer">
<a href="{{ path('game_admin_dashboard') }}" style="color: #64748b; font-size: 0.8rem; text-decoration: none; display: block; margin-bottom: 0.4rem;">
← Game admin
</a>
<a href="{{ path('website_home') }}" style="color: #64748b; font-size: 0.8rem; text-decoration: none;">
← Back to site
</a>
</div>
</nav>
{% endblock %}
@@ -0,0 +1,41 @@
{% extends 'website/admin/base.html.twig' %}
{% block title %}{{ heading }} — Website Admin{% endblock %}
{% block admin_body %}
<div style="margin-bottom: 1.25rem;">
<a href="{{ path('website_admin_escaperooms') }}" style="color: #64748b; text-decoration: none; font-size: 0.9rem;">← Escape Rooms</a>
</div>
<h1 style="margin: 0 0 1.5rem; font-size: 1.5rem; color: #0f172a;">{{ heading }}</h1>
<div style="background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.07); padding: 1.5rem;">
{{ form_start(form, {attr: {class: 'er-form'}}) }}
<div class="er-field-wide">{{ form_row(form.name) }}</div>
<div class="er-field-wide">{{ form_row(form.venue) }}</div>
{{ form_row(form.street) }}
{{ form_row(form.houseNumber) }}
{{ form_row(form.postcode) }}
{{ form_row(form.city) }}
{{ form_row(form.country) }}
<div></div>
{{ form_row(form.latitude) }}
{{ form_row(form.longitude) }}
{{ form_row(form.website) }}
{{ form_row(form.phone) }}
{{ form_row(form.status) }}
{{ form_row(form.source) }}
<div class="er-field-wide">{{ form_row(form.locked) }}</div>
<div class="er-field-wide" style="display: flex; gap: 0.75rem; margin-top: 0.5rem;">
<button type="submit" class="er-btn">Save</button>
<a href="{{ path('website_admin_escaperooms') }}" class="er-btn er-btn--ghost">Cancel</a>
</div>
{{ form_end(form) }}
</div>
{% endblock %}
@@ -0,0 +1,93 @@
{% extends 'website/admin/base.html.twig' %}
{% block title %}Escape Rooms — Website Admin{% endblock %}
{% block admin_body %}
<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem;">
<h1 style="margin: 0; font-size: 1.5rem; color: #0f172a;">Escape Rooms</h1>
<a href="{{ path('website_admin_escaperoom_new') }}" class="er-btn">+ New room</a>
</div>
{% set tabs = {
'': 'All (' ~ counts.all ~ ')',
'pending': 'Pending (' ~ counts.pending ~ ')',
'published': 'Published (' ~ counts.published ~ ')',
'hidden': 'Hidden (' ~ counts.hidden ~ ')',
'rejected': 'Rejected (' ~ counts.rejected ~ ')',
} %}
<div style="margin-bottom: 1rem; display: flex; gap: 0.4rem; flex-wrap: wrap;">
{% for value, label in tabs %}
{% set active = (filter is null and value == '') or (filter and filter.value == value) %}
<a href="{{ path('website_admin_escaperooms', value ? {status: value} : {}) }}"
style="padding: 0.3rem 0.7rem; border-radius: 6px; font-size: 0.82rem; text-decoration: none;
background: {{ active ? '#3b82f6' : '#e2e8f0' }}; color: {{ active ? '#fff' : '#475569' }};">
{{ label }}
</a>
{% endfor %}
</div>
<div style="background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.07); overflow: hidden;">
<table class="admin-datatable" style="width: 100%; min-width: 900px; border-collapse: collapse; font-size: 0.88rem;">
<thead>
<tr style="background: #f1f5f9; border-bottom: 1px solid #e2e8f0;">
<th style="padding: 0.7rem 0.9rem; text-align: left; color: #475569;">Name</th>
<th style="padding: 0.7rem 0.9rem; text-align: left; color: #475569;">City</th>
<th style="padding: 0.7rem 0.9rem; text-align: left; color: #475569;">Country</th>
<th style="padding: 0.7rem 0.9rem; text-align: left; color: #475569;">Source</th>
<th style="padding: 0.7rem 0.9rem; text-align: left; color: #475569;">Status</th>
<th style="padding: 0.7rem 0.9rem; text-align: left; color: #475569;">Reviews</th>
<th data-sortable="false" style="padding: 0.7rem 0.9rem; text-align: left; color: #475569;">Actions</th>
</tr>
</thead>
<tbody>
{% for room in rooms %}
<tr style="border-bottom: 1px solid #f1f5f9;">
<td style="padding: 0.7rem 0.9rem; font-weight: 500; color: #0f172a;">
{% if room.status.isPubliclyVisible %}
<a href="{{ path('website_escaperoom_show', {id: room.id, slug: room.slug}) }}" target="_blank" rel="noopener" style="color: #0f172a;">{{ room.name }}</a>
{% else %}
{{ room.name }}
{% endif %}
</td>
<td style="padding: 0.7rem 0.9rem; color: #475569;">{{ room.city }}</td>
<td style="padding: 0.7rem 0.9rem; color: #475569;">{{ room.country }}</td>
<td style="padding: 0.7rem 0.9rem; color: #475569;">{{ room.source.value }}</td>
<td style="padding: 0.7rem 0.9rem;">
<span class="er-badge er-badge--{{ room.status.value }}">{{ room.status.label }}</span>
</td>
<td style="padding: 0.7rem 0.9rem; color: #475569;">{{ reviewCounts[room.id]|default(0) }}</td>
<td style="padding: 0.7rem 0.9rem;" class="er-actions">
<a href="{{ path('website_admin_escaperoom_edit', {id: room.id}) }}">Edit</a>
{% if not room.status.isPubliclyVisible %}
<form method="post" action="{{ path('website_admin_escaperoom_moderate', {id: room.id, status: 'published'}) }}">
<input type="hidden" name="_token" value="{{ csrf_token('moderate_room_' ~ room.id) }}">
<input type="hidden" name="return_to" value="{{ filter ? filter.value : '' }}">
<button type="submit">Publish</button>
</form>
{% else %}
<form method="post" action="{{ path('website_admin_escaperoom_moderate', {id: room.id, status: 'hidden'}) }}">
<input type="hidden" name="_token" value="{{ csrf_token('moderate_room_' ~ room.id) }}">
<input type="hidden" name="return_to" value="{{ filter ? filter.value : '' }}">
<button type="submit">Hide</button>
</form>
{% endif %}
{% if room.status.value != 'rejected' %}
<form method="post" action="{{ path('website_admin_escaperoom_moderate', {id: room.id, status: 'rejected'}) }}">
<input type="hidden" name="_token" value="{{ csrf_token('moderate_room_' ~ room.id) }}">
<input type="hidden" name="return_to" value="{{ filter ? filter.value : '' }}">
<button type="submit">Reject</button>
</form>
{% endif %}
<form method="post" action="{{ path('website_admin_escaperoom_delete', {id: room.id}) }}" onsubmit="return confirm('Delete {{ room.name|e('js') }}?')">
<input type="hidden" name="_token" value="{{ csrf_token('delete_room_' ~ room.id) }}">
<button type="submit" class="er-danger">Delete</button>
</form>
</td>
</tr>
{% else %}
<tr><td colspan="7" style="padding: 2rem; text-align: center; color: #94a3b8;">No rooms.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
@@ -0,0 +1,43 @@
{% extends 'website/admin/base.html.twig' %}
{% block title %}Reviews — Website Admin{% endblock %}
{% block admin_body %}
<h1 style="margin: 0 0 1.5rem; font-size: 1.5rem; color: #0f172a;">Recent reviews</h1>
<div style="background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.07); overflow: hidden;">
<table class="admin-datatable" style="width: 100%; min-width: 820px; border-collapse: collapse; font-size: 0.88rem;">
<thead>
<tr style="background: #f1f5f9; border-bottom: 1px solid #e2e8f0;">
<th style="padding: 0.7rem 0.9rem; text-align: left; color: #475569;">Date</th>
<th style="padding: 0.7rem 0.9rem; text-align: left; color: #475569;">Room</th>
<th style="padding: 0.7rem 0.9rem; text-align: left; color: #475569;">Rating</th>
<th style="padding: 0.7rem 0.9rem; text-align: left; color: #475569;">Title</th>
<th style="padding: 0.7rem 0.9rem; text-align: left; color: #475569;">Author</th>
<th data-sortable="false" style="padding: 0.7rem 0.9rem; text-align: left; color: #475569;">Actions</th>
</tr>
</thead>
<tbody>
{% for review in reviews %}
<tr style="border-bottom: 1px solid #f1f5f9;">
<td style="padding: 0.7rem 0.9rem; color: #475569; white-space: nowrap;">{{ review.createdAt|date('Y-m-d') }}</td>
<td style="padding: 0.7rem 0.9rem; color: #0f172a;">
<a href="{{ path('website_admin_escaperoom_edit', {id: review.escapeRoom.id}) }}" style="color: #0f172a;">{{ review.escapeRoom.name }}</a>
</td>
<td style="padding: 0.7rem 0.9rem;" data-order="{{ review.rating }}">{{ review.rating }} ★</td>
<td style="padding: 0.7rem 0.9rem; color: #475569;">{{ review.title }}</td>
<td style="padding: 0.7rem 0.9rem; color: #475569;">{{ review.author ? review.author.username : '—' }}</td>
<td style="padding: 0.7rem 0.9rem;" class="er-actions">
<form method="post" action="{{ path('website_admin_escaperoom_review_delete', {id: review.id}) }}" onsubmit="return confirm('Remove this review?')">
<input type="hidden" name="_token" value="{{ csrf_token('delete_review_' ~ review.id) }}">
<button type="submit" class="er-danger">Remove</button>
</form>
</td>
</tr>
{% else %}
<tr><td colspan="6" style="padding: 2rem; text-align: center; color: #94a3b8;">No reviews yet.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
@@ -0,0 +1,74 @@
{% extends 'layout/site.html.twig' %}
{% block title %}Escape room map | {{ 'site.name'|trans }}{% endblock %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('escaperoom-map') }}
<style>
#escaperoom-map {
height: 70vh;
min-height: 420px;
width: 100%;
border-radius: 8px;
z-index: 0;
}
.escaperoom-list-wrap {
background: #fff;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
overflow: hidden;
}
.escaperoom-list-wrap table {
width: 100%;
border-collapse: collapse;
font-size: .9rem;
}
.escaperoom-list-wrap th,
.escaperoom-list-wrap td {
padding: .6rem .9rem;
text-align: left;
}
</style>
{% endblock %}
{% block body %}
{% set detailTemplate = path('website_escaperoom_show', {id: 987654321, slug: 'zzslugzz'})|replace({'987654321': '__ID__', 'zzslugzz': '__SLUG__'}) %}
<div class="d-flex flex-wrap align-items-baseline justify-content-between mb-3">
<div>
<h1 class="display-6 fw-bold mb-1">Physical escape rooms</h1>
<p class="text-secondary mb-0">Zoom in to find rooms near you, then open one to read and leave reviews.</p>
</div>
<div class="text-end">
<div id="escaperoom-status" class="small text-secondary">{{ publishedCount }} rooms on the map</div>
<a href="{{ path('website_escaperoom_suggest') }}" class="btn btn-sm btn-outline-primary mt-1">Suggest a room</a>
</div>
</div>
<div id="escaperoom-map"
data-endpoint="{{ path('website_escaperooms_data') }}"
data-detail-template="{{ detailTemplate }}"
class="mb-4"></div>
<div class="escaperoom-list-wrap">
<table id="escaperoom-list">
<thead>
<tr>
<th>Name</th>
<th>City</th>
<th>Country</th>
<th>Rating</th>
</tr>
</thead>
<tbody>
<tr><td colspan="4" class="text-center text-secondary py-4">Loading rooms…</td></tr>
</tbody>
</table>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('escaperoom-map') }}
{% endblock %}
@@ -0,0 +1,122 @@
{% extends 'layout/site.html.twig' %}
{% block title %}{{ room.name }} | {{ 'site.name'|trans }}{% endblock %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('escaperoom-detail') }}
<style>
#escaperoom-detail-map {
height: 260px;
width: 100%;
border-radius: 8px;
z-index: 0;
}
</style>
{% endblock %}
{% block body %}
<nav aria-label="breadcrumb">
<ol class="breadcrumb small">
<li class="breadcrumb-item"><a href="{{ path('website_escaperooms') }}">Escape room map</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ room.name }}</li>
</ol>
</nav>
<div class="row g-4">
<div class="col-lg-7">
<h1 class="h3 fw-bold mb-1">{{ room.name }}</h1>
{% if room.venue %}<p class="text-secondary mb-2">{{ room.venue }}</p>{% endif %}
<p class="mb-1">
{% if rating.count > 0 %}
<span class="fw-semibold">{{ rating.avg }} ★</span>
<span class="text-secondary">· {{ rating.count }} review{{ rating.count != 1 ? 's' : '' }}</span>
{% else %}
<span class="text-secondary">No reviews yet</span>
{% endif %}
</p>
{% if room.displayAddress %}
<p class="mb-1">{{ room.displayAddress }}</p>
{% endif %}
<p class="mb-3 small">
{% if room.website %}<a href="{{ room.website }}" target="_blank" rel="noopener nofollow">Website</a> · {% endif %}
{% if room.phone %}{{ room.phone }} · {% endif %}
<a href="https://www.openstreetmap.org/?mlat={{ room.latitude }}&mlon={{ room.longitude }}#map=17/{{ room.latitude }}/{{ room.longitude }}"
target="_blank" rel="noopener">Open in OpenStreetMap</a>
</p>
<hr>
<h2 class="h5 mb-3">Reviews</h2>
{% if app.user %}
<div class="card shadow-sm mb-4">
<div class="card-body">
<h3 class="h6 mb-3">Leave a review</h3>
{{ form_start(reviewForm, {action: path('website_escaperoom_review', {id: room.id})}) }}
<div class="mb-2">
{{ form_label(reviewForm.rating) }}
{{ form_widget(reviewForm.rating, {attr: {class: 'form-select'}}) }}
{{ form_errors(reviewForm.rating) }}
</div>
<div class="mb-2">
{{ form_label(reviewForm.title) }}
{{ form_widget(reviewForm.title, {attr: {class: 'form-control'}}) }}
{{ form_errors(reviewForm.title) }}
</div>
<div class="mb-3">
{{ form_label(reviewForm.body) }}
{{ form_widget(reviewForm.body, {attr: {class: 'form-control'}}) }}
{{ form_errors(reviewForm.body) }}
</div>
<button type="submit" class="btn btn-primary btn-sm">Post review</button>
{{ form_end(reviewForm) }}
</div>
</div>
{% else %}
<p class="small"><a href="{{ path('app_login') }}">Log in</a> to leave a review.</p>
{% endif %}
{% for review in reviews %}
<article class="mb-3 pb-3 border-bottom">
<div class="d-flex justify-content-between">
<strong>{{ review.title }}</strong>
<span>
{%- for i in 1..5 -%}
<span class="{{ i <= review.rating ? 'text-warning' : 'text-secondary' }}">★</span>
{%- endfor -%}
</span>
</div>
<div class="small text-secondary mb-1">
{{ review.author ? review.author.username : 'Anonymous' }} · {{ review.createdAt|date('Y-m-d') }}
</div>
<p class="mb-0">{{ review.body|nl2br }}</p>
</article>
{% else %}
<p class="text-secondary">Be the first to review this room.</p>
{% endfor %}
</div>
<div class="col-lg-5">
<div id="escaperoom-detail-map"
data-lat="{{ room.latitude }}"
data-lng="{{ room.longitude }}"
class="mb-3"></div>
<div class="card shadow-sm">
<div class="card-body small">
<div class="text-secondary">Coordinates</div>
<div class="mb-2">{{ room.latitude }}, {{ room.longitude }}</div>
<div class="text-secondary">Listing source</div>
<div>{{ room.source.label }}</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('escaperoom-detail') }}
{% endblock %}
@@ -0,0 +1,105 @@
{% extends 'layout/site.html.twig' %}
{% block title %}Suggest an escape room | {{ 'site.name'|trans }}{% endblock %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('escaperoom-detail') }}
<style>
#escaperoom-suggest-map {
height: 340px;
width: 100%;
border-radius: 8px;
z-index: 0;
}
</style>
{% endblock %}
{% block body %}
<div class="row justify-content-center">
<div class="col-lg-8">
<nav aria-label="breadcrumb">
<ol class="breadcrumb small">
<li class="breadcrumb-item"><a href="{{ path('website_escaperooms') }}">Escape room map</a></li>
<li class="breadcrumb-item active" aria-current="page">Suggest a room</li>
</ol>
</nav>
<h1 class="h3 fw-bold mb-1">Suggest an escape room</h1>
<p class="text-secondary">Know a physical escape room that isn't on the map? Add it here — an admin will review it before it goes live.</p>
<div class="card shadow-sm">
<div class="card-body">
{{ form_errors(form) }}
{{ form_start(form) }}
<div class="mb-3">
{{ form_label(form.name) }}
{{ form_widget(form.name, {attr: {class: 'form-control'}}) }}
{{ form_errors(form.name) }}
</div>
<div class="mb-3">
{{ form_label(form.venue) }}
{{ form_widget(form.venue, {attr: {class: 'form-control'}}) }}
{{ form_errors(form.venue) }}
</div>
<div class="row g-2">
<div class="col-9 mb-3">
{{ form_label(form.street) }}
{{ form_widget(form.street, {attr: {class: 'form-control'}}) }}
</div>
<div class="col-3 mb-3">
{{ form_label(form.houseNumber) }}
{{ form_widget(form.houseNumber, {attr: {class: 'form-control'}}) }}
</div>
</div>
<div class="row g-2">
<div class="col-4 mb-3">
{{ form_label(form.postcode) }}
{{ form_widget(form.postcode, {attr: {class: 'form-control'}}) }}
</div>
<div class="col-8 mb-3">
{{ form_label(form.city) }}
{{ form_widget(form.city, {attr: {class: 'form-control'}}) }}
</div>
</div>
<div class="mb-3">
{{ form_label(form.country) }}
{{ form_widget(form.country, {attr: {class: 'form-select'}}) }}
</div>
<div class="row g-2">
<div class="col-sm-6 mb-3">
{{ form_label(form.website) }}
{{ form_widget(form.website, {attr: {class: 'form-control'}}) }}
</div>
<div class="col-sm-6 mb-3">
{{ form_label(form.phone) }}
{{ form_widget(form.phone, {attr: {class: 'form-control'}}) }}
</div>
</div>
<label class="form-label">Location <span class="text-secondary fw-normal">— click the map to drop a pin</span></label>
<div id="escaperoom-suggest-map" class="mb-2"></div>
{{ form_widget(form.latitude) }}
{{ form_widget(form.longitude) }}
{{ form_errors(form.latitude) }}
{{ form_errors(form.longitude) }}
<div class="mt-3">
{{ form_row(form.captcha) }}
</div>
<div class="d-grid mt-3">
<button type="submit" class="btn btn-primary">Submit for review</button>
</div>
{{ form_end(form) }}
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('escaperoom-detail') }}
{% endblock %}