forked from expo/troggle
Entrance locations explanations
This commit is contained in:
@@ -182,8 +182,12 @@ class EntranceForm(ModelForm):
|
||||
required=False,
|
||||
widget=forms.TextInput(attrs={"size": "50"}), label="Other station: Survex station id, e.g. 1623.2023-xx-01.33"
|
||||
)
|
||||
northing = forms.CharField(required=False)
|
||||
easting = forms.CharField(required=False)
|
||||
northing = forms.CharField(
|
||||
required=False, widget=forms.TextInput(attrs={"size": "10"}), label="Northing (UTM) - from survex data"
|
||||
)
|
||||
easting = forms.CharField(
|
||||
required=False, widget=forms.TextInput(attrs={"size": "10"}), label="Easting (UTM) - from survex data"
|
||||
)
|
||||
lat_wgs84 = forms.CharField(
|
||||
required=False, widget=forms.TextInput(attrs={"size": "10"}), label="Latitude (WSG84) - if no other location"
|
||||
)
|
||||
|
||||
@@ -477,7 +477,8 @@ def edit_entrance(request, path="", caveslug=None, entslug=None):
|
||||
cave_file = cave.file_output()
|
||||
write_and_commit([entrance_file, cave_file], f"Online edit of entrance {entrance.slug}")
|
||||
return HttpResponseRedirect("/" + cave.url)
|
||||
else:
|
||||
|
||||
else: # GET the page, not POST, or if either of the forms were invalid when POSTed
|
||||
if entrance:
|
||||
# re-read entrance data from file.
|
||||
filename = str(entrance.slug +".html")
|
||||
|
||||
Reference in New Issue
Block a user