From 24b6cc98fe764d73fcb09afdde56d36702c0adb9 Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Wed, 13 Aug 2025 05:46:40 +0000 Subject: [PATCH] Update web/templates/search.html --- web/templates/search.html | 66 +++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 34 deletions(-) diff --git a/web/templates/search.html b/web/templates/search.html index d5a2282..25c5b49 100644 --- a/web/templates/search.html +++ b/web/templates/search.html @@ -1,36 +1,34 @@ {% extends "base.html" %} -{% block title %}Search - Illustrations DB{% endblock %} +{% load static %} + {% block content %} -
-

Search

- {% if ran_search %} - {% if result_count and result_count > 0 %} -
Found {{ result_count }} matching entries. Opening the first match…
- {% else %} -
No results found for {{ q }} in the selected fields.
- {% endif %} - {% endif %} -

How to search: Type words or phrases (quotes for exact), use wildcards, and choose which fields to search.

-
-
-
- - -
-
- -
- {% for opt in field_options %} - - {% endfor %} -
-
-
-
- -
-
-
-
-
Total entries in database: {{ total }}
-{% endblock %} +
+

Search

+

Use wildcards: * matches many characters (e.g., *love*), ? matches one. By default we search Subject, Illustration, and Application.

+ +
+
+ + +
+ +
+ {% for f in field_options %} + + {% endfor %} +
+ +
Total entries: {{ total }}
+
+ + {% if ran_search and result_count == 0 %} +
+
No results
+
Try broadening your terms or enabling more fields above.
+
+ {% endif %} +
+{% endblock %} \ No newline at end of file