From 625f6017a624f70c0301fe5d2e4f3d965c9b9867 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 2 Feb 2026 10:20:12 +0000 Subject: [PATCH] Add advanced case search page with filtering options and pagination --- atlas/templates/atlas/base.html | 3 + atlas/templates/atlas/case_search_page.html | 67 +++++++++++++ atlas/templates/atlas/index.html | 1 + .../atlas/partials/case_search_results.html | 28 ++++-- atlas/urls.py | 1 + atlas/views.py | 98 +++++++++++++++++++ 6 files changed, 188 insertions(+), 10 deletions(-) create mode 100644 atlas/templates/atlas/case_search_page.html diff --git a/atlas/templates/atlas/base.html b/atlas/templates/atlas/base.html index 79f044c3..8106488e 100755 --- a/atlas/templates/atlas/base.html +++ b/atlas/templates/atlas/base.html @@ -49,6 +49,9 @@
  • Normals
  • +
  • + Search Cases +
  • {% if request.user.is_staff %}
  • diff --git a/atlas/templates/atlas/case_search_page.html b/atlas/templates/atlas/case_search_page.html new file mode 100644 index 00000000..a870c63f --- /dev/null +++ b/atlas/templates/atlas/case_search_page.html @@ -0,0 +1,67 @@ +{% extends 'atlas/base.html' %} + +{% block content %} +
    +

    Search Cases

    + +
    +
    + +
    +
    + +
    + +
    + +
    + +
    + + + +
    + +
    + + Clear +
    +
    + +
    + {% include 'atlas/partials/case_search_results.html' with cases=cases recent_cases=recent_cases collection=None q=q %} + + {# pagination controls #} + {% if cases.has_other_pages %} + + {% endif %} +
    +
    +{% endblock %} diff --git a/atlas/templates/atlas/index.html b/atlas/templates/atlas/index.html index 73281016..a01c0941 100644 --- a/atlas/templates/atlas/index.html +++ b/atlas/templates/atlas/index.html @@ -68,6 +68,7 @@ hx-trigger="input delay:500ms, keyup[key=='Enter']" hx-target="#case-search-results" hx-indicator="#case-search-indicator" /> + Advanced