summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCefin <kevon@tuta.io>2021-11-11 19:28:10 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-07-08 09:58:49 +0200
commit14ac10cbfb5be471c4e59d8a5f020803ab8ebb81 (patch)
treed8eea0c73f76d1f3eda86acf0bf625bd4913c84d
parent893ba6df32324cd807d0eac995f14e73f699865e (diff)
downloadIshtar-14ac10cbfb5be471c4e59d8a5f020803ab8ebb81.tar.bz2
Ishtar-14ac10cbfb5be471c4e59d8a5f020803ab8ebb81.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):