mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Collect organisation type
So that we can default services to their appropriate text allowance, we need to find out what sector they're in. So let's start collecting that from teams as they create new services. I think Central/Local/NHS are the right options, but these can be easily changed if not.
This commit is contained in:
@@ -213,7 +213,7 @@ class TextNotReceivedForm(Form):
|
||||
mobile_number = international_phone_number()
|
||||
|
||||
|
||||
class ServiceNameForm(Form):
|
||||
class RenameServiceForm(Form):
|
||||
name = StringField(
|
||||
u'Service name',
|
||||
validators=[
|
||||
@@ -221,6 +221,23 @@ class ServiceNameForm(Form):
|
||||
])
|
||||
|
||||
|
||||
class CreateServiceForm(Form):
|
||||
name = StringField(
|
||||
u'What’s your service called?',
|
||||
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()],
|
||||
)
|
||||
|
||||
|
||||
class ConfirmPasswordForm(Form):
|
||||
def __init__(self, validate_password_func, *args, **kwargs):
|
||||
self.validate_password_func = validate_password_func
|
||||
|
||||
Reference in New Issue
Block a user