From 7de7f8df86bbc0c2355e6d7a5f8f3251b8392dc7 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Thu, 28 Aug 2025 11:55:58 -0500 Subject: [PATCH] Pager fixes and non-leaky session behavior. --- crudkit/html/templates/crudkit/_macros.html | 28 +++++++++++--- crudkit/html/ui_fragments.py | 42 ++++++++++++++++++--- 2 files changed, 59 insertions(+), 11 deletions(-) diff --git a/crudkit/html/templates/crudkit/_macros.html b/crudkit/html/templates/crudkit/_macros.html index 1bcdfd4..f8c504e 100644 --- a/crudkit/html/templates/crudkit/_macros.html +++ b/crudkit/html/templates/crudkit/_macros.html @@ -1,4 +1,5 @@ {% macro options(items, value_attr="id", label_path="name", getp=None) -%} + {%- for obj in items -%} {%- endfor -%} @@ -32,14 +33,31 @@ {%- endmacro %} {% macro pager(model, page, pages, per_page, sort, filters, fields_csv) -%} -