From 066aca467396232a5de74fc96e07603fe64f3272 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 20 Jan 2021 15:42:38 +0000 Subject: [PATCH] Use legend as H1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …seeing as the radios are the only control in the form. Follows the pattern in https://github.com/alphagov/notifications-admin/pull/3771/files --- app/main/forms.py | 2 +- .../views/broadcast/new-broadcast.html | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/app/main/forms.py b/app/main/forms.py index dcb4d05d6..e2943dfbe 100644 --- a/app/main/forms.py +++ b/app/main/forms.py @@ -1295,7 +1295,7 @@ class ConfirmPasswordForm(StripWhitespaceForm): class NewBroadcastForm(StripWhitespaceForm): content = GovukRadiosField( - "How to do you want to add content to the alert?", + 'New alert', choices=[ ('freeform', 'Write your own message'), ('template', 'Use a template'), diff --git a/app/templates/views/broadcast/new-broadcast.html b/app/templates/views/broadcast/new-broadcast.html index 323e1e869..df9d0e07e 100644 --- a/app/templates/views/broadcast/new-broadcast.html +++ b/app/templates/views/broadcast/new-broadcast.html @@ -1,4 +1,4 @@ -{% from "components/page-header.html" import page_header %} +{% from "components/back-link/macro.njk" import govukBackLink %} {% from "components/page-footer.html" import page_footer %} {% from "components/form.html" import form_wrapper %} @@ -10,13 +10,19 @@ {% block maincolumn_content %} - {{ page_header( - 'New alert', - back_link=url_for('.broadcast_dashboard', service_id=current_service.id), - )}} + {{ govukBackLink({ "href": url_for('.broadcast_dashboard', service_id=current_service.id) }) }} {% call form_wrapper() %} - {{ form.content }} + {{ form.content( + param_extensions={ + 'fieldset': { + 'legend': { + 'isPageHeading': True, + 'classes': 'govuk-fieldset__legend--l' + } + } + } + ) }} {{ page_footer('Continue') }} {% endcall %}