mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Add form to let users switch basic view on and off
This commit adds radio buttons to the ‘basic view’ page. This will let users choose whether basic view is on or off for their service. As before, this page will only be linked to if a service already has basic view, so this commit does not launch the new feature.
This commit is contained in:
@@ -677,6 +677,20 @@ class ServiceSwitchLettersForm(StripWhitespaceForm):
|
||||
)
|
||||
|
||||
|
||||
class ServiceBasicViewForm(StripWhitespaceForm):
|
||||
|
||||
def __init__(self, enabled):
|
||||
super().__init__(enabled='on' if enabled else 'off')
|
||||
|
||||
enabled = RadioField(
|
||||
'Basic view',
|
||||
choices=[
|
||||
('on', 'On'),
|
||||
('off', 'Off'),
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
class ServiceSetBranding(StripWhitespaceForm):
|
||||
|
||||
def __init__(self, email_branding=[], *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user