mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Submit form was - a confusing name in itself - not descriptive, because it also has an optional ‘back’ link This commit also puts this component in as many pages as possible, stripping out any hard-coded buttons and links. It replaces any usage of buttons for ‘back’, because these are links, not buttons (ie they don’t change any data).
25 lines
675 B
HTML
25 lines
675 B
HTML
{% extends "withnav_template.html" %}
|
|
{% from "components/textbox.html" import textbox %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
{% block page_title %}
|
|
GOV.UK Notify | Edit template
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<h1 class="heading-xlarge">{{ h1 }}</h1>
|
|
|
|
<form method="post">
|
|
{{ textbox(name='template_name', label='Template name', value=template_name) }}
|
|
{{ textbox(name='template_body', label='Message', small=False, value=template_body, highlight_tags=True) }}
|
|
{{ page_footer(
|
|
'Save and continue',
|
|
back_link=url_for('.dashboard'),
|
|
back_link_text='Back to manage templates'
|
|
) }}
|
|
</form>
|
|
|
|
|
|
{% endblock %}
|