mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-08 07:21:13 -04:00
There are some common questions that keep coming up when users are editing or creating templates. This commit adds a pattern for sections of guidance which can be shown/hidden. It then modifies the guidance as follows. Change: - guidance about placeholders; give an example about what to do and what not to do (because the mistake we keep seeing people make is putting the thing itself, not the name of the thing) Add (pretty basic at the moment but a need for these has come out of research): - guidance about links - guidance about message length for text messages
38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
{% extends "withnav_template.html" %}
|
||
{% from "components/textbox.html" import textbox %}
|
||
{% from "components/page-footer.html" import page_footer %}
|
||
|
||
{% block page_title %}
|
||
{{ heading_action }} email template – GOV.UK Notify
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<h1 class="heading-large">
|
||
{{ heading_action }} email template
|
||
</h1>
|
||
|
||
<form method="post">
|
||
<div class="grid-row">
|
||
<div class="column-two-thirds">
|
||
{{ textbox(form.name, width='1-1', hint='Your recipients won’t see this', rows=10) }}
|
||
{{ textbox(form.subject, width='1-1', highlight_tags=True, rows=2) }}
|
||
</div>
|
||
<div class="column-two-thirds">
|
||
{{ textbox(form.template_content, highlight_tags=True, width='1-1', rows=8) }}
|
||
{{ page_footer(
|
||
'Save',
|
||
delete_link=url_for('.delete_service_template', service_id=current_service.id, template_id=template_id) if template_id or None,
|
||
delete_link_text='Delete this template'
|
||
) }}
|
||
</div>
|
||
<aside class="column-one-third">
|
||
<h2 style="margin: 0 0 5px 0;">Help</h2>
|
||
{% include "partials/templates/guidance-personalisation.html" %}
|
||
{% include "partials/templates/guidance-links.html" %}
|
||
</aside>
|
||
</div>
|
||
</form>
|
||
|
||
{% endblock %}
|