mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 10:51:17 +00:00
Add some more form candy
This commit is contained in:
1 parent
498ad4162c
commit
4cb97b1340
5 files changed
+54
-11
No files matched your search
@@ -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