forked from mirrors/bookwyrm
Updates user admin filters
This commit is contained in:
parent
488d702473
commit
f42e863434
4 changed files with 30 additions and 2 deletions
7
bookwyrm/templates/settings/reports/report_filters.html
Normal file
7
bookwyrm/templates/settings/reports/report_filters.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% extends 'snippets/filters_panel/filters_panel.html' %}
|
||||
|
||||
{% block filter_fields %}
|
||||
{% include 'settings/users/username_filter.html' %}
|
||||
{% include 'directory/community_filter.html' %}
|
||||
{% include 'settings/users/server_filter.html' %}
|
||||
{% endblock %}
|
|
@ -30,7 +30,7 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
{% include 'settings/users/user_admin_filters.html' %}
|
||||
{% include 'settings/reports/report_filters.html' %}
|
||||
|
||||
<div class="block">
|
||||
{% if not reports %}
|
||||
|
|
16
bookwyrm/templates/settings/users/email_filter.html
Normal file
16
bookwyrm/templates/settings/users/email_filter.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% extends 'snippets/filters_panel/filter_field.html' %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block filter %}
|
||||
<label class="label" for="id_email">{% trans "Email" %}</label>
|
||||
<div class="control">
|
||||
<input
|
||||
type="text"
|
||||
class="input"
|
||||
name="email"
|
||||
value="{{ request.GET.email|default:'' }}"
|
||||
id="id_email" placeholder="user@email.com"
|
||||
>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
{% block filter_fields %}
|
||||
{% include 'settings/users/username_filter.html' %}
|
||||
{% include 'directory/community_filter.html' %}
|
||||
|
||||
{% if status != "local" %}
|
||||
{% include 'settings/users/server_filter.html' %}
|
||||
{% else %}
|
||||
{% include 'settings/users/email_filter.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue