This commit is contained in:
Felix Baumann
2026-06-28 10:20:36 +00:00
parent 64b32d0b44
commit 148efd919d
86 changed files with 2475 additions and 760 deletions
+8 -1
View File
@@ -32,7 +32,6 @@ class InventoryGlobalTable(tables.Table):
model = InventoryItem
template_name = "django_tables2/table_toggle.html"
fields = (
"expand",
"name",
"category",
"available",
@@ -85,6 +84,11 @@ class InventoryAddTable(tables.Table):
}
class ShoppingItemTable(tables.Table):
selection = tables.TemplateColumn(
template_name="inventory/tables/shopping/selection.html",
orderable=False,
verbose_name="",
)
name = tables.TemplateColumn(
template_name="inventory/tables/shopping/name.html",
@@ -125,6 +129,7 @@ class ShoppingItemTable(tables.Table):
class Meta:
model = ShoppingItem
fields = (
"selection",
"name",
"category",
"quantity",
@@ -137,6 +142,8 @@ class ShoppingItemTable(tables.Table):
"class": "w-full text-sm"
}
class ProjectInventoryItemTable(tables.Table):
name = tables.Column(