first commit
This commit is contained in:
17
Base/Forms/FormsProductList.py
Normal file
17
Base/Forms/FormsProductList.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from django import forms
|
||||
from Base import models
|
||||
|
||||
class FormsProductList(forms.ModelForm):
|
||||
class Meta:
|
||||
model = models.ProductList
|
||||
fields = ['name','value','description']
|
||||
widgets = {
|
||||
'name': forms.TextInput({'class':'form-control'}),
|
||||
'value': forms.NumberInput(attrs={'step': 1}),
|
||||
'description': forms.Textarea({'class':'form-control','rows':3 , }),
|
||||
}
|
||||
labels={
|
||||
'name':'Nome',
|
||||
'value':'Valor',
|
||||
'description':'Descrição',
|
||||
}
|
||||
Reference in New Issue
Block a user