Skip to content
Snippets Groups Projects
Verified Commit f9ff735f authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add lat/lon to checkpoint form

parent 47407f86
No related branches found
No related tags found
1 merge request!30Resolve "Checkpoint system"
......@@ -504,7 +504,6 @@ class PersonGroupFormPerson(forms.Form):
class EventCheckpointForm(forms.Form):
layout = Layout("username")
comment = forms.CharField(
......@@ -519,3 +518,20 @@ class EventCheckpointForm(forms.Form):
widget=forms.TextInput(attrs={"autofocus": "", "autocomplete": "off"}),
help_text=_("Please enter a username."),
)
lat = forms.DecimalField(
required=False,
min_value=-90.0,
max_value=90.0,
max_digits=8,
decimal_palces=6,
widget=forms.HiddenInput()
)
lon = forms.DecimalField(
required=False,
min_value=-180.0,
max_value=180.0,
max_digits=9,
decimal_palces=6,
widget=forms.HiddenInput()
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment