summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/forms.py')
-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):