Fix casing and multi-line stuff

This commit is contained in:
Imdad Ahad
2016-10-24 13:38:55 +01:00
parent 0706909419
commit 0bde2d238f
2 changed files with 18 additions and 7 deletions

View File

@@ -346,11 +346,18 @@ class Feedback(Form):
class RequestToGoLiveForm(Form):
channel = Stringfield('Are you sending emails or text messages or both?')
start_date = Stringfield('When will you be ready to start sending messages?')
start_volume = Stringfield('How many messages do you expect to send per month to start with? Give an estimate in numbers.')
peak_volume = Stringfield('Will the number of messages a month increase and when will that start? Give an estimate.')
upload_or_api = Stringfield('Are you uploading a list of contacts that youre sending your message to, or are you integrating your system with ours?')
channel = StringField('Are you sending emails or text messages or both?')
start_date = StringField('When will you be ready to start sending messages?')
start_volume = StringField(
'How many messages do you expect to send per month to start with? Give an estimate in numbers.'
)
peak_volume = StringField(
'Will the number of messages a month increase and when will that start? Give an estimate.'
)
upload_or_api = StringField(
'Are you uploading a list of contacts that youre sending your message to, ' +
'or are you integrating your system with ours?'
)
class ProviderForm(Form):

View File

@@ -110,7 +110,11 @@ def service_request_to_go_live(service_id):
'department_id': current_app.config.get('DESKPRO_DEPT_ID'),
'agent_team_id': current_app.config.get('DESKPRO_ASSIGNED_AGENT_TEAM_ID'),
'subject': 'Request to go live',
'message': "On behalf of {} ({})\n\nExpected usage\n---\n\nChannel: {}\nStart date: {}\nStart volume: {}\nPeak volume: {}\nUpload or API: {}".format(
'message':
('On behalf of {} ({})\n\nExpected usage\n---'
'\nChannel: {}\nStart date: {}\nStart volume: {}'
'\nPeak volume: {}\nUpload or API: {}')
.format(
current_service['name'],
url_for('main.service_dashboard', service_id=current_service['id'], _external=True),
form.channel.data,
@@ -118,7 +122,7 @@ def service_request_to_go_live(service_id):
form.start_volume.data,
form.peak_volume.data,
form.upload_or_api.data
)
}
headers = {