mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 13:41:38 -04:00
Require more information when creating organisations
Currently we set not-very-useful defaults for organisation type and crown status when creating an organisation. This commit adds two field to the form (in addition to the existing name field) to explicitly ask for: - organisation type - crown status We need these for all organisations before we can make any of their services live. This commit also records any new organisation as not having accepted the data sharing and financial agreement, because if we don’t know about the organisation already then they definitely won’t have signed it.
This commit is contained in:
@@ -594,6 +594,14 @@ class OrganisationTypeForm(StripWhitespaceForm):
|
||||
organisation_type = organisation_type()
|
||||
|
||||
|
||||
class NewOrganisationForm(
|
||||
RenameOrganisationForm,
|
||||
OrganisationTypeForm,
|
||||
OrganisationCrownStatusForm,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class FreeSMSAllowance(StripWhitespaceForm):
|
||||
free_sms_allowance = IntegerField(
|
||||
'Numbers of text message fragments per year',
|
||||
@@ -1039,11 +1047,6 @@ class PDFUploadForm(StripWhitespaceForm):
|
||||
)
|
||||
|
||||
|
||||
class CreateOrUpdateOrganisation(StripWhitespaceForm):
|
||||
|
||||
name = StringField('Name', validators=[DataRequired()])
|
||||
|
||||
|
||||
class EmailFieldInWhitelist(EmailField, StripWhitespaceStringField):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user