Files
notifications-admin/app/templates/views/organizations/index.html
T

42 lines
1.3 KiB
HTML
Raw Normal View History

2020-04-23 11:08:43 +01:00
{% extends "views/platform-admin/_base_template.html" %}
2019-03-21 11:22:53 +00:00
{% from "components/live-search.html" import live_search %}
2023-08-30 11:07:38 -04:00
{% from "components/components/button/macro.njk" import usaButton %}
2018-02-08 15:41:31 +00:00
{% block per_page_title %}
2023-01-05 21:33:15 -05:00
Organizations
2018-02-08 15:41:31 +00:00
{% endblock %}
2020-04-23 11:08:43 +01:00
{% block platform_admin_content %}
2023-08-16 12:49:36 -04:00
<h1 class="font-body-2xl">Organizations</h1>
2020-04-23 11:08:43 +01:00
{{ live_search(target_selector='.browse-list-item', show=True, form=search_form, label='Search by name') }}
2020-04-23 11:08:43 +01:00
<nav class="browse-list">
<ul>
2023-07-12 12:09:44 -04:00
{% for org in organizations|sort %}
2020-04-23 11:08:43 +01:00
<li class="browse-list-item">
2023-08-08 16:19:17 -04:00
<a href="{{ url_for('main.organization_dashboard', org_id=org.id) }}" class="usa-link">{{ org.name }}</a>
{% if not org.active %}
<span class="table-field-status-default heading-medium">- archived</span>
{% endif %}
2020-04-23 11:08:43 +01:00
<p class="browse-list-hint">
{{ org.count_of_live_services }}
live service{% if org.count_of_live_services != 1 %}s{% endif %}
</p>
</li>
{% endfor %}
</ul>
</nav>
2020-04-23 11:08:43 +01:00
<div class="js-stick-at-bottom-when-scrolling">
2023-08-30 11:07:38 -04:00
{{ usaButton({
2020-04-23 11:08:43 +01:00
"element": "a",
2022-12-20 09:44:33 -05:00
"text": "New organization",
2023-07-12 12:09:44 -04:00
"href": url_for('main.add_organization'),
2020-04-23 11:08:43 +01:00
"classes": "govuk-button--secondary"
}) }}
</div>
{% endblock %}