From ab8119c5b8e5949dcb4b02959609540afdf22abb Mon Sep 17 00:00:00 2001 From: aronwk-aaron Date: Sat, 28 Oct 2023 00:30:23 -0500 Subject: [PATCH] more sanity checks --- app/templates/partials/charxml/_inv_grid.html.j2 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/templates/partials/charxml/_inv_grid.html.j2 b/app/templates/partials/charxml/_inv_grid.html.j2 index 60600b5..bb3c7f2 100644 --- a/app/templates/partials/charxml/_inv_grid.html.j2 +++ b/app/templates/partials/charxml/_inv_grid.html.j2 @@ -4,7 +4,9 @@ alt="{{ inv_item.attr_l|get_lot_name }}" class="border p-1 border-primary rounded m-1" width="60" - {% if inv_item.attr_eq == "true" %}style="background-color:#d16f05;"{% endif %} + {% if 'attr_eq' in inv_item %} + {% if inv_item.attr_eq == "true" %}style="background-color:#d16f05;"{% endif %} + {% endif %} height="60" data-html="true" data-toggle="tooltip" @@ -20,9 +22,11 @@ {% endif %} {% endif %} - {% if inv_item.attr_b == "true" %} - - - + {% if 'attr_b' in inv_item %} + {% if inv_item.attr_b == "true" %} + + + + {% endif %} {% endif %}