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) }}