mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
This is a link not a button because: - it’s less prominent—delete is an infrequent action - it’s a two-step process, and only the second part changes any data (so it has a button)
26 lines
702 B
HTML
26 lines
702 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(form.template_name) }}
|
|
{{ textbox(form.template_body, highlight_tags=True) }}
|
|
{{ page_footer(
|
|
'Save',
|
|
delete_link=url_for('.delete_template', service_id=service_id, template_id=template_id) if template_id or None,
|
|
back_link=url_for('.manage_templates', service_id=service_id),
|
|
back_link_text='Back to templates'
|
|
) }}
|
|
</form>
|
|
|
|
|
|
{% endblock %}
|