mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-24 04:10:57 -05:00
This will stop us repeatedly forgetting to add `novalidate` and `autocomplete='off'` to our forms (which is how most of them are set up). It uses sensible defaults, based on how we most-commonly configure forms: - most of our forms are `post`ed (but this can be overridden) - `autocomplete` should only be enabled where it makes sense, otherwise it’s more annoying than useful (but this can be overriden) - we should never be using HTML5 form validation because our own error styles and messages are better
53 lines
1.4 KiB
HTML
53 lines
1.4 KiB
HTML
{% extends "views/platform-admin/_base_template.html" %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
{% from "components/form.html" import form_wrapper %}
|
|
|
|
{% block per_page_title %}
|
|
Find users by email
|
|
{% endblock %}
|
|
|
|
{% block platform_admin_content %}
|
|
|
|
<h1 class="heading-large">
|
|
Find users by email
|
|
</h1>
|
|
|
|
|
|
{% call form_wrapper(
|
|
action=url_for('.find_users_by_email'),
|
|
class='grid-row'
|
|
) %}
|
|
<div class="column-three-quarters">
|
|
{{ textbox(
|
|
form.search,
|
|
width='1-1',
|
|
label='Find users by email, or by partial email'
|
|
) }}
|
|
</div>
|
|
<div class="column-one-quarter align-button-with-textbox">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button type="submit" class="button">Search</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="browse-list-link">{{ user.email_address }}</a>
|
|
<p class="browse-list-hint">{{ user.name }}</p>
|
|
</li>
|
|
<hr>
|
|
{% endfor %}
|
|
</ul>
|
|
</nav>
|
|
{% elif users_found == [] %}
|
|
<p class="browse-list-hint">No users found.</p>
|
|
{% endif %}
|
|
{% endblock %}
|