mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
This is a link not a button because: - it’s less prominent—delete is an infrequent action - it’s a two-step process, and only the second part changes any data (so it has a button)
41 lines
1.2 KiB
HTML
41 lines
1.2 KiB
HTML
{% extends "withnav_template.html" %}
|
|
{% from "components/sms-message.html" import sms_message %}
|
|
{% from "components/email-message.html" import email_message %}
|
|
{% from "components/browse-list.html" import browse_list %}
|
|
|
|
{% block page_title %}
|
|
GOV.UK Notify | Manage templates
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<div class="grid-row">
|
|
<div class="column-two-thirds">
|
|
|
|
<h1 class="heading-xlarge">Templates</h1>
|
|
|
|
<p>
|
|
<a href="{{ url_for('.add_template', service_id=service_id) }}">Create new template</a>
|
|
|
|
{% for template in templates %}
|
|
{% if template.type == 'sms' %}
|
|
{{ sms_message(
|
|
template.body,
|
|
name=template.name,
|
|
edit_link=url_for('.edit_template', service_id=service_id, template_id=loop.index)
|
|
) }}
|
|
{% elif template.type == 'email' %}
|
|
{{ email_message(
|
|
template.subject,
|
|
template.body,
|
|
name=template.name,
|
|
edit_link=url_for('.edit_template', service_id=service_id, template_id=loop.index)
|
|
) }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|