mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-18 17:34:34 -05: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.
108 lines
2.5 KiB
HTML
108 lines
2.5 KiB
HTML
{% extends "withoutnav_template.html" %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
{% from "components/table.html" import list_table, field %}
|
|
|
|
{% block service_page_title %}
|
|
Service and API key history
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<h1 class="heading-large">
|
|
{{ "Service and API key history" }}
|
|
</h1>
|
|
|
|
<div class="grid-row">
|
|
{% call(item, row_number) list_table(
|
|
services,
|
|
caption="Service history",
|
|
field_headings=['ID','Name','Created at','Updated at','Active','Message limit','Restricted','Created by id']
|
|
)%}
|
|
{% call field() %}
|
|
{{item.id}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.name}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.created_at}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.updated_at}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.active}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.message_limit}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.restricted}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.created_by_id}}
|
|
{% endcall %}
|
|
|
|
{% endcall %}
|
|
|
|
</div>
|
|
|
|
|
|
<div class="grid-row">
|
|
{% call(item, row_number) list_table(
|
|
api_keys,
|
|
caption="API key history",
|
|
field_headings=['ID','Name','Service ID','Exiry date','Created at','Updated at','Created by id']
|
|
)%}
|
|
{% call field() %}
|
|
{{item.id}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.name}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.service_id}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.expiry_date}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.created_at}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.updated_at}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.created_by_id}}
|
|
{% endcall %}
|
|
|
|
{% endcall %}
|
|
|
|
</div
|
|
|
|
<div class="grid-row">
|
|
|
|
{% call(item, row_number) list_table(
|
|
events,
|
|
caption="Events",
|
|
field_headings=['ID','Event type','User ID','IP Address','Event data']
|
|
)%}
|
|
{% call field() %}
|
|
{{item.id}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.event_type}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.data.user_id}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.data.ip_address}}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{item.data}}
|
|
{% endcall %}
|
|
{% endcall %}
|
|
</div>
|
|
{% endblock %}
|