Skip to content

Commit

Permalink
Ensure checkbox licence conditions collapse to single textbox when th…
Browse files Browse the repository at this point in the history
…ere are no picklist conditions
  • Loading branch information
currycoder authored and Tllew committed Jan 13, 2025
1 parent 5868c36 commit 3156492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caseworker/advice/forms/approval.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_layout_fields(self):
)


class LicenceConditionsForm(PicklistAdviceForm, BaseForm):
class PicklistLicenceConditionsForm(PicklistAdviceForm, BaseForm):
class Layout:
TITLE = "Add licence conditions (optional)"

Expand Down Expand Up @@ -119,7 +119,7 @@ class Layout:
TITLE = "Add licence conditions (optional)"

proviso = forms.CharField(
widget=forms.Textarea(attrs={"rows": 7}),
widget=forms.Textarea(attrs={"rows": 7, "class": "govuk-!-margin-top-4"}),
label="Licence condition",
required=False,
)
Expand Down

0 comments on commit 3156492

Please sign in to comment.