mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-01 20:25:13 -04:00
42 lines
1.7 KiB
HTML
42 lines
1.7 KiB
HTML
{% from "components/banner.html" import banner_wrapper %}
|
|
|
|
<div class="govuk-grid-column-full template-container">
|
|
{{ template|string }}
|
|
</div>
|
|
<br>
|
|
<div class="govuk-grid-column-full">
|
|
{% if template._template.archived %}
|
|
<p class="hint">
|
|
This template was deleted {{ template._template.updated_at|format_datetime_relative }}.
|
|
</p>
|
|
{% elif not current_user.has_permissions('send_messages', 'manage_api_keys', 'manage_templates', 'manage_service') or not user_has_template_permission %}
|
|
<p class="top-gutter-1-3 {% if template.template_type != 'sms' %}bottom-gutter{% endif %}">
|
|
If you need to send this
|
|
{{ 1|message_count_label(template.template_type, suffix='') }}
|
|
or edit this template, contact your manager.
|
|
</p>
|
|
{% else %}
|
|
<div class="bottom-gutter-2-3">
|
|
<div class="govuk-grid-row">
|
|
{% if current_user.has_permissions('send_messages', restrict_admin_usage=True) %}
|
|
<div class="govuk-grid-column-one-half">
|
|
<a href="{{ url_for(".set_sender", service_id=current_service.id, template_id=template.id) }}" class="govuk-link govuk-link--no-visited-state pill-separate-item">
|
|
Prepare to send<span class="govuk-visually-hidden"> a message using this template</span>
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
{% if current_user.has_permissions('manage_templates') %}
|
|
<div class="govuk-grid-column-one-half">
|
|
<a href="{{ url_for(".edit_service_template", service_id=current_service.id, template_id=template.id) }}" class="govuk-link govuk-link--no-visited-state pill-separate-item">
|
|
Edit
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<br>
|
|
<br>
|
|
|