mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 21:15:41 +00:00
Add some more form candy
This commit is contained in:
@ -16,6 +16,14 @@ from .models import SupplierPriceBreak
|
||||
class EditCompanyForm(HelperForm):
|
||||
""" Form for editing a Company object """
|
||||
|
||||
field_prefix = {
|
||||
'website': 'fa-globe-asia',
|
||||
'email': 'fa-at',
|
||||
'address': 'fa-envelope',
|
||||
'contact': 'fa-user-tie',
|
||||
'phone': 'fa-phone',
|
||||
}
|
||||
|
||||
class Meta:
|
||||
model = Company
|
||||
fields = [
|
||||
@ -45,6 +53,13 @@ class CompanyImageForm(HelperForm):
|
||||
class EditSupplierPartForm(HelperForm):
|
||||
""" Form for editing a SupplierPart object """
|
||||
|
||||
field_prefix = {
|
||||
'link': 'fa-link',
|
||||
'MPN': 'fa-hashtag',
|
||||
'SKU': 'fa-hashtag',
|
||||
'note': 'fa-pencil-alt',
|
||||
}
|
||||
|
||||
class Meta:
|
||||
model = SupplierPart
|
||||
fields = [
|
||||
|
Reference in New Issue
Block a user