mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-19 14:03:52 -04:00
link-services-to-organisations
This commit is contained in:
@@ -885,3 +885,17 @@ class SetTemplateSenderForm(StripWhitespaceForm):
|
||||
self.sender.label.text = 'Select your sender'
|
||||
|
||||
sender = RadioField()
|
||||
|
||||
|
||||
class LinkOrganisationsForm(StripWhitespaceForm):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.organisations.choices = kwargs['choices']
|
||||
|
||||
organisations = RadioField(
|
||||
'Select an organisation',
|
||||
validators=[
|
||||
DataRequired()
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user