mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-03 02:00:44 -04:00
Utils is better structured to handle the logic of what thing to show for what template type, especially now that what we show for different template types in different contexts has diverged significantly. See https://github.com/alphagov/notifications-utils/commit/6b39c1a for an example of this code moving into utils Depends on and implements: https://github.com/alphagov/notifications-utils/pull/84 The main reason for doing this is to get Paul’s fix for the misaligned CSV columns: https://github.com/alphagov/notifications-utils/pull/87
26 lines
1.2 KiB
HTML
26 lines
1.2 KiB
HTML
<div class="column-two-thirds">
|
|
{{ template.rendered }}
|
|
</div>
|
|
<div class="column-one-third">
|
|
{% if template._template.archived %}
|
|
<div class="message-updated-at">
|
|
This template was deleted<br/>{{ template._template.updated_at|format_date_normal }}
|
|
</div>
|
|
{% else %}
|
|
<div class="message-use-links{% if show_title %}-with-title{% endif %}">
|
|
{% if current_user.has_permissions(permissions=['send_texts', 'send_emails', 'send_letters']) %}
|
|
<a href="{{ url_for(".send_messages", service_id=current_service.id, template_id=template.id) }}" class="primary">
|
|
Upload recipients
|
|
</a>
|
|
<a href="{{ url_for(".send_test", service_id=current_service.id, template_id=template.id) }}">
|
|
Send yourself a test
|
|
</a>
|
|
{% endif %}
|
|
{% if current_user.has_permissions(permissions=['manage_templates'], admin_override=True) %}
|
|
<a href="{{ url_for(".edit_service_template", service_id=current_service.id, template_id=template.id) }}">Edit template</a>
|
|
{% endif %}
|
|
<a href="{{ url_for(".send_from_api", service_id=current_service.id, template_id=template.id) }}">API info</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|