mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
add search field on admin start page and module start page
This commit is contained in:
parent
f3654310bd
commit
5db49a3710
@ -4,6 +4,24 @@
|
|||||||
{% load i18n static %}
|
{% load i18n static %}
|
||||||
|
|
||||||
|
|
||||||
|
{# This block adds a search form on the admin start page and on the module start page so that #}
|
||||||
|
{# the user can quickly search for documents #}
|
||||||
|
{% block pretitle %}
|
||||||
|
<div>
|
||||||
|
<h3>{% trans 'Search documents' %}</h3>
|
||||||
|
|
||||||
|
<div id="toolbar"><form id="changelist-search" method="get" action="{% url 'admin:documents_document_changelist' %}">
|
||||||
|
<div><!-- DIV needed for valid HTML -->
|
||||||
|
<label for="searchbar"><img src="{% static "admin/img/search.svg" %}" alt="Search"></label>
|
||||||
|
<input type="text" size="40" name="q" value="" id="searchbar" autofocus="">
|
||||||
|
<input type="submit" value="{% trans 'Search' %}">
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
{# This whole block is here just to override the `get_admin_log` line so #}
|
{# This whole block is here just to override the `get_admin_log` line so #}
|
||||||
{# that the log entries aren't limited to the current user #}
|
{# that the log entries aren't limited to the current user #}
|
||||||
{% block sidebar %}
|
{% block sidebar %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user