From 05b259e4945878209fee32ac5ddc2e0383638005 Mon Sep 17 00:00:00 2001 From: Frederik Baerentsen Date: Fri, 26 Sep 2025 12:28:49 +0200 Subject: [PATCH] Removed checkboxes from minifigures details page --- templates/part/table.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/part/table.html b/templates/part/table.html index 523aee7..36146a7 100644 --- a/templates/part/table.html +++ b/templates/part/table.html @@ -3,7 +3,7 @@
- {{ table.header(color=true, quantity=not no_quantity, sets=all, minifigures=all, checked=not all, hamburger_menu=not all, accordion_id=accordion_id|default('')) }} + {{ table.header(color=true, quantity=not no_quantity, sets=all, minifigures=all, checked=not all and not read_only, hamburger_menu=not all and not read_only, accordion_id=accordion_id|default('')) }} {% for item in table_collection %} @@ -41,12 +41,12 @@ {% else %} - {% if not config['HIDE_TABLE_CHECKED_PARTS'] %} + {% if not config['HIDE_TABLE_CHECKED_PARTS'] and not read_only %} {% endif %} - {% if g.login.is_authenticated() %} + {% if g.login.is_authenticated() and not read_only %} {% set show_missing_menu = not config['HIDE_TABLE_MISSING_PARTS'] %} {% set show_checked_menu = not config['HIDE_TABLE_CHECKED_PARTS'] %} {% if show_missing_menu or show_checked_menu %}
{{ item.fields.total_sets }} {{ item.fields.total_minifigures }}
{{ form.checkbox('', item.fields.id, item.html_id('checked'), item.url_for_checked(), item.fields.checked | default(false), parent='part', delete=read_only) }}