mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Merge pull request #1553 from alphagov/hide-delete-link
Hide ‘delete’ link if template’s already deleted
This commit is contained in:
@@ -64,10 +64,12 @@
|
||||
<br/>
|
||||
{% endif %}
|
||||
{% if current_user.has_permissions(permissions=['manage_templates'], admin_override=True) %}
|
||||
<span class="page-footer-delete-link page-footer-delete-link-without-button bottom-gutter-2-3">
|
||||
<a href="{{ url_for('.delete_service_template', service_id=current_service.id, template_id=template.id) }}">Delete this template</a>
|
||||
</span>
|
||||
 
|
||||
{% if not template._template.archived %}
|
||||
<span class="page-footer-delete-link page-footer-delete-link-without-button bottom-gutter-2-3">
|
||||
<a href="{{ url_for('.delete_service_template', service_id=current_service.id, template_id=template.id) }}">Delete this template</a>
|
||||
</span>
|
||||
 
|
||||
{% endif %}
|
||||
{% if not template._template.redact_personalisation %}
|
||||
<span class="page-footer-delete-link page-footer-delete-link-without-button">
|
||||
<a href="{{ url_for('.confirm_redact_template', service_id=current_service.id, template_id=template.id) }}">Hide personalisation after sending</a>
|
||||
|
||||
Reference in New Issue
Block a user