mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 05:08:25 -04:00
Utils is better structured to handle the logic of what thing to show for what template type, especially now that what we show for different template types in different contexts has diverged significantly. See https://github.com/alphagov/notifications-utils/commit/6b39c1a for an example of this code moving into utils Depends on and implements: https://github.com/alphagov/notifications-utils/pull/84 The main reason for doing this is to get Paul’s fix for the misaligned CSV columns: https://github.com/alphagov/notifications-utils/pull/87
28 lines
805 B
HTML
28 lines
805 B
HTML
{% extends "withnav_template.html" %}
|
||
{% from "components/page-footer.html" import page_footer %}
|
||
{% from "components/textbox.html" import textbox %}
|
||
|
||
{% block page_title %}
|
||
{{ template.name }} – GOV.UK Notify
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
|
||
<h1 class="heading-large">{{ template.name }}</h1>
|
||
|
||
<div class="grid-row">
|
||
{% with show_title=False, expanded=True %}
|
||
{% include 'views/templates/_template.html' %}
|
||
{% endwith %}
|
||
</div>
|
||
|
||
{{ page_footer(
|
||
secondary_link=url_for('.choose_template', service_id=current_service.id, template_type=template.template_type),
|
||
secondary_link_text='All {} templates'.format(
|
||
'email' if 'email' == template.template_type else 'text message' if 'sms' == template.template_type else 'letter'
|
||
)
|
||
) }}
|
||
|
||
{% endblock %}
|