mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
The same `.html` file is shared between adding a template and editing a template. The page heading needs to be contextual to the URL, either ‘add’ or ‘edit’. Somewhere along the way this got lost; this commit reinstates it.
43 lines
1.3 KiB
HTML
43 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 }} text message template – GOV.UK Notify
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<h1 class="heading-large">
|
||
{{ heading_action }} text message template
|
||
</h1>
|
||
|
||
<form method="post">
|
||
<div class="grid-row">
|
||
<div class="column-two-thirds">
|
||
{{ textbox(form.name, width='1-1') }}
|
||
</div>
|
||
<div class="column-two-thirds">
|
||
{{ textbox(form.template_content, highlight_tags=True, width='1-1') }}
|
||
</div>
|
||
<div class="column-one-third">
|
||
<label for='template_content' class='edit-template-placeholder-hint'>
|
||
<p>
|
||
Add personalisation with double brackets, eg Dear ((name))
|
||
</p>
|
||
<p>
|
||
You'll have to add the real data when you send a message.
|
||
</p>
|
||
</label>
|
||
</div>
|
||
</div>
|
||
{{ 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'
|
||
) }}
|
||
</form>
|
||
|
||
|
||
{% endblock %}
|