mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-18 05:30:21 -04:00
We had some cases where an H3 heading followed an H1. This was flagged as something to change in the accessibility report.
99 lines
3.9 KiB
HTML
99 lines
3.9 KiB
HTML
{% extends "withnav_template.html" %}
|
|
{% from "components/tick-cross.html" import tick_cross %}
|
|
{% from "components/live-search.html" import live_search %}
|
|
{% from "components/button/macro.njk" import govukButton %}
|
|
|
|
{% block service_page_title %}
|
|
Team members
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<h1 class="heading-medium">
|
|
Team members
|
|
</h1>
|
|
|
|
{% if show_search_box %}
|
|
<div data-module="autofocus">
|
|
{{ live_search(target_selector='.user-list-item', show=True, form=form) }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="user-list">
|
|
{% for user in users %}
|
|
<div class="user-list-item">
|
|
<h2 class="user-list-item-heading" title="{{ user.email_address }}">
|
|
{%- if user.name -%}
|
|
<span class="heading-small live-search-relevant">{{ user.name }}</span> 
|
|
{%- endif -%}
|
|
<span class="hint">
|
|
{%- if user.status == 'pending' -%}
|
|
<span class="live-search-relevant">{{ user.email_address }}</span> (invited)
|
|
{%- elif user.status == 'cancelled' -%}
|
|
<span class="live-search-relevant">{{ user.email_address }}</span> (cancelled invite)
|
|
{%- elif user.id == current_user.id -%}
|
|
<span class="live-search-relevant">(you)</span>
|
|
{% else %}
|
|
<span class="live-search-relevant">{{ user.email_address }}</span>
|
|
{% endif %}
|
|
</span>
|
|
</h2>
|
|
<ul class="tick-cross-list govuk-grid-row">
|
|
<div class="tick-cross-list-permissions govuk-grid-column-three-quarters">
|
|
{% for permission, label in permissions %}
|
|
{{ tick_cross(
|
|
user.has_permission_for_service(current_service.id, permission),
|
|
label
|
|
) }}
|
|
{% endfor %}
|
|
{# only show if the service has folders #}
|
|
{% if current_service.all_template_folders %}
|
|
<div class="tick-cross-list-hint">
|
|
{% set folder_count = user.template_folders_for_service(current_service) | length %}
|
|
|
|
{% if folder_count == 0 %}
|
|
Cannot see any folders
|
|
{% elif folder_count != current_service.all_template_folders | length %}
|
|
Can see {{ folder_count }} folder{% if folder_count > 1 %}s{% endif %}
|
|
{% else %}
|
|
Can see all folders
|
|
{% endif%}
|
|
</div>
|
|
{% endif %}
|
|
{% if current_service.has_permission('email_auth') %}
|
|
<div class="tick-cross-list-hint">
|
|
{% if user.auth_type == 'sms_auth' %}
|
|
Signs in with a text message code
|
|
{% else %}
|
|
Signs in with an email link
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% if current_user.has_permissions('manage_service') %}
|
|
<li class="tick-cross-list-edit-link">
|
|
{% if user.status == 'pending' %}
|
|
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.cancel_invited_user', service_id=current_service.id, invited_user_id=user.id)}}">Cancel invitation</a>
|
|
{% elif user.state == 'active' and current_user.id != user.id %}
|
|
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.edit_user_permissions', service_id=current_service.id, user_id=user.id)}}">Change details</a>
|
|
{% endif %}
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% if current_user.has_permissions('manage_service') %}
|
|
<div class="js-stick-at-bottom-when-scrolling">
|
|
{{ govukButton({
|
|
"element": "a",
|
|
"text": "Invite a team member",
|
|
"href": url_for('.invite_user', service_id=current_service.id),
|
|
"classes": "govuk-button--secondary"
|
|
}) }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|