From 0c2a9847cba586179211366a07146bce6e3036f3 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Wed, 27 Aug 2025 16:06:43 -0500 Subject: [PATCH] Got much of the table behavior working with CRUDKit. --- crudkit/html/templates/crudkit/_macros.html | 18 +++++------- crudkit/html/templates/crudkit/form.html | 2 +- crudkit/html/templates/crudkit/lis.html | 2 +- crudkit/html/templates/crudkit/options.html | 2 +- crudkit/html/templates/crudkit/pager.html | 2 ++ crudkit/html/templates/crudkit/row.html | 2 +- crudkit/html/templates/crudkit/rows.html | 3 +- crudkit/html/ui_fragments.py | 15 ++++++---- .../templates/fragments/_table_fragment.html | 29 +++++++------------ inventory/templates/layout.html | 2 +- inventory/templates/table.html | 4 +-- 11 files changed, 38 insertions(+), 43 deletions(-) create mode 100644 crudkit/html/templates/crudkit/pager.html diff --git a/crudkit/html/templates/crudkit/_macros.html b/crudkit/html/templates/crudkit/_macros.html index f713e81..1bcdfd4 100644 --- a/crudkit/html/templates/crudkit/_macros.html +++ b/crudkit/html/templates/crudkit/_macros.html @@ -31,17 +31,15 @@ {%- endfor -%} {%- endmacro %} -{% macro pager(model, page, pages, per_page, sort, filters) -%} -