diff --git a/templates/frontpage.html b/templates/frontpage.html index e8f658a..58ee85a 100644 --- a/templates/frontpage.html +++ b/templates/frontpage.html @@ -98,6 +98,9 @@ body { + + +
diff --git a/templates/table.html b/templates/table.html index 9ce54fa..6ba6359 100644 --- a/templates/table.html +++ b/templates/table.html @@ -52,6 +52,82 @@
+{% if minifig_list | length > 0 %} + +

Minifigs

+{% for fig in minifig_list %} +

{{ fig[2] }} ({{ fig[0] }})

+ +
+
+ {{ fig[2] }} + X {{ fig[3] }} +
+
+ +
+ + + + + + + + + + + + + {% for parts in minifig_inventory_list %} + {% for part in parts %} + + {% if part[0] == fig[0] %} + {{ part[5] }} + + {% if part[5] == 'nil' %} + + {% else %} + + {% endif %} + + + + + + {% endif %} + {% endfor %} + {% endfor %} + +
NameColorQtyMissing
{{ part[3] }}{{ part[3] }}{{ part[3] }}{{ part[7] }}{{ part[8] }} +
+ {% set ns = namespace(count='') %} +
+ + + + + + + + +
+ {% for missing in missing_list %} + {% if missing[1] == part[1] and missing[2] == part[2] and missing[3] == part[6] and (missing[5] == part[10] or missing[5] == 'part[10]') %} + {% set ns.count = missing[4] %} + {% endif %} + {% endfor %} + + +
+
+
+
+
+ {% endfor %} +{% endif %} +