aboutsummaryrefslogtreecommitdiff
path: root/web/templates.templ
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates.templ')
-rw-r--r--web/templates.templ8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/templates.templ b/web/templates.templ
index d41dd39..aceeeee 100644
--- a/web/templates.templ
+++ b/web/templates.templ
@@ -342,6 +342,14 @@ templ RideDetailContent(data RideDetailView) {
<label>Name<input type="text" name="name" required placeholder="Official climb name"/></label>
<input type="hidden" name="start_index" value={ formatRouteIndex(climb.StartIndex) } data-boundary-input="start"/>
<input type="hidden" name="end_index" value={ formatRouteIndex(climb.EndIndex) } data-boundary-input="end"/>
+ if data.Preview {
+ <input type="hidden" name="start_lat" value=""/>
+ <input type="hidden" name="start_lon" value=""/>
+ <input type="hidden" name="end_lat" value=""/>
+ <input type="hidden" name="end_lon" value=""/>
+ <input type="hidden" name="sample_distance_m" value=""/>
+ <input type="hidden" name="sample_elevation_gain_m" value=""/>
+ }
<div class="boundary-controls">
<div><strong>Start</strong><button class="button secondary" type="button" data-boundary-button="start" data-boundary-source="profile" aria-label="Select on profile for start">Profile</button><button class="button secondary" type="button" data-boundary-button="start" data-boundary-source="map" aria-label="Select on map for start">Map</button><output data-boundary-output="start">{ formatProfileDistance(climb.StartKm) }</output></div>
<div><strong>End</strong><button class="button secondary" type="button" data-boundary-button="end" data-boundary-source="profile" aria-label="Select on profile for end">Profile</button><button class="button secondary" type="button" data-boundary-button="end" data-boundary-source="map" aria-label="Select on map for end">Map</button><output data-boundary-output="end">{ formatProfileDistance(climb.EndKm) }</output></div>