diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-11-20 19:27:09 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-11-20 19:27:09 +0000 |
commit | bd81bd0b013892c7cd05a6e319a1a960e21abb55 (patch) | |
tree | 0244c2382f8c59f25456dfbb717a3b30f80ae2cc /core/forms.py | |
parent | 740a5a4fa8bb8452d8b8ef6d264902c7d67812c8 (diff) | |
download | troggle-bd81bd0b013892c7cd05a6e319a1a960e21abb55.tar.gz troggle-bd81bd0b013892c7cd05a6e319a1a960e21abb55.tar.bz2 troggle-bd81bd0b013892c7cd05a6e319a1a960e21abb55.zip |
Made kataster_status field invisible.
Diffstat (limited to 'core/forms.py')
-rw-r--r-- | core/forms.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/forms.py b/core/forms.py index bd90490..aeaa7ed 100644 --- a/core/forms.py +++ b/core/forms.py @@ -59,10 +59,10 @@ class CaveForm(ModelForm): widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Enter page content (using HTML)"}), ) # survey = forms.CharField(required = False, widget=TinyMCE(attrs={'cols': 80, 'rows': 10})) - kataster_status = forms.CharField(required=False, - label = "Kataster status, see below", - widget=forms.TextInput(attrs={"placeholder": "see example below"}) - ) + # kataster_status = forms.CharField(required=False, + # label = "Kataster status, see below", + # widget=forms.TextInput(attrs={"placeholder": "see example below"}) + # ) kataster_code = forms.CharField(required=False, label = "Kataster code, see below", widget=forms.TextInput(attrs={"placeholder": "see example below"}) @@ -73,6 +73,7 @@ class CaveForm(ModelForm): # ) notes = forms.CharField( required=False, + label = "Notes, e.g. progress on issuing kataster no.", widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Enter page content (using HTML)"}), ) references = forms.CharField( @@ -92,7 +93,7 @@ class CaveForm(ModelForm): class Meta: model = Cave - exclude = ("filename","url", "underground_centre_line") + exclude = ("filename","url", "underground_centre_line", "kataster_status") 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' ] |