Merge pull request #2578 from alphagov/add-existing-live-to-go-live

Note existing live services in go live ticket
This commit is contained in:
Chris Hill-Scott
2018-12-13 10:43:57 +00:00
committed by GitHub
3 changed files with 9 additions and 0 deletions

View File

@@ -166,6 +166,7 @@ def submit_request_to_go_live(service_id):
'\nText messages in next year: {volume_sms}'
'\nLetters in next year: {volume_letter}'
'\nConsent to research: {research_consent}'
'\nOther live services: {existing_live}'
'\n'
'\n---'
'\n'
@@ -192,6 +193,7 @@ def submit_request_to_go_live(service_id):
volume_letter=form.volume_letter.data,
volume_letter_normalised=form.volume_letter.data.replace(',', ''),
research_consent=form.research_consent.data.title(),
existing_live='Yes' if user_api_client.user_has_live_services(current_user) else 'No',
service_id=current_service.id,
organisation=AgreementInfo.from_current_user().owner,
user_name=current_user.name,