mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Add letter class row to settings page, visible to platform admin
Added a new row to the settings table, 'Post class', which shows the default letter class of a service and is only visible to Platform Admin. Also added a new page to enable Platform Admin users to change the default letter class for a service - this only has two options at the moment, 1st class only and 2nd class only.
This commit is contained in:
@@ -684,6 +684,17 @@ class ServiceSwitchLettersForm(StripWhitespaceForm):
|
||||
)
|
||||
|
||||
|
||||
class ServiceLetterClassForm(StripWhitespaceForm):
|
||||
|
||||
letter_class = RadioField(
|
||||
'Postage classes',
|
||||
choices=[
|
||||
('first', '1st class only'),
|
||||
('second', '2nd class only'),
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
class BrandingStyle(RadioField):
|
||||
|
||||
def post_validate(self, form, validation_stopped):
|
||||
|
||||
Reference in New Issue
Block a user