mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-05 18:01:14 +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',
|
||||
'minimum_stock',
|
||||
'notes',
|
||||
'active',
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -446,6 +446,7 @@ class PartDetail(DetailView):
|
||||
part = self.get_object()
|
||||
|
||||
context['starred'] = part.isStarredBy(self.request.user)
|
||||
context['disabled'] = not part.active
|
||||
|
||||
context['OrderStatus'] = OrderStatus
|
||||
|
||||
|
||||
Reference in new issue
Block a user