mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 02:23:19 -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.
68 lines
2.1 KiB
HTML
68 lines
2.1 KiB
HTML
{% extends "withnav_template.html" %}
|
||
{% from "components/banner.html" import banner_wrapper %}
|
||
{% from "components/page-footer.html" import page_footer %}
|
||
{% from "components/table.html" import list_table, text_field, index_field, index_field_heading %}
|
||
{% from "components/list.html" import list_of_placeholders %}
|
||
|
||
{% block service_page_title %}
|
||
Confirm changes
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<h1 class="heading-large">Confirm changes</h1>
|
||
|
||
<div class="bottom-gutter">
|
||
{% if template_change.placeholders_removed %}
|
||
<p>
|
||
You removed {{ list_of_placeholders(template_change.placeholders_removed) }}
|
||
</p>
|
||
{% endif %}
|
||
{% if template_change.placeholders_added %}
|
||
<p>
|
||
You added {{ list_of_placeholders(template_change.placeholders_added) }}
|
||
</p>
|
||
{% endif %}
|
||
</div>
|
||
|
||
<form method="post">
|
||
<input type="hidden" name="name" value="{{ new_template.name }}" />
|
||
<input type="hidden" name="subject" value="{{ new_template.subject or '' }}" />
|
||
<input type="hidden" name="template_content" value="{{ new_template.content }}" />
|
||
<input type="hidden" name="template_id" value="{{ new_template.id }}" />
|
||
|
||
<input type="hidden" name="confirm" value="true" />
|
||
{{ page_footer(
|
||
'Save changes to template',
|
||
back_link=url_for(".edit_service_template", service_id=current_service.id, template_id=new_template.id),
|
||
back_link_text="Back"
|
||
) }}
|
||
</form>
|
||
|
||
<p>
|
||
When you send messages using this template you’ll need
|
||
{{ new_template.placeholders|length + 1 }} columns of data:
|
||
</p>
|
||
|
||
<div class="spreadsheet">
|
||
{% call(item, row_number) list_table(
|
||
example_rows,
|
||
caption="Example",
|
||
caption_visible=False,
|
||
field_headings=[''] + column_headings
|
||
) %}
|
||
{% if 1 == row_number %}
|
||
{{ index_field('') }}
|
||
{% else %}
|
||
{{ index_field(row_number - 1) }}
|
||
{% endif %}
|
||
{% for column in item %}
|
||
{{ text_field(column) }}
|
||
{% endfor %}
|
||
{% endcall %}
|
||
</div>
|
||
|
||
<p>Developers, you’ll need to update your API calls</p>
|
||
|
||
{% endblock %}
|