mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-23 01:19:27 -04:00
GOV.UK Frontend's template wraps all content in a `<main>` tag and puts it in the main column. Some of Notify's pages need to reach out of the main column (product page). Some have several blocks of navigation before the main content area. This adjusts the blocks in all the templates where this is the case so those conditions can be met.
63 lines
1.9 KiB
HTML
63 lines
1.9 KiB
HTML
{% extends "withoutnav_template.html" %}
|
|
{% from "components/live-search.html" import live_search %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
{% from "components/page-header.html" import page_header %}
|
|
|
|
{% block per_page_title %}
|
|
All organisations
|
|
{% endblock %}
|
|
|
|
{% block beforeContent %}{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<div class="navigation-service">
|
|
<div class="navigation-service-name">
|
|
|
|
</div>
|
|
<a href="{{ url_for('main.choose_account') }}" class="navigation-service-switch">Switch service</a>
|
|
</div>
|
|
|
|
<div class="grid-row top-gutter-2-3">
|
|
<div class="column-one-quarter">
|
|
<h1>
|
|
All organisations
|
|
</h1>
|
|
</div>
|
|
<div class="column-three-quarters">
|
|
|
|
{{ live_search(target_selector='.browse-list-item', show=True, form=search_form, label='Search by name') }}
|
|
|
|
<nav class="browse-list">
|
|
<ul>
|
|
{% for org in organisations %}
|
|
<li class="browse-list-item">
|
|
<a href="{{ url_for('main.organisation_dashboard', org_id=org.id) }}" class="browse-list-link">{{ org.name }}</a>
|
|
<p class="browse-list-hint">
|
|
{{ org.count_of_live_services }}
|
|
live service{% if org.count_of_live_services != 1 %}s{% endif %}
|
|
</p>
|
|
{% if not org.active %}
|
|
<span class="table-field-status-default heading-medium">- archived</span>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</nav>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="js-stick-at-bottom-when-scrolling">
|
|
<div class="grid-row">
|
|
<div class="column-one-quarter">
|
|
|
|
</div>
|
|
<div class="column-three-quarters">
|
|
<a href="{{ url_for('main.add_organisation') }}" class="button-secondary">New organisation</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|