mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-21 08:29:27 -04:00
The email pattern looked a bit shonky when displayed in a narrower column. This commit fixes it by making the email’s metadata (eg subject, from) into a table, which it sort of is. This means that it is more flexible about the size of container in which it sits.
37 lines
1.1 KiB
HTML
37 lines
1.1 KiB
HTML
{% extends "withnav_template.html" %}
|
||
{% from "components/email-message.html" import email_message %}
|
||
{% from "components/page-footer.html" import page_footer %}
|
||
{% from "components/textbox.html" import textbox %}
|
||
|
||
{% block page_title %}
|
||
Send emails – GOV.UK Notify
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<h1 class="heading-large">Send emails</h1>
|
||
|
||
<form method="POST" enctype="multipart/form-data">
|
||
|
||
{% if templates %}
|
||
<div class="grid-row">
|
||
{% for template in templates %}
|
||
<div class="column-two-thirds">
|
||
{{ email_message(template.subject, template.formatted_as_markup, name=template.name) }}
|
||
</div>
|
||
<div class="column-one-third">
|
||
<div class="sms-message-use-links">
|
||
<a href="{{ url_for(".edit_service_template", service_id=service_id, template_id=template.id) }}">Edit template</a>
|
||
</div>
|
||
</div>
|
||
{% endfor %}
|
||
</div>
|
||
{% endif %}
|
||
|
||
<p>
|
||
<a href="{{ url_for('.add_service_template', service_id=service_id, template_type='email') }}" class="button">Add a new template</a>
|
||
</p>
|
||
|
||
</form>
|
||
{% endblock %}
|