mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-27 13:51:12 -05:00
The layout for the platform admin base template needed to be changed so that the back link appears in the same place as before. Previously, the left hand nav was inside `<main>`, but that did not need to be and was inconsistent with other pages, so has been taken out.
52 lines
2.2 KiB
HTML
52 lines
2.2 KiB
HTML
{% extends "withoutnav_template.html" %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
{% block main %}
|
|
<div class="govuk-width-container {{ mainClasses }}">
|
|
<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>
|
|
<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">
|
|
{% block backLink %}{% endblock %}
|
|
<main class="govuk-main-wrapper column-main govuk-!-padding-top-0 govuk-!-padding-bottom-0" id="main-content" role="main">
|
|
{% block content %}
|
|
{% include 'flash_messages.html' %}
|
|
{% block platform_admin_content %}{% endblock %}
|
|
{% endblock %}
|
|
</main>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|