Check for templates before going live

We need users to have created some templates before they go live, so we
can see what kind of messages they intend to send.

We can do this automatically based on the work done in
https://github.com/alphagov/notifications-admin/pull/1892
This commit is contained in:
Chris Hill-Scott
2018-02-27 12:07:50 +00:00
parent ca3fdfd907
commit 7be08e2f74
3 changed files with 30 additions and 4 deletions

View File

@@ -169,6 +169,9 @@ def request_to_go_live(service_id):
service_id, 'manage_settings'
) > 1
),
has_templates=(
service_api_client.count_service_templates(service_id) > 0
),
)

View File

@@ -22,6 +22,10 @@
has_team_members,
'Another person in your team has the Manage service permission',
) }}
{{ tick_cross_done_not_done(
has_templates,
'Youve added some templates',
) }}
</ul>
<p>
You also need to:
@@ -35,7 +39,7 @@
<a href="{{ url_for('main.service_settings', service_id=current_service.id) }}">settings</a> page
</li>
<li>
add the templates you want to start with, making sure they follow the GOV.UK Service Manual standards for
make sure your messages follow the GOV.UK Service Manual standards for
<a href="https://www.gov.uk/service-manual/design/sending-emails-and-text-messages">writing text messages and emails</a>
</li>
</ul>