mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
allowing users with manage template permission to delete templates
This commit is contained in:
@@ -56,15 +56,16 @@
|
|||||||
{{ template._template.updated_at|format_delta }}
|
{{ template._template.updated_at|format_delta }}
|
||||||
</time>
|
</time>
|
||||||
</span>
|
</span>
|
||||||
<h2 class="margin-bottom-1 font-body-lg">More actions</h2>
|
<div>
|
||||||
<ul class="usa-list usa-list--unstyled">
|
|
||||||
<li>
|
|
||||||
<a class="usa-link margin-right-3"
|
<a class="usa-link margin-right-3"
|
||||||
href="{{ url_for('.view_template_versions', service_id=current_service.id, template_id=template.id) }}">
|
href="{{ url_for('.view_template_versions', service_id=current_service.id, template_id=template.id) }}">
|
||||||
See previous versions
|
See previous versions
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% if current_user.has_permissions('manage_templates') and user_has_template_permission %}
|
{% if current_user.has_permissions('manage_templates') and user_has_template_permission %}
|
||||||
|
<h2 class="margin-bottom-1 font-body-lg">More actions</h2>
|
||||||
|
<ul class="usa-list usa-list--unstyled">
|
||||||
{% if not template._template.archived %}
|
{% if not template._template.archived %}
|
||||||
<li>
|
<li>
|
||||||
<a class="usa-link margin-right-3"
|
<a class="usa-link margin-right-3"
|
||||||
@@ -85,7 +86,6 @@
|
|||||||
<p class="hint">Personalization is hidden after sending</p>
|
<p class="hint">Personalization is hidden after sending</p>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user