mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
This commit makes the ‘how to do placeholders’ box part of the tour, with the same blue background. It also adds some Javascript enhancement so that: - it responds to the contents of the message template - has a ‘show me’ link which inserts ‘Dear ((name))’ into the template contents textbox We’ve found that this has helped people understnad what placeholders are, and how to do them.
41 lines
1.3 KiB
HTML
41 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') }}
|
||
{{ textbox(form.subject, width='1-1') }}
|
||
</div>
|
||
<div class="column-two-thirds">
|
||
{{ textbox(form.template_content, highlight_tags=True, width='1-1') }}
|
||
{{ page_footer(
|
||
'Save',
|
||
delete_link=url_for('.delete_service_template', service_id=service_id, template_id=template_id) if template_id or None,
|
||
delete_link_text='Delete this template'
|
||
) }}
|
||
</div>
|
||
<div class="column-one-third">
|
||
<label for='template_content' class='placeholder-hint'>
|
||
<div class="banner-mode" id="placeholder-hint" aria-live="polite">
|
||
<p>Add fields using ((double brackets))</p>
|
||
</div>
|
||
</label>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
|
||
|
||
{% endblock %}
|