Use legend as H1

…seeing as the radios are the only control in the form.

Follows the pattern in
https://github.com/alphagov/notifications-admin/pull/3771/files
This commit is contained in:
Chris Hill-Scott
2021-01-20 15:42:38 +00:00
parent 8e7ff4c71f
commit 066aca4673
2 changed files with 13 additions and 7 deletions

View File

@@ -1295,7 +1295,7 @@ class ConfirmPasswordForm(StripWhitespaceForm):
class NewBroadcastForm(StripWhitespaceForm): class NewBroadcastForm(StripWhitespaceForm):
content = GovukRadiosField( content = GovukRadiosField(
"How to do you want to add content to the alert?", 'New alert',
choices=[ choices=[
('freeform', 'Write your own message'), ('freeform', 'Write your own message'),
('template', 'Use a template'), ('template', 'Use a template'),

View File

@@ -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/page-footer.html" import page_footer %}
{% from "components/form.html" import form_wrapper %} {% from "components/form.html" import form_wrapper %}
@@ -10,13 +10,19 @@
{% block maincolumn_content %} {% block maincolumn_content %}
{{ page_header( {{ govukBackLink({ "href": url_for('.broadcast_dashboard', service_id=current_service.id) }) }}
'New alert',
back_link=url_for('.broadcast_dashboard', service_id=current_service.id),
)}}
{% call form_wrapper() %} {% call form_wrapper() %}
{{ form.content }} {{ form.content(
param_extensions={
'fieldset': {
'legend': {
'isPageHeading': True,
'classes': 'govuk-fieldset__legend--l'
}
}
}
) }}
{{ page_footer('Continue') }} {{ page_footer('Continue') }}
{% endcall %} {% endcall %}