mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
Fix template delete links.
Fix bug with 'current_service' not available for non service urls. Code review adjustment. Static code check.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
{{ textbox(form.template_content, highlight_tags=True, width='1-1') }}
|
||||
{{ page_footer(
|
||||
'Save',
|
||||
delete_link=url_for('.delete_service_template', service_id=service_id, template_id=template_id) if template_id or None,
|
||||
delete_link=url_for('.delete_service_template', service_id=current_service.id, template_id=template_id) if template_id or None,
|
||||
delete_link_text='Delete this template'
|
||||
) }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user