Hide name changing functionality when in folder deletion mode

Also add 'back' link
Also start work on additional tests for folder deletion flow
This commit is contained in:
Pea Tyczynska
2018-11-16 15:10:12 +00:00
parent 4373987786
commit 69ada9a312
3 changed files with 72 additions and 14 deletions

View File

@@ -442,14 +442,15 @@ def delete_template_folder(service_id, template_folder_id):
else:
abort(500, e)
flash("Are you sure you want to delete the '{}' folder?".format(template_folder_name), 'delete')
flash("Are you sure you want to delete the {} folder?".format(template_folder_name), 'delete')
return render_template(
'views/templates/manage-template-folder.html',
form=form,
template_folder_path=template_folder_path,
current_service_id=current_service.id,
template_folder_id=template_folder_id,
template_type="all"
template_type="all",
delete_folder=True
)