mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Improved button mechanics
This commit is contained in:
parent
8842d50c72
commit
0285d3ee83
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user