mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-06 06:20:53 -04:00
In pages specific to a service (e.g. dashboard and sub pages) the title needs to distinguish which service it applies to. This is mainly to give context to screen reader users who could be managing multiple services. Implementing this uses template inheritance: `page_title` includes `per_page_title` includes `service_page_title` ‘GOV.UK Notify’ is inserted into every page title. Pages that set `service_page_title` get the service name inserted too.
43 lines
1.6 KiB
HTML
43 lines
1.6 KiB
HTML
{% extends "withnav_template.html" %}
|
||
{% from "components/textbox.html" import textbox %}
|
||
{% from "components/page-footer.html" import page_footer %}
|
||
{% from "components/radios.html" import radios %}
|
||
|
||
{% block service_page_title %}
|
||
{{ heading_action }} email template
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<h1 class="heading-large">
|
||
{{ heading_action }} email template
|
||
</h1>
|
||
|
||
<form method="post">
|
||
<div class="grid-row">
|
||
<div class="column-three-quarters">
|
||
{{ textbox(form.name, width='1-1', hint='Your recipients won’t see this', rows=10) }}
|
||
{{ textbox(form.subject, width='1-1', highlight_tags=True, rows=2) }}
|
||
</div>
|
||
<div class="column-three-quarters">
|
||
{{ textbox(form.template_content, highlight_tags=True, width='1-1', rows=8) }}
|
||
{% if current_user.has_permissions([], admin_override=True) %}
|
||
{{ radios(form.process_type) }}
|
||
{% endif %}
|
||
{{ page_footer(
|
||
'Save',
|
||
delete_link=url_for('.delete_service_template', service_id=current_service.id, template_id=template_id) if template_id or None,
|
||
delete_link_text='Delete this template'
|
||
) }}
|
||
</div>
|
||
<aside class="column-whole">
|
||
{% include "partials/templates/guidance-formatting.html" %}
|
||
{% include "partials/templates/guidance-personalisation.html" %}
|
||
{% include "partials/templates/guidance-optional-content.html" %}
|
||
{% include "partials/templates/guidance-links.html" %}
|
||
</aside>
|
||
</div>
|
||
</form>
|
||
|
||
{% endblock %}
|