From ec599ed23c963a521849ef94343c916929ba865c Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 17 Aug 2025 18:20:27 +0200 Subject: Support polyline uploads --- templates/journey.html.ep | 77 +++++++++++++++++++++++++++++------------------ 1 file changed, 48 insertions(+), 29 deletions(-) (limited to 'templates') diff --git a/templates/journey.html.ep b/templates/journey.html.ep index b7b4223..8a12ed5 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -350,40 +350,59 @@ % } -

<%= L('journey.map-data') %>

-
- - -
-
- -
- - file_upload - GPX - +

<%= L('journey.map-data') %> + % if ($journey->{edited} & 0x0040) { + ∗ + % } +

+ % if ($journey->{polyline}) { + -
+ % }
- %= L('journey.map.info') + % if ($journey->{polyline}) { + %= L('journey.map.info.download') + % } + %= L('journey.map.info.upload')
+ %= form_for '/polyline/set' => (method => 'post', enctype => 'multipart/form-data') => begin + %= csrf_field + %= hidden_field id => $journey->{id} +
+
+
+
+ file_upload GPX + +
+
+ +
+ %= file_field 'file' +
+
+
+ %= submit_button L('journey.map.upload-full'), class => 'waves-effect waves-light btn', name => 'upload-full' +
+
+ %= submit_button L('journey.map.upload-partial'), class => 'waves-effect waves-light btn', name => 'upload-partial' +
+
+ %= end

<%= L('journey.danger') %>

-- cgit v1.2.3