mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 10:51:17 +00:00
Improved button mechanics
This commit is contained in:
1 parent
8842d50c72
commit
0285d3ee83
2 files changed
+2
No files matched your search
@@ -102,6 +102,7 @@ class EditPartForm(HelperForm):
|
|||||||
'units',
|
'units',
|
||||||
'minimum_stock',
|
'minimum_stock',
|
||||||
'notes',
|
'notes',
|
||||||
|
'active',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -446,6 +446,7 @@ class PartDetail(DetailView):
|
|||||||
part = self.get_object()
|
part = self.get_object()
|
||||||
|
|
||||||
context['starred'] = part.isStarredBy(self.request.user)
|
context['starred'] = part.isStarredBy(self.request.user)
|
||||||
|
context['disabled'] = not part.active
|
||||||
|
|
||||||
context['OrderStatus'] = OrderStatus
|
context['OrderStatus'] = OrderStatus
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user