You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
791 B

from django import forms
from .models import Bank
#PriceStatus = [('1', 'فروش'), ('2', 'خرید')]
#PriceGroup = [('1', 'درصدی'), ('2', 'ریالی')]
#PriceGo = [('1', 'کاهش'), ('2', 'افزایش')]
class BankForm(forms.ModelForm):
class Meta:
model = Bank
fields = ['BankName', 'BankUnit', 'BankAccountNumber', 'BankAddress', 'BankInfo']
widgets = {
'BankName': forms.TextInput(attrs={'class': 'form-control'}),
'BankUnit': forms.TextInput(attrs={'class': 'form-control'}),
'BankAccountNumber': forms.TextInput(attrs={'class': 'form-control'}),
'BankAddress': forms.Textarea(attrs={'class': 'form-control'}),
'BankInfo': forms.Textarea(attrs={'class': 'form-control'}),
}