Only show back button if you’ve come from settings

You can also reach this page from the individual template view.
This commit is contained in:
Chris Hill-Scott
2017-05-08 15:45:12 +01:00
parent 3829002d65
commit 2dd770452a

View File

@@ -22,7 +22,7 @@
) }} ) }}
{{ page_footer( {{ page_footer(
'Save', 'Save',
back_link=url_for('.service_settings', service_id=current_service.id), back_link=None if request.args.get('from_template') else url_for('.service_settings', service_id=current_service.id),
back_link_text='Back to settings' back_link_text='Back to settings'
) }} ) }}
</form> </form>