2018-07-06 11:10:14 +01:00
|
|
|
{% extends "views/platform-admin/_base_template.html" %}
|
|
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
2018-09-19 12:39:36 +01:00
|
|
|
{% from "components/form.html" import form_wrapper %}
|
2023-08-30 11:07:38 -04:00
|
|
|
{% from "components/components/button/macro.njk" import usaButton %}
|
2018-07-06 11:10:14 +01:00
|
|
|
|
|
|
|
|
{% block per_page_title %}
|
2018-07-10 17:24:20 +01:00
|
|
|
Find users by email
|
2018-07-06 11:10:14 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block platform_admin_content %}
|
|
|
|
|
|
2023-08-16 12:49:36 -04:00
|
|
|
<h1 class="font-body-2xl">
|
2018-07-10 17:24:20 +01:00
|
|
|
Find users by email
|
2018-07-06 11:10:14 +01:00
|
|
|
</h1>
|
|
|
|
|
|
2018-09-19 12:39:36 +01:00
|
|
|
|
|
|
|
|
{% call form_wrapper(
|
|
|
|
|
action=url_for('.find_users_by_email'),
|
2023-08-17 15:13:26 -04:00
|
|
|
class='usa-search margin-bottom-4'
|
2018-09-19 12:39:36 +01:00
|
|
|
) %}
|
2020-08-07 10:16:24 +01:00
|
|
|
{{ form.search(param_extensions={
|
|
|
|
|
"label": {"text": "Find users by email, or by partial email"}
|
|
|
|
|
}) }}
|
2018-07-06 11:10:14 +01:00
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
2023-08-30 11:07:38 -04:00
|
|
|
{{ usaButton({
|
2020-01-30 11:44:20 +00:00
|
|
|
"text": "Search",
|
|
|
|
|
"classes": "search-form__button"
|
|
|
|
|
}) }}
|
2018-09-19 12:39:36 +01:00
|
|
|
{% endcall %}
|
2018-07-06 11:10:14 +01:00
|
|
|
|
2018-09-19 12:39:36 +01:00
|
|
|
{% call form_wrapper(id='search-form' ) %}
|
2018-07-06 11:10:14 +01:00
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
2018-09-19 12:39:36 +01:00
|
|
|
{% endcall %}
|
2018-07-06 11:10:14 +01:00
|
|
|
|
2018-07-06 16:16:21 +01:00
|
|
|
{% if users_found %}
|
|
|
|
|
<nav class="browse-list">
|
|
|
|
|
<ul>
|
|
|
|
|
{% for user in users_found %}
|
|
|
|
|
<li class="browse-list-item">
|
2023-08-08 16:19:17 -04:00
|
|
|
<a href="{{url_for('.user_information', user_id=user.id)}}" class="usa-link browse-list-link">{{ user.email_address }}</a>
|
2023-08-17 15:13:26 -04:00
|
|
|
<span> - </span>
|
|
|
|
|
<span class="browse-list-hint">{{ user.name }}</span>
|
2018-07-06 16:16:21 +01:00
|
|
|
</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
</nav>
|
|
|
|
|
{% elif users_found == [] %}
|
2018-07-16 15:04:03 +01:00
|
|
|
<p class="browse-list-hint">No users found.</p>
|
2018-07-06 16:16:21 +01:00
|
|
|
{% endif %}
|
2018-07-06 11:10:14 +01:00
|
|
|
{% endblock %}
|