first commit

This commit is contained in:
2025-11-01 18:10:39 -03:00
parent 6e7348359f
commit 63cf724aaf
220 changed files with 4040 additions and 62 deletions

View File

@@ -0,0 +1,24 @@
from django import forms
from Base import models
class FormsPayMethod(forms.ModelForm):
class Meta:
model = models.PayMethod
fields = [
'name',
'bank',
'percentage',
'description',
]
widgets = {
'name': forms.TextInput({'class':'form-control'}),
'bank': forms.Select({'class': 'form-select'}),
'percentage': forms.NumberInput(attrs={'step': 1}),
'description': forms.Textarea({'class': 'form-control', 'rows': 3, }),
}
labels={
'name':'Nome',
'bank':'Banco',
'percentage':'Percentual',
'description':'Descrição',
}