Skip to content

Commit

Permalink
Merge pull request #2267 from uktrade/LTD-5725-lcdc-content-change
Browse files Browse the repository at this point in the history
[LTD-5727] Updated page headers and removed label
  • Loading branch information
currycoder authored Dec 13, 2024
2 parents ff1a080 + 2fb37cc commit 82dd6fa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions caseworker/advice/forms/approval.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_layout_fields(self):

class LicenceConditionsForm(PicklistAdviceForm, BaseForm):
class Layout:
TITLE = "Add licence conditions, instructions to exporter or footnotes (optional)"
TITLE = "Add licence conditions (optional)"

proviso = forms.CharField(
widget=forms.Textarea(attrs={"rows": 7, "class": "govuk-!-margin-top-4"}),
Expand All @@ -104,7 +104,7 @@ class Layout:
choices=(),
)
proviso_checkboxes = forms.MultipleChoiceField(
label="Add a licence condition (optional)",
label="",
required=False,
widget=forms.CheckboxSelectMultiple,
choices=(),
Expand Down Expand Up @@ -143,7 +143,7 @@ def get_layout_fields(self):

class FootnotesApprovalAdviceForm(PicklistAdviceForm, BaseForm):
class Layout:
TITLE = "Instructions for the exporter (optional)"
TITLE = "Add instructions to the exporter, or a reporting footnote (optional)"

instructions_to_exporter = forms.CharField(
widget=forms.Textarea(attrs={"rows": "3"}),
Expand Down
2 changes: 1 addition & 1 deletion caseworker/advice/forms/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class PicklistApprovalAdviceEditForm(BaseForm):
class Layout:
TITLE = "Add licence conditions, instructions to exporter or footnotes (optional)"
TITLE = "Add licence conditions (optional)"

proviso = forms.CharField(
widget=forms.Textarea(attrs={"rows": 30, "class": "govuk-!-margin-top-4"}),
Expand Down
4 changes: 2 additions & 2 deletions unit_tests/caseworker/advice/views/test_edit_advice.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def test_DESNZ_give_approval_advice_post_valid_add_conditional(
soup = beautiful_soup(response.content)
# redirected to next form
header = soup.find("h1")
assert header.text == "Add licence conditions, instructions to exporter or footnotes (optional)"
assert header.text == "Add licence conditions (optional)"

add_licence_condition_response = post_to_step(
AdviceSteps.LICENCE_CONDITIONS,
Expand All @@ -384,7 +384,7 @@ def test_DESNZ_give_approval_advice_post_valid_add_conditional(
soup = beautiful_soup(add_licence_condition_response.content)
# redirected to next form
header = soup.find("h1")
assert header.text == "Instructions for the exporter (optional)"
assert header.text == "Add instructions to the exporter, or a reporting footnote (optional)"

add_instructions_response = post_to_step(
AdviceSteps.LICENCE_FOOTNOTES,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def test_DESNZ_give_approval_advice_post_valid_add_conditional(
soup = beautiful_soup(response.content)
# redirected to next form
header = soup.find("h1")
assert header.text == "Add licence conditions, instructions to exporter or footnotes (optional)"
assert header.text == "Add licence conditions (optional)"

add_LC_response = post_to_step(
AdviceSteps.LICENCE_CONDITIONS,
Expand All @@ -203,7 +203,7 @@ def test_DESNZ_give_approval_advice_post_valid_add_conditional(
soup = beautiful_soup(add_LC_response.content)
# redirected to next form
header = soup.find("h1")
assert header.text == "Instructions for the exporter (optional)"
assert header.text == "Add instructions to the exporter, or a reporting footnote (optional)"

add_instructions_response = post_to_step(
AdviceSteps.LICENCE_FOOTNOTES,
Expand Down Expand Up @@ -246,7 +246,7 @@ def test_DESNZ_give_approval_advice_post_valid_add_conditional_optional(
soup = beautiful_soup(response.content)
# redirected to next form
header = soup.find("h1")
assert header.text == "Add licence conditions, instructions to exporter or footnotes (optional)"
assert header.text == "Add licence conditions (optional)"

add_LC_response = post_to_step(
AdviceSteps.LICENCE_CONDITIONS,
Expand All @@ -256,7 +256,7 @@ def test_DESNZ_give_approval_advice_post_valid_add_conditional_optional(
soup = beautiful_soup(add_LC_response.content)
# redirected to next form
header = soup.find("h1")
assert header.text == "Instructions for the exporter (optional)"
assert header.text == "Add instructions to the exporter, or a reporting footnote (optional)"

add_instructions_response = post_to_step(
AdviceSteps.LICENCE_FOOTNOTES,
Expand Down

0 comments on commit 82dd6fa

Please sign in to comment.