mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-20 13:12:27 -04:00
Parametrized options label for the branding request form
Co-Authored-By: Chris Hill-Scott <me@quis.cc>
This commit is contained in:
committed by
Pea Tyczynska
parent
02cb6c9c38
commit
cc61e87701
@@ -1403,6 +1403,7 @@ class BrandingOptions(StripWhitespaceForm):
|
||||
def __init__(self, service, *args, branding_type="email", **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.options.choices = tuple(self.get_available_choices(service, branding_type))
|
||||
self.options.label.text = 'Choose your new {} branding'.format(branding_type)
|
||||
if self.something_else_is_only_option:
|
||||
self.options.data = self.FALLBACK_OPTION_VALUE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user