mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-16 14:19:45 -04:00
54 lines
1.6 KiB
HTML
54 lines
1.6 KiB
HTML
{% extends "views/platform-admin/_base_template.html" %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
{% from "components/form.html" import form_wrapper %}
|
|
{% from "components/components/button/macro.njk" import usaButton %}
|
|
|
|
{% block per_page_title %}
|
|
Find users by email
|
|
{% endblock %}
|
|
|
|
{% block platform_admin_content %}
|
|
|
|
<h1 class="font-body-2xl">
|
|
Find users by email
|
|
</h1>
|
|
|
|
|
|
{% call form_wrapper(
|
|
action=url_for('.find_users_by_email'),
|
|
class='usa-search margin-bottom-4'
|
|
) %}
|
|
<div class="display-flex flex-align-end gap-1 width-full">
|
|
{{ form.search(param_extensions={
|
|
"label": {"text": "Find users by email, or by partial email"},
|
|
"classes": "width-full"
|
|
}) }}
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
{{ usaButton({
|
|
"text": "Search",
|
|
"classes": "usa-button search-form__button"
|
|
}) }}
|
|
</div>
|
|
{% endcall %}
|
|
|
|
{% call form_wrapper(id='search-form' ) %}
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
{% endcall %}
|
|
|
|
{% if users_found %}
|
|
<nav class="browse-list">
|
|
<ul>
|
|
{% for user in users_found %}
|
|
<li class="browse-list-item">
|
|
<a href="{{url_for('.user_information', user_id=user.id)}}" class="usa-link browse-list-link">{{ user.email_address }}</a>
|
|
<span> - </span>
|
|
<span class="browse-list-hint">{{ user.name }}</span>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</nav>
|
|
{% elif users_found == [] %}
|
|
<p class="browse-list-hint">No users found.</p>
|
|
{% endif %}
|
|
{% endblock %}
|