fix batch: admin login rehash->password_hash mapping (500); geolocation timeout 20s + hide button on approval + 'location shared' notice; sms: link includes typed number (Alpine); location page = found-dog + map + finder number + tag details; nicer closed page; password visibility toggles; product photos; templates use x-text (no {{}} in Alpine)

This commit is contained in:
2026-08-10 12:27:20 +10:00
parent b5db858ef8
commit 9158681001
6 changed files with 70 additions and 26 deletions

View File

@@ -2,8 +2,8 @@
<div class="mx-auto max-w-2xl">
<div class="overflow-hidden rounded-xl border border-stone-200 bg-white shadow-sm">
<div class="bg-stone-900 px-6 py-5 text-white">
<h1 class="text-2xl font-bold">📍 Location found</h1>
<p class="mt-1 text-sm text-stone-300">Your Where Woof tag was scanned at {{.Data.ScannedAt}}. This is where it was reported:</p>
<h1 class="text-2xl font-bold">🎉 Your {{if .Data.ItemType}}{{.Data.ItemType}}{{else}}item{{end}} was found!</h1>
<p class="mt-1 text-sm text-stone-300">It was reported at {{.Data.ScannedAt}}. Here's where it was seen:</p>
</div>
<div class="p-6">
<div class="overflow-hidden rounded-lg border border-stone-200">
@@ -16,9 +16,23 @@
</div>
{{if .Data.FinderPhone}}
<div class="mt-4 flex items-center justify-between rounded bg-green-50 px-4 py-3 border border-green-200">
<dt class="font-medium text-sm">The finder left their number</dt>
<dd><a href="tel:{{.Data.FinderPhone}}" class="font-semibold text-green-700 hover:underline">{{.Data.FinderPhone}}</a></dd>
<div class="mt-4 flex items-center justify-between rounded border border-green-200 bg-green-50 px-4 py-3">
<span class="text-sm font-medium">The finder left their number</span>
<a href="tel:{{.Data.FinderPhone}}" class="font-semibold text-green-700 hover:underline">{{.Data.FinderPhone}}</a>
</div>
{{end}}
{{if or .Data.PhotoURL .Data.Name .Data.Address .Data.Phone}}
<div class="mt-4 rounded-xl border border-stone-200 p-4">
<h2 class="font-bold">About your {{if .Data.ItemType}}{{.Data.ItemType}}{{else}}item{{end}}</h2>
<div class="mt-2 flex gap-4">
{{if .Data.PhotoURL}}<img src="{{.Data.PhotoURL}}" alt="Your item" class="h-28 w-28 rounded-lg object-cover">{{end}}
<div class="text-sm">
{{if .Data.Name}}<p class="font-medium">{{.Data.Name}}</p>{{end}}
{{if .Data.Address}}<p class="text-stone-600">{{.Data.Address}}</p>{{end}}
{{if .Data.Phone}}<p class="text-stone-600">Contact: <a href="tel:{{.Data.Phone}}" class="text-amber-600 hover:underline">{{.Data.Phone}}</a></p>{{end}}
</div>
</div>
</div>
{{end}}