Skip to content

Commit

Permalink
Update goods forms to use Fieldset
Browse files Browse the repository at this point in the history
  • Loading branch information
hnryjmes committed Jan 13, 2025
1 parent 8d2bb78 commit 28f51db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions exporter/goods/forms/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def clean(self):
return cleaned_data


class ProductDocumentAvailabilityForm(BaseForm):
class ProductDocumentAvailabilityForm(FieldsetForm):
class Layout:
TITLE = "Do you have a document that shows what your product is and what it's designed to do?"

Expand Down Expand Up @@ -324,7 +324,7 @@ def clean(self):
return cleaned_data


class ProductDocumentSensitivityForm(BaseForm):
class ProductDocumentSensitivityForm(FieldsetForm):
class Layout:
TITLE = "Is the document rated above Official-sensitive?"

Expand Down Expand Up @@ -354,7 +354,7 @@ def get_layout_fields(self):
)


class ProductDocumentUploadForm(BaseForm):
class ProductDocumentUploadForm(FieldsetForm):
class Layout:
TITLE = "Upload a document that shows what your product is designed to do"

Expand Down Expand Up @@ -404,7 +404,7 @@ def get_layout_fields(self):
return layout_fields


class ProductOnwardExportedForm(BaseForm):
class ProductOnwardExportedForm(FieldsetForm):
class Layout:
TITLE = "Is the product going to any ultimate end-users?"

Expand All @@ -431,7 +431,7 @@ def get_layout_fields(self):
)


class ProductOnwardAlteredProcessedForm(BaseForm):
class ProductOnwardAlteredProcessedForm(FieldsetForm):
class Layout:
TITLE = "Will the item be altered or processed before it is exported again?"

Expand Down Expand Up @@ -482,7 +482,7 @@ def clean(self):
return cleaned_data


class ProductOnwardIncorporatedForm(BaseForm):
class ProductOnwardIncorporatedForm(FieldsetForm):
class Layout:
TITLE = "Will the product be incorporated into another item before it is onward exported?"

Expand Down
6 changes: 3 additions & 3 deletions exporter/goods/forms/firearms.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def get_layout_fields(self):
return ("is_covered_by_section_5",)


class FirearmMadeBefore1938Form(BaseForm):
class FirearmMadeBefore1938Form(FieldsetForm):
class Layout:
TITLE = "Was the product made before 1938?"

Expand Down Expand Up @@ -503,7 +503,7 @@ def get_layout_fields(self):
return ("year_of_manufacture",)


class FirearmIsDeactivatedForm(BaseForm):
class FirearmIsDeactivatedForm(FieldsetForm):
class Layout:
TITLE = "Has the product been deactivated?"

Expand Down Expand Up @@ -599,7 +599,7 @@ def clean(self):
return cleaned_data


class FirearmSerialIdentificationMarkingsForm(BaseForm):
class FirearmSerialIdentificationMarkingsForm(FieldsetForm):
class Layout:
TITLE = "Will each product have a serial number or other identification marking?"

Expand Down

0 comments on commit 28f51db

Please sign in to comment.