mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Merge pull request #3731 from alphagov/add-govuk-radios-5
Add GOVUK radios [part 5]
This commit is contained in:
@@ -951,6 +951,10 @@ class OrganisationTypeField(GovukRadiosField):
|
||||
)
|
||||
|
||||
|
||||
class GovukRadiosFieldWithNoneOption(FieldWithNoneOption, GovukRadiosField):
|
||||
pass
|
||||
|
||||
|
||||
# guard against data entries that aren't a role in permissions
|
||||
def filter_by_permissions(valuelist):
|
||||
if valuelist is None:
|
||||
@@ -1728,8 +1732,9 @@ class ServiceSwitchChannelForm(ServiceOnOffSettingForm):
|
||||
|
||||
class SetEmailBranding(StripWhitespaceForm):
|
||||
|
||||
branding_style = RadioFieldWithNoneOption(
|
||||
branding_style = GovukRadiosFieldWithNoneOption(
|
||||
'Branding style',
|
||||
param_extensions={'fieldset': {'legend': {'classes': 'govuk-visually-hidden'}}},
|
||||
thing='a branding style',
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user