Add some internal navigation for platform admin

There are way too many links in the top nav now (when you’re using the
site as a platform admin).

And how often are you going to look at the letter jobs page really?

This commit adds some internal navigation for the platform admin area of
the platform, copying the style that works for navigating a single
service.
This commit is contained in:
Chris Hill-Scott
2017-07-21 10:30:55 +01:00
parent 26b333512c
commit cfc572d4f7
5 changed files with 125 additions and 100 deletions

View File

@@ -0,0 +1,34 @@
{% extends "withoutnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/checkbox.html" import checkbox %}
{% from "components/page-footer.html" import page_footer %}
{% block maincolumn_content %}
<div class="grid-row">
<div class="column-one-quarter">
<p class="heading-medium">
Platform admin
</p>
<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')),
('Providers', url_for('main.view_providers')),
('Letter jobs', url_for('main.letter_jobs'))
] %}
<li>
<a href="{{ url }}">
{{ link_text }}
</a>
</li>
{% endfor %}
</nav>
</div>
<div class="column-three-quarters">
{% block platform_admin_content %}{% endblock %}
</div>
</div>
{% endblock %}