summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCefin <kevon@tuta.io>2021-11-11 19:28:10 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-11-22 00:03:21 +0100
commit913ab33222902865b25977de98237d287a63bd5a (patch)
treed72830dfdc635462d945f91b537e1ad2c0fa532d
parent32ba228373cea6e136f0d4ed3a8057b6b286e517 (diff)
downloadIshtar-913ab33222902865b25977de98237d287a63bd5a.tar.bz2
Ishtar-913ab33222902865b25977de98237d287a63bd5a.zip
rapid action modify basket property #5180 part two
-rw-r--r--archaeological_finds/forms.py25
1 files changed, 24 insertions, 1 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index 15ce0465b..78086e60d 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -1113,10 +1113,33 @@ class QAFindBasketModify(QAForm):
form_slug = "findbasket-quickaction-modify"
MULTI = False
- qa_label = forms.CharField(label="Denomination", max_length=None, required=False)
+ qa_label = forms.CharField(
+ label="Denomination",
+ validators=[validators.MaxLengthValidator(1000)],
+ required=False
+ )
+ qa_slug = forms.SlugField(label=_("Slug"), required=False)
+ qa_public = forms.BooleanField(label=_("Is public"), required=False)
+ qa_comment = forms.CharField(label=_("Comment"), widget=forms.Textarea, required=False)
+ qa_shared_with = widgets.Select2MultipleField(
+ model=IshtarUser,
+ remote=True,
+ label=_("Shared (read) with"),
+ required=False,
+ long_widget=True,
+ )
+ qa_shared_write_with = widgets.Select2MultipleField(
+ model=IshtarUser,
+ remote=True,
+ label=_("Shared (read/edit) with"),
+ required=False,
+ long_widget=True,
+ )
REPLACE_FIELDS = [
"qa_label",
+ "qa_slug",
+ "qa_public",
]
class PreservationForm(CustomForm, ManageOldType):