mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-14 10:58:58 -04:00
Convert radios on /support page (basic)
This commit is contained in:
@@ -1516,7 +1516,7 @@ class CreateKeyForm(StripWhitespaceForm):
|
||||
|
||||
|
||||
class SupportType(StripWhitespaceForm):
|
||||
support_type = RadioField(
|
||||
support_type = GovukRadiosField(
|
||||
'How can we help you?',
|
||||
choices=[
|
||||
(PROBLEM_TICKET_TYPE, 'Report a problem'),
|
||||
@@ -1526,12 +1526,15 @@ class SupportType(StripWhitespaceForm):
|
||||
|
||||
|
||||
class SupportRedirect(StripWhitespaceForm):
|
||||
who = RadioField(
|
||||
who = GovukRadiosField(
|
||||
'What do you need help with?',
|
||||
choices=[
|
||||
('public-sector', 'I work in the public sector and need to send emails, text messages or letters'),
|
||||
('public', 'I’m a member of the public with a question for the government'),
|
||||
],
|
||||
param_extensions={
|
||||
"fieldset": {"legend": {"classes": "govuk-visually-hidden"}}
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{% extends "withoutnav_template.html" %}
|
||||
{% from "components/radios.html" import radios %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/form.html" import form_wrapper %}
|
||||
|
||||
@@ -14,12 +13,12 @@
|
||||
|
||||
{% call form_wrapper() %}
|
||||
{% if current_user.is_authenticated %}
|
||||
{{ radios(form.support_type) }}
|
||||
{{ form.support_type }}
|
||||
{% else %}
|
||||
<p class="govuk-body">
|
||||
What do you need help with?
|
||||
</p>
|
||||
{{ radios(form.who, hide_legend=True) }}
|
||||
{{ form.who }}
|
||||
{% endif %}
|
||||
{{ page_footer('Continue') }}
|
||||
{% endcall %}
|
||||
|
||||
Reference in New Issue
Block a user