2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 08:57:24 +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"
)

View File

@@ -106,10 +106,6 @@ Nope, it is not useful, removing it... Philip S.
{{ cave.underground_centre_line|safe }}
{% endif %}
-->
{% if cave.explorers %}
<h2>Explored by CUCC (expo)? Or ARGE ?</h2>
{{ cave.explorers|safe }}
{% endif %}
{% if cave.references %}
<h2>References</h2>
{{ cave.references|safe }}
@@ -239,6 +235,12 @@ to equate <var>p{{ ent.entrance.name|lower|safe }}</var> to the actual survey st
Download .3d file <a href="{% url "cave3d" cave %}">{{cave}}.3d</a><!-- this is a fake directory -->
<br>
cave survex path '{{ cave.areacode }}/{% if cave.kataster_number %}{{cave.kataster_number}}{% else %}{{cave.unofficial_number}}{% endif %}/'
{% if cave.explorers %}
<h3>Explorers</h3>
<p> {{ cave.explorers|safe }}<br />
<p>[This is a fossil: it used to show whether the cave was explored by CUCC/expo or by another group, but that information is now available in the survex files recording the surveying.]
{% endif %}
<div id='scene'></div>
{% endif %}
{% endblock content %}