mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
Add page to change organisation type
If a user picks the wrong thing, we should be able to override it when they go live.
This commit is contained in:
@@ -141,6 +141,18 @@ def sms_code():
|
||||
message='Code not found')])
|
||||
|
||||
|
||||
def organisation_type():
|
||||
return RadioField(
|
||||
'Who runs this service?',
|
||||
choices=[
|
||||
('central', 'Central government'),
|
||||
('local', 'Local government'),
|
||||
('nhs', 'NHS'),
|
||||
],
|
||||
validators=[DataRequired()],
|
||||
)
|
||||
|
||||
|
||||
class LoginForm(Form):
|
||||
email_address = StringField('Email address', validators=[
|
||||
Length(min=5, max=255),
|
||||
@@ -227,15 +239,11 @@ class CreateServiceForm(Form):
|
||||
validators=[
|
||||
DataRequired(message='Can’t be empty')
|
||||
])
|
||||
organisation_type = RadioField(
|
||||
'Who runs this service?',
|
||||
choices=[
|
||||
('central', 'Central government'),
|
||||
('local', 'Local government'),
|
||||
('nhs', 'NHS'),
|
||||
],
|
||||
validators=[DataRequired()],
|
||||
)
|
||||
organisation_type = organisation_type()
|
||||
|
||||
|
||||
class OrganisationTypeForm(Form):
|
||||
organisation_type = organisation_type()
|
||||
|
||||
|
||||
class ConfirmPasswordForm(Form):
|
||||
|
||||
Reference in New Issue
Block a user