From 751af663f38e174203c10438e5ef36277e93cd68 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Thu, 27 Aug 2026 16:41:28 +0200 Subject: Use radio inputs and collapsible curation on ride detail Replace dropdowns with vertical radio groups for bike and ride type. Make curation block collapsible (details/summary) collapsed by default and expanded when both categories are empty. --- web/templates.templ | 55 ++++++++++++++++++++--------------------------------- 1 file changed, 21 insertions(+), 34 deletions(-) (limited to 'web/templates.templ') diff --git a/web/templates.templ b/web/templates.templ index 8fbed0c..10008d2 100644 --- a/web/templates.templ +++ b/web/templates.templ @@ -228,47 +228,34 @@ templ RideDetailContent(data RideDetailView) {
-
-
-

Curation

-

Categories

-
+
+ +
+

Curation

+

Categories

+
+ +
- - } +
+ +
+ Ride type +
for _, opt := range rideTypeOptions { - if data.Ride.RideType == opt { - - } else { - - } + } - - +
+
- +
if data.HasRoute { if len(data.Profile.OfficialClimbs()) > 0 { -- cgit v1.3