17 lines
546 B
Python
17 lines
546 B
Python
from django import forms
|
|
from Base import models
|
|
|
|
class FormsServiceList(forms.ModelForm):
|
|
class Meta:
|
|
model = models.ServiceList
|
|
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',
|
|
} |