2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-01-19 04:03:02 +00:00

more gpx fix

This commit is contained in:
2025-08-29 19:38:23 +03:00
parent cc3203a31f
commit 19c3f02c2d
2 changed files with 40 additions and 7 deletions

View File

@@ -82,6 +82,9 @@ class GPXuploadForm(forms.Form): # not a model-form, just a form-form
class gpxfixForm(forms.Form): # not a model-form, just a form-form
prospector = forms.CharField(strip=True)
areacode = forms.CharField(strip=True)
station = forms.CharField(strip=True)
class FilesRenameForm(forms.Form): # not a model-form, just a form-form
"""Used only for renaming photos in /expofiles/photos/

View File

@@ -21,7 +21,36 @@
<br />
<label
style="padding: 0.5em 25px; margin-left: 110px"
for="renameto">You can rename it<br></label>
for="renameto">You can rename the file<br></label>
<input class="fancybutton2" style="padding: 0.5em 25px; margin-left: 125px"
label = "prospector" name = "prospector" id="prospector"
pattern="[A-Za-z]+"
placeholder="Wookey" required />
<label
style="padding: 0.5em 25px; margin-left: 110px"
for="prospector">your name<br></label>
<br>
<input class="fancybutton2" style="padding: 0.5em 25px; margin-left: 125px"
label = "areacode" name = "areacode" id="areacode"
pattern="[A-Za-z]+"
placeholder="1623" required />
<label
style="padding: 0.5em 25px; margin-left: 110px"
for="areacode" ><br>the area code for this station<br></label>
<br>
<input class="fancybutton2" style="padding: 0.5em 25px; margin-left: 125px"
label = "station" name = "station" id="station"
pattern="[A-Za-z]+"
placeholder="p2025-WW-01" required />
<label
style="padding: 0.5em 25px; margin-left: 110px"
for="station" >proposed station identifier<br></label>
<br><br><br>
<button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 155px" type = "submit" value = "Upload" >
Upload
@@ -38,7 +67,7 @@
</p>
{% endif %}
<strong style="font-size: 110%;">Files:</strong><br>
<strong style="font-size: 110%;">Files already here:</strong><br>
{% for f in files %}
<a href="{{urlfile|urlencode}}/{{f|urlencode}}">{{f}}</a><br />
{% empty %}
@@ -48,11 +77,12 @@
<p>You can upload your GPX track which will be averaged into a single *fix
<p>Note that only GPX files are accepted: all other types of files are refused.
<hr>
</button>
</form>
</div>
<p>This GPX file has x locations of which y (_%) have been averaged to produce a a location:<br>
<pre>
[1623]
*fix p2025-WW-01 13.8229370 47.6874630 1871
*entrance p2025-WW-01
</pre>
<p>
<hr />