mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
allowing users with manage template permission to delete templates
This commit is contained in:
@@ -56,35 +56,35 @@
|
|||||||
{{ template._template.updated_at|format_delta }}
|
{{ template._template.updated_at|format_delta }}
|
||||||
</time>
|
</time>
|
||||||
</span>
|
</span>
|
||||||
|
<div>
|
||||||
|
<a class="usa-link margin-right-3"
|
||||||
|
href="{{ url_for('.view_template_versions', service_id=current_service.id, template_id=template.id) }}">
|
||||||
|
See previous versions
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% if current_user.has_permissions('manage_templates') and user_has_template_permission %}
|
||||||
<h2 class="margin-bottom-1 font-body-lg">More actions</h2>
|
<h2 class="margin-bottom-1 font-body-lg">More actions</h2>
|
||||||
<ul class="usa-list usa-list--unstyled">
|
<ul class="usa-list usa-list--unstyled">
|
||||||
<li>
|
{% if not template._template.archived %}
|
||||||
<a class="usa-link margin-right-3"
|
<li>
|
||||||
href="{{ url_for('.view_template_versions', service_id=current_service.id, template_id=template.id) }}">
|
<a class="usa-link margin-right-3"
|
||||||
See previous versions
|
href="{{ url_for('.delete_service_template', service_id=current_service.id, template_id=template.id) }}">
|
||||||
</a>
|
Delete this template
|
||||||
</li>
|
</a>
|
||||||
{% if current_user.has_permissions('manage_templates') and user_has_template_permission %}
|
</li>
|
||||||
{% if not template._template.archived %}
|
{% endif %}
|
||||||
<li>
|
{% if not template._template.redact_personalisation %}
|
||||||
<a class="usa-link margin-right-3"
|
<li>
|
||||||
href="{{ url_for('.delete_service_template', service_id=current_service.id, template_id=template.id) }}">
|
<a class="usa-link"
|
||||||
Delete this template
|
href="{{ url_for('.confirm_redact_template', service_id=current_service.id, template_id=template.id) }}">
|
||||||
</a>
|
Hide all personalized and conditional content after sending
|
||||||
</li>
|
</a> for increased privacy protection
|
||||||
{% endif %}
|
</li>
|
||||||
{% if not template._template.redact_personalisation %}
|
{% else %}
|
||||||
<li>
|
<li>
|
||||||
<a class="usa-link"
|
<p class="hint">Personalization is hidden after sending</p>
|
||||||
href="{{ url_for('.confirm_redact_template', service_id=current_service.id, template_id=template.id) }}">
|
</li>
|
||||||
Hide all personalized and conditional content after sending
|
|
||||||
</a> for increased privacy protection
|
|
||||||
</li>
|
|
||||||
{% else %}
|
|
||||||
<li>
|
|
||||||
<p class="hint">Personalization is hidden after sending</p>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user