A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
add search field on admin start page and module start page
Enno Lohmeier5db49a371007
diff --git a/src/documents/templates/admin/index.html b/src/documents/templates/admin/index.htmlindex 67c7dbeb1..410c9e684 100644--- a/src/documents/templates/admin/index.html+++ b/src/documents/templates/admin/index.html@@ -4,6 +4,24 @@{% 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 #}{# that the log entries aren't limited to the current user #}{% block sidebar %}