From a938e9bcd34c537871228b7fc9fef9066db76104 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Tue, 3 Feb 2026 15:56:35 +0000 Subject: [PATCH] feat(cafes): add geolocation search UI to new cafe form - Add "Find nearby" button that requests browser geolocation - Show search input with debounced type-ahead after locating user - Render clickable results with name, location, and distance - Auto-fill form fields (name, city, country, lat, lng, website) when a result is selected - Show loading spinner in search input during API requests --- templates/cafes.html | 169 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 168 insertions(+), 1 deletion(-) diff --git a/templates/cafes.html b/templates/cafes.html index 1ddfda4..3302a1b 100644 --- a/templates/cafes.html +++ b/templates/cafes.html @@ -1,4 +1,137 @@ -{% extends "base.html" %} {% block title %}Brewlog · Cafes{% endblock %} {% block content %} +{% extends "base.html" %} {% block title %}Brewlog · Cafes{% endblock %} + +{% block head %} +{% if is_authenticated %} + +{% endif %} +{% endblock %} + +{% block content %}
@@ -38,6 +171,40 @@ data-ref="_form" data-on:datastar-fetch="evt.detail.type === 'finished' && ($_showForm = false, $_form && $_form.reset())" > +
+
+ + +
+ + +