Merge pull request #3632 from alphagov/training-broadcast-approved

Add a tour screen once a broadcast is approved
This commit is contained in:
Chris Hill-Scott
2020-09-23 11:07:03 +01:00
committed by GitHub
3 changed files with 88 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ from app.utils import service_has_permission, user_has_permissions
@user_has_permissions()
@service_has_permission('broadcast')
def broadcast_tour(service_id, step_index):
if step_index not in (1, 2, 3, 4, 5):
if step_index not in (1, 2, 3, 4, 5, 6):
abort(404)
return render_template(
f'views/broadcast/tour/{step_index}.html'
@@ -298,6 +298,13 @@ def approve_broadcast_message(service_id, broadcast_message_id):
broadcast_message.approve_broadcast()
if current_service.trial_mode:
return redirect(url_for(
'.broadcast_tour',
service_id=current_service.id,
step_index=6,
))
return redirect(url_for(
'.view_broadcast_message',
service_id=current_service.id,