first commit
This commit is contained in:
15
Base/Forms/FormsBankAccounts.py
Normal file
15
Base/Forms/FormsBankAccounts.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from django import forms
|
||||
from Base import models
|
||||
|
||||
class FormsBankAccount(forms.ModelForm):
|
||||
class Meta:
|
||||
model = models.BankAccount
|
||||
fields = ['name','description']
|
||||
widgets = {
|
||||
'name': forms.TextInput({'class':'form-control'}),
|
||||
'description': forms.Textarea({'class':'form-control','rows':3 , }),
|
||||
}
|
||||
labels={
|
||||
'name':'Nome',
|
||||
'description':'Descrição',
|
||||
}
|
||||
24
Base/Forms/FormsChartOfAccount.py
Normal file
24
Base/Forms/FormsChartOfAccount.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from django import forms
|
||||
from Base import models
|
||||
|
||||
class FormsChartOfAccount(forms.ModelForm):
|
||||
class Meta:
|
||||
model = models.ChartOfAccount
|
||||
fields = [
|
||||
'name',
|
||||
'debit',
|
||||
'firm',
|
||||
'notes',
|
||||
]
|
||||
widgets = {
|
||||
'name': forms.TextInput({'class':'form-control'}),
|
||||
'debit': forms.CheckboxInput({'class':''}),
|
||||
'firm': forms.CheckboxInput({'class':''}),
|
||||
'notes': forms.Textarea({'class':'form-control','rows':3 , }),
|
||||
}
|
||||
labels={
|
||||
'name':'Nome',
|
||||
'debit':'Debito',
|
||||
'firm':'Firma',
|
||||
'notes':'Notas',
|
||||
}
|
||||
24
Base/Forms/FormsPayMethod.py
Normal file
24
Base/Forms/FormsPayMethod.py
Normal 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',
|
||||
}
|
||||
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',
|
||||
}
|
||||
24
Base/Forms/FormsProfessional.py
Normal file
24
Base/Forms/FormsProfessional.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from django import forms
|
||||
from Base import models
|
||||
|
||||
class FormsProfessional(forms.ModelForm):
|
||||
class Meta:
|
||||
model = models.Professional
|
||||
fields = [
|
||||
'name',
|
||||
'percentage',
|
||||
'symbol',
|
||||
'user',
|
||||
]
|
||||
widgets = {
|
||||
'name': forms.TextInput({'class':'form-control'}),
|
||||
'percentage': forms.NumberInput(attrs={'step': 1 }),
|
||||
'symbol': forms.TextInput({'class': 'form-control'}),
|
||||
'user': forms.Select({'class':'form-control'}),
|
||||
}
|
||||
labels={
|
||||
'name':'Nome',
|
||||
'percentage':'Porcentagem',
|
||||
'symbol':'Simbolo',
|
||||
'user':'User',
|
||||
}
|
||||
17
Base/Forms/FormsServiceList.py
Normal file
17
Base/Forms/FormsServiceList.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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',
|
||||
}
|
||||
BIN
Base/Forms/__pycache__/FormsBankAccounts.cpython-312.pyc
Normal file
BIN
Base/Forms/__pycache__/FormsBankAccounts.cpython-312.pyc
Normal file
Binary file not shown.
BIN
Base/Forms/__pycache__/FormsChartOfAccount.cpython-312.pyc
Normal file
BIN
Base/Forms/__pycache__/FormsChartOfAccount.cpython-312.pyc
Normal file
Binary file not shown.
BIN
Base/Forms/__pycache__/FormsPayMethod.cpython-312.pyc
Normal file
BIN
Base/Forms/__pycache__/FormsPayMethod.cpython-312.pyc
Normal file
Binary file not shown.
BIN
Base/Forms/__pycache__/FormsProductList.cpython-312.pyc
Normal file
BIN
Base/Forms/__pycache__/FormsProductList.cpython-312.pyc
Normal file
Binary file not shown.
BIN
Base/Forms/__pycache__/FormsProfessional.cpython-312.pyc
Normal file
BIN
Base/Forms/__pycache__/FormsProfessional.cpython-312.pyc
Normal file
Binary file not shown.
BIN
Base/Forms/__pycache__/FormsServiceList.cpython-312.pyc
Normal file
BIN
Base/Forms/__pycache__/FormsServiceList.cpython-312.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user