From 6f13d722610caca3014e14edef359883ac7a5bfc Mon Sep 17 00:00:00 2001 From: Josako Date: Tue, 14 May 2024 08:29:13 +0200 Subject: [PATCH] Prullen in de marge --- eveai_app/templates/macros.html | 51 +++++++++++++++++++++++++++++++ eveai_app/views/document_views.py | 3 +- 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/eveai_app/templates/macros.html b/eveai_app/templates/macros.html index cd6a7ea..1f9dd9c 100644 --- a/eveai_app/templates/macros.html +++ b/eveai_app/templates/macros.html @@ -146,6 +146,57 @@ {% endmacro %} +{% macro render_seamless_table(headers, rows) %} +{% macro render_integrated_table(headers, data) %} +
+ + + + {% for header in headers %} + + {% endfor %} + + + + {% for entry in data %} + {% if entry.is_group and entry.sub_rows %} + {% for sub_row in entry.sub_rows %} + + {% for cell in sub_row %} + {% if cell %} + + {% else %} + + {% endif %} + {% endfor %} + + {% endfor %} + {% else %} + + {% for cell in entry %} + + {% endfor %} + + {% endif %} + {% endfor %} + +
{{ header }}
+ {% if cell.type == 'text' %} +

{{ cell.value }}

+ {% else %} + {{ cell.value }} + {% endif %} +
+ {% if cell.type == 'text' %} +

{{ cell.value }}

+ {% else %} + {{ cell.value }} + {% endif %} +
+
+{% endmacro %} +{% endmacro %} + {% macro render_pagination(pagination, endpoint) %}