diff --git a/exporter/applications/forms/export_details.py b/exporter/applications/forms/export_details.py index 78a623d31a..af490f54e8 100644 --- a/exporter/applications/forms/export_details.py +++ b/exporter/applications/forms/export_details.py @@ -135,7 +135,7 @@ def proposed_product_return_date_form(): title=TemporaryExportDetails.PROPOSED_RETURN_DATE, questions=[ DateInput( - title="", + title="Return to the UK Date", short_title=TemporaryExportDetails.SummaryList.PROPOSED_RETURN_DATE, description=f"For example, 12 11 {datetime.datetime.now().year + 1}", name="proposed_return_date", diff --git a/exporter/core/constants.py b/exporter/core/constants.py index b7b4f589fc..4c8ce6c19e 100644 --- a/exporter/core/constants.py +++ b/exporter/core/constants.py @@ -168,7 +168,7 @@ class SummaryList: TITLE = "Temporary export details summary list" TEMPORARY_EXPORT_DETAILS = "Explain why the products are being exported temporarily" PRODUCTS_UNDER_DIRECT_CONTROL = "Will the products remain under your direct control while overseas?" - PROPOSED_RETURN_DATE = "Proposed date the products will return to the UK" + PROPOSED_RETURN_DATE = " return to the UK" class CheckYourAnswers: TEMPORARY_EXPORT_DETAILS = "Explain why the products are being exported temporarily" diff --git a/lite_forms/templates/components.html b/lite_forms/templates/components.html index 7b1a77d23b..0a9cd3c2a3 100644 --- a/lite_forms/templates/components.html +++ b/lite_forms/templates/components.html @@ -7,7 +7,7 @@ govuk-form-group--error {% endif %} {% endif %}"> - {% if question.title %} + {% if question.title and question.input_type != "date" %} {% endif %} - {% if question.description %} + {% if question.description and question.input_type != "date" %} {{ question.description|safe }} diff --git a/lite_forms/templates/components/date.html b/lite_forms/templates/components/date.html index 93a0442dae..91bb394f98 100644 --- a/lite_forms/templates/components/date.html +++ b/lite_forms/templates/components/date.html @@ -1,57 +1,65 @@ -