mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-28 03:39:29 -04:00
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:
@@ -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
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
has_team_members,
|
||||
'Another person in your team has the ‘Manage service’ permission',
|
||||
) }}
|
||||
{{ tick_cross_done_not_done(
|
||||
has_templates,
|
||||
'You’ve 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>
|
||||
|
||||
Reference in New Issue
Block a user