diff options
author | Matthew Lemon <y@yulqen.org> | 2024-05-26 14:41:07 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-05-26 14:41:07 +0100 |
commit | eeaa3c469b33e614941596a04d56af3be1290456 (patch) | |
tree | 8013fedc5ea9a39557a3f8e287320ae6c14184ac /pyblackbird_cc/resources/forms.py | |
parent | fda2c61fab80cbb8733dcbe32a061785c67b18a4 (diff) |
wip: create form now as a feature field
Diffstat (limited to '')
-rw-r--r-- | pyblackbird_cc/resources/forms.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pyblackbird_cc/resources/forms.py b/pyblackbird_cc/resources/forms.py index b8b638c..9320a77 100644 --- a/pyblackbird_cc/resources/forms.py +++ b/pyblackbird_cc/resources/forms.py @@ -102,7 +102,12 @@ class ResourceCreateForm(forms.Form): ) pdf_files.widget.attrs.update({"class": "file_upload", "accept": ".pdf"}) thumbnail_files.widget.attrs.update({"class": "file_upload", "accept": ".png,.jpg"}) - feature_slot = forms.IntegerField(min_value=1, max_value=3, required=False) + feature_slot = forms.IntegerField( + min_value=1, + max_value=3, + required=False, + help_text="Please enter either 1, 2 or 3 here. This will dictate where on the page this resource will feature on the main list page.", + ) def clean_thumbnail_files(self): thumbnail_files = self.files.getlist("thumbnail_files") |