- {{ card.header(item, item.fields.name, solo=solo, number=item.fields.set_num) }}
- {{ card.image(item, solo=solo, last=last, caption=item.fields.name, alt=item.fields.set_num) }}
-
- {{ badge.theme(item.theme_name, solo=solo, last=last) }}
+ {{ card.header(item, item.fields.name, solo=solo, number=item.fields.number) }}
+ {{ card.image(item, solo=solo, last=last, caption=item.fields.name, alt=item.fields.number) }}
+
+ {{ badge.theme(item.theme.name, solo=solo, last=last) }}
{{ badge.year(item.fields.year, solo=solo, last=last) }}
- {{ badge.parts(item.fields.num_parts, solo=solo, last=last) }}
+ {{ badge.parts(item.fields.number_of_parts, solo=solo, last=last) }}
{{ badge.total_minifigures(item.fields.total_minifigures, solo=solo, last=last) }}
{{ badge.total_missing(item.fields.total_missing, solo=solo, last=last) }}
{% if not last %}
@@ -24,17 +26,13 @@
{{ badge.rebrickable(item, solo=solo, last=last) }}
{% endif %}
- {% if not tiny %}
-
- -
- {{ form.checkbox('minifigures-collected', item.fields.u_id, 'Minifigures are collected', item.url_for_minifigures_collected(), item.fields.mini_col, delete=delete) }}
-
- -
- {{ form.checkbox('set-checked', item.fields.u_id, 'Set is checked', item.url_for_set_checked(), item.fields.set_check, delete=delete) }}
-
- -
- {{ form.checkbox('set-collected', item.fields.u_id, 'Set is collected and boxed', item.url_for_set_collected(), item.fields.set_col, delete=delete) }}
-
+ {% if not tiny and brickset_checkboxes | length %}
+
+ {% for checkbox in brickset_checkboxes %}
+ -
+ {{ form.checkbox(checkbox.as_dataset(), item.fields.id, checkbox.fields.name, checkbox.status_url(item.fields.id), item.fields[checkbox.as_column()], delete=delete) }}
+
+ {% endfor %}
{% endif %}
{% if solo %}
diff --git a/templates/set/mini.html b/templates/set/mini.html
index f9767e6..6bdc028 100644
--- a/templates/set/mini.html
+++ b/templates/set/mini.html
@@ -2,11 +2,11 @@
{% import 'macro/card.html' as card %}
- {{ card.header(item, item.fields.name, solo=true, number=item.fields.set_num) }}
- {{ card.image(item, solo=true, last=false, caption=item.fields.name, alt=item.fields.set_num) }}
+ {{ card.header(item, item.fields.name, solo=true, number=item.fields.set) }}
+ {{ card.image(item, solo=true, last=false, caption=item.fields.name, alt=item.fields.set) }}
- {{ badge.theme(item.theme_name) }}
+ {{ badge.theme(item.theme.name) }}
{{ badge.year(item.fields.year) }}
- {{ badge.parts(item.fields.num_parts) }}
+ {{ badge.parts(item.fields.number_of_parts) }}
diff --git a/templates/sets.html b/templates/sets.html
index 38bc0e2..2517c96 100644
--- a/templates/sets.html
+++ b/templates/sets.html
@@ -19,12 +19,13 @@
Filter
@@ -79,5 +81,5 @@
{% block scripts %}
-
+
{% endblock %}
\ No newline at end of file
diff --git a/templates/wish/table.html b/templates/wish/table.html
index e902a55..2dbc07f 100644
--- a/templates/wish/table.html
+++ b/templates/wish/table.html
@@ -18,14 +18,14 @@