mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 08:38:35 +00:00
New year, new expo: bugs for auto-creating new expo
This commit is contained in:
@@ -350,8 +350,8 @@ class NewProspectForm(forms.Form):
|
||||
max_length=20,
|
||||
widget=forms.TextInput(attrs={
|
||||
"placeholder": "2025-AB-01",
|
||||
"size": 10,
|
||||
"style": "width: 10ch; min-width: 0;"
|
||||
"size": 11,
|
||||
"style": "width: 11ch; min-width: 0;"
|
||||
})
|
||||
)
|
||||
discovery_name = forms.CharField(
|
||||
@@ -394,6 +394,26 @@ class NewProspectForm(forms.Form):
|
||||
"style": "width: 20ch; min-width: 0;"
|
||||
})
|
||||
)
|
||||
entrance_description = forms.CharField(
|
||||
label="Entrance description",
|
||||
max_length=100,
|
||||
required=True,
|
||||
widget=forms.TextInput(attrs={
|
||||
"placeholder": "horizontal slot at foot level in 3m high NE-facing cliff",
|
||||
"size": 100,
|
||||
"style": "width: 100ch; min-width: 0;"
|
||||
})
|
||||
)
|
||||
approach = forms.CharField(
|
||||
label="Approach",
|
||||
max_length=100,
|
||||
required=True,
|
||||
widget=forms.TextInput(attrs={
|
||||
"placeholder": "from top camp, go NE round the side of Augst Eck, in some trees",
|
||||
"size": 100,
|
||||
"style": "width: 100ch; min-width: 0;"
|
||||
})
|
||||
)
|
||||
who_are_you = forms.CharField(
|
||||
label="Who are you",
|
||||
max_length=100,
|
||||
|
||||
@@ -140,6 +140,7 @@ def read_signups():
|
||||
|
||||
signupsfile = signups_dir / SIGNUPS_FILE
|
||||
if not signupsfile.is_file():
|
||||
print(f" ! Nobody has signed up for expedition {current_expo()} yet.")
|
||||
return { "SIGNEDUP": {} } # dict where e.g. {"philip-sargent": encrypted_form_data, more users etc.}
|
||||
|
||||
with open(signupsfile, 'r', encoding='utf-8') as json_f:
|
||||
|
||||
Reference in New Issue
Block a user