2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 12:41:09 +00:00

fix Explorers field

This commit is contained in:
2025-10-10 22:18:29 +03:00
parent 870dfb5129
commit 76854a84d7
2 changed files with 17 additions and 11 deletions

View File

@@ -63,8 +63,10 @@ class CaveForm(ModelForm):
widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Enter page content (using HTML)"}),
)
explorers = forms.CharField(
required=False,
widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Enter page content (using HTML)"}),
required=False,
label = "Explorers: CUCC expo or another club?",
widget=HTMLarea(attrs={"height": "80%", "rows": 20,
"placeholder": "Enter page content (using HTML)"}),
)
equipment = forms.CharField(
required=False,
@@ -109,7 +111,7 @@ class CaveForm(ModelForm):
exclude = ("filename", "url", "kataster_status")
field_order = ['unofficial_number', 'kataster_number', 'official_name', 'unexplored', 'underground_description', 'survey',
'explorers', 'equipment', 'notes', 'references', 'description_file', 'survex_file',
'equipment', 'notes', 'references', 'description_file', 'survex_file', 'explorers',
'areacode', 'subarea', 'length', 'depth', 'extent',
'kataster_code', 'kataster_status', 'fully_explored', 'non_public', 'identified_login', 'who_are_you']
@@ -153,8 +155,9 @@ class EntranceForm(ModelForm):
required=False,
widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Enter text (using HTML)"}),
)
explorers = forms.CharField(required=False, widget=forms.TextInput(attrs={"size": "45"}))
# explorers = forms.CharField(required = False, widget=TinyMCE(attrs={'cols': 80, 'rows': 10}))
# explorers = forms.CharField(required=False,
# label = "Explorers: CUCC expo or another club?",
# widget=forms.TextInput(attrs={"size": "45"}))
location_description = forms.CharField(
label="Location",
@@ -227,8 +230,8 @@ class EntranceForm(ModelForm):
)
)
field_order = ['name', 'entrance_description', 'explorers', 'map_description', 'location_description', 'lastvisit', 'non_public',
'findability', 'marking', 'approach', 'underground_description', 'photo', 'marking_comment', 'findability_description', 'other_description',
field_order = ['name', 'entrance_description', 'map_description', 'location_description', 'lastvisit', 'non_public',
'findability', 'marking', 'approach', 'underground_description', 'photo', 'marking_comment', 'findability_description', 'other_description',
'bearings', 'tag_station', 'other_station', 'easting', 'northing', 'lat_wgs84', 'long_wgs84', 'alt', 'identified_login', 'who_are_you']
class Meta:
@@ -238,6 +241,7 @@ class EntranceForm(ModelForm):
"map_description", # No entrance has any data on this field, so it is being retired.
"filename",
"slug",
"explorers", # archaic for Cave, redundant for Entrance
"bearings"
)