diff --git a/atlas/forms.py b/atlas/forms.py
index 0d4eef0a..d72d8170 100755
--- a/atlas/forms.py
+++ b/atlas/forms.py
@@ -992,4 +992,21 @@ class CaseDisplaySetForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
- # Optionally, you can filter queryset for findings/structures/conditions here if needed
\ No newline at end of file
+ # Optionally, you can filter queryset for findings/structures/conditions here if needed
+
+
+class CaseCollectionUpdateCaseForm(forms.ModelForm):
+ def __init__(self, *args, **kwargs):
+ self.user = kwargs.pop("user")
+ self.collection = kwargs.pop("collection", None)
+ super().__init__(*args, **kwargs)
+ self.helper = FormHelper()
+ self.helper.form_id = "id-case-form"
+ self.helper.form_class = "case-form"
+ self.helper.form_method = "post"
+ self.helper.form_action = "submit"
+ self.helper.form_tag = False
+ self.helper.layout = Layout()
+ class Meta:
+ model = CaseCollection
+ fields = [] # No fields, just for compatibility with UpdateView
\ No newline at end of file
diff --git a/atlas/templates/atlas/casecollection_form.html b/atlas/templates/atlas/casecollection_form.html
index 38aecb7f..5bef2507 100755
--- a/atlas/templates/atlas/casecollection_form.html
+++ b/atlas/templates/atlas/casecollection_form.html
@@ -37,7 +37,7 @@
{% csrf_token %}
{{ form }}
-
Cases:
+ {% comment %}
Cases:
Add cases here. These can only be added once created (they can also be added to cases on creation). Click and drag to change order.
@@ -54,13 +54,14 @@
{{ case_formset.management_form }}
-