Files
notifications-admin/app/templates/views/platform-admin/_base_template.html
Katie Smith 0b9f1053b3 Add backLink block to templates
This will be used to put the back link in, since it it is before the
`<main>` tag. We could have used the `beforeContent` block directly, but
that sometimes already has content in - this means it's not clear when
you also need to use `super()` inside the block and when you don't.
2021-08-03 11:28:15 +01:00

50 lines
1.9 KiB
HTML

{% extends "withoutnav_template.html" %}
{% from "components/page-footer.html" import page_footer %}
{% block beforeContent %}
<div class="navigation-service">
<div class="navigation-service-name govuk-!-font-weight-bold">
Platform admin
</div>
<a href="{{ url_for('main.choose_account') }}" class="govuk-link govuk-link--no-visited-state navigation-service-switch">Switch service</a>
</div>
{% block backLink %}{% endblock %}
{% endblock %}
{% block content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-one-quarter">
<nav class="navigation">
{% for link_text, url in [
('Summary', url_for('main.platform_admin')),
('Live services', url_for('main.live_services')),
('Trial mode services', url_for('main.trial_services')),
('Organisations', url_for('main.organisations')),
('Providers', url_for('main.view_providers')),
('Reports', url_for('main.platform_admin_reports')),
('Email branding', url_for('main.email_branding')),
('Letter branding', url_for('main.letter_branding')),
('Inbound SMS numbers', url_for('main.inbound_sms_admin')),
('Find services by name', url_for('main.find_services_by_name')),
('Find users by email', url_for('main.find_users_by_email')),
('Email complaints', url_for('main.platform_admin_list_complaints')),
('Returned letters', url_for('main.platform_admin_returned_letters')),
('Clear cache', url_for('main.clear_cache')),
] %}
<li>
<a class="govuk-link govuk-link--no-visited-state" href="{{ url }}">
{{ link_text }}
</a>
</li>
{% endfor %}
</nav>
</div>
<div class="govuk-grid-column-three-quarters column-main">
{% include 'flash_messages.html' %}
{% block platform_admin_content %}{% endblock %}
</div>
</div>
{% endblock %}