diff --git a/core/forms.py b/core/forms.py index af3b171..05b982a 100644 --- a/core/forms.py +++ b/core/forms.py @@ -67,10 +67,10 @@ class CaveForm(ModelForm): label = "Kataster code, see below", widget=forms.TextInput(attrs={"placeholder": "see example below"}) ) - underground_centre_line = forms.CharField( - required=False, - widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Enter page content (using HTML)"}), - ) + # underground_centre_line = forms.CharField( + # required=False, + # widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Enter page content (using HTML)"}), + # ) notes = forms.CharField( required=False, widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Enter page content (using HTML)"}), @@ -92,7 +92,7 @@ class CaveForm(ModelForm): class Meta: model = Cave - exclude = ("filename","url") + exclude = ("filename","url", "underground_centre_line") field_order = ['unofficial_number', 'kataster_number', 'official_name', 'underground_description', 'survey', 'underground_centre_line', 'explorers', 'equipment', 'notes', 'references', 'description_file', 'survex_file', 'areacode', 'length', 'depth', 'extent', 'kataster_code', 'kataster_status' ] diff --git a/templates/cave.html b/templates/cave.html index 746c257..81357a1 100644 --- a/templates/cave.html +++ b/templates/cave.html @@ -97,12 +97,15 @@ {{ cave.kataster_status|safe }} {% endif %} {% endcomment %} + {% if cave.explorers %}