From 3156492d5394124ebf3e215bea1bb8a792deb963 Mon Sep 17 00:00:00 2001 From: Brendan Smith Date: Thu, 19 Dec 2024 10:29:55 +0000 Subject: [PATCH] Ensure checkbox licence conditions collapse to single textbox when there are no picklist conditions --- caseworker/advice/forms/approval.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caseworker/advice/forms/approval.py b/caseworker/advice/forms/approval.py index 9a9a5fbeb3..d43be45a76 100644 --- a/caseworker/advice/forms/approval.py +++ b/caseworker/advice/forms/approval.py @@ -70,7 +70,7 @@ def get_layout_fields(self): ) -class LicenceConditionsForm(PicklistAdviceForm, BaseForm): +class PicklistLicenceConditionsForm(PicklistAdviceForm, BaseForm): class Layout: TITLE = "Add licence conditions (optional)" @@ -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, )