2015-12-14 16:53:07 +00:00
|
|
|
|
{% extends "withnav_template.html" %}
|
2015-12-20 00:00:01 +00:00
|
|
|
|
{% from "components/textbox.html" import textbox %}
|
2016-01-07 20:11:22 +00:00
|
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
2015-12-09 10:52:09 +00:00
|
|
|
|
|
|
|
|
|
|
{% block page_title %}
|
2016-02-08 09:23:51 +00:00
|
|
|
|
{{ h1 }} – GOV.UK Notify
|
2015-12-09 10:52:09 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
2015-12-14 16:53:07 +00:00
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
|
2016-02-02 14:05:45 +00:00
|
|
|
|
<h1 class="heading-large">{{ h1 }}</h1>
|
2015-12-09 10:52:09 +00:00
|
|
|
|
|
2016-02-01 16:57:29 +00:00
|
|
|
|
<form method="post">
|
2016-02-18 07:44:50 +00:00
|
|
|
|
<div class="grid-row">
|
|
|
|
|
|
<div class="column-two-thirds">
|
|
|
|
|
|
{{ textbox(form.name, width='1-1') }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="grid-row">
|
|
|
|
|
|
<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'>
|
|
|
|
|
|
Add placeholders using double brackets, eg Your thing
|
|
|
|
|
|
is due on ((date))
|
|
|
|
|
|
</label>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2016-02-01 16:57:29 +00:00
|
|
|
|
{{ 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',
|
2016-02-05 10:24:43 +00:00
|
|
|
|
secondary_link=url_for('.manage_service_templates', service_id=service_id),
|
|
|
|
|
|
secondary_link_text='Back to templates'
|
2016-02-01 16:57:29 +00:00
|
|
|
|
) }}
|
|
|
|
|
|
</form>
|
2015-12-09 10:52:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|