mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Move end of tour route into tour.py
In https://github.com/alphagov/notifications-admin/pull/3663/files we made specific routes for sending the ‘tour’ text message, rather than sharing the ‘one-off’ routes in `send.py`. This commit moves the final route in the tour journey into `tour.py` as well, which is where I expected to find it when I was looking for it just now.
This commit is contained in:
@@ -815,17 +815,6 @@ def start_job(service_id, upload_id):
|
||||
)
|
||||
|
||||
|
||||
@main.route("/services/<uuid:service_id>/end-tour/<uuid:example_template_id>")
|
||||
@user_has_permissions('manage_templates')
|
||||
def go_to_dashboard_after_tour(service_id, example_template_id):
|
||||
|
||||
service_api_client.delete_service_template(service_id, example_template_id)
|
||||
|
||||
return redirect(
|
||||
url_for('main.service_dashboard', service_id=service_id)
|
||||
)
|
||||
|
||||
|
||||
def fields_to_fill_in(template, prefill_current_user=False):
|
||||
|
||||
if 'letter' == template.template_type:
|
||||
|
||||
Reference in New Issue
Block a user