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:
Chris Hill-Scott
2017-10-05 12:06:40 +01:00
parent 8cc8a0bf05
commit d438109630
5 changed files with 133 additions and 12 deletions

View File

@@ -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='Cant 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):