complete first version of main proccess
This commit is contained in:
parent
6ff4740d04
commit
f2fc2362a7
61 changed files with 3280 additions and 28 deletions
|
@ -29,7 +29,7 @@ class CustomerForm(forms.ModelForm):
|
|||
model = Profile
|
||||
fields = [
|
||||
'phone_number_1', 'phone_number_2', 'national_code',
|
||||
'address', 'card_number', 'account_number'
|
||||
'address', 'card_number', 'account_number', 'bank_name'
|
||||
]
|
||||
widgets = {
|
||||
'phone_number_1': forms.TextInput(attrs={
|
||||
|
@ -61,6 +61,10 @@ class CustomerForm(forms.ModelForm):
|
|||
'placeholder': 'شماره حساب بانکی',
|
||||
'maxlength': '20'
|
||||
}),
|
||||
'bank_name': forms.Select(attrs={
|
||||
'class': 'form-control',
|
||||
'placeholder': 'نام بانک',
|
||||
}),
|
||||
}
|
||||
labels = {
|
||||
'phone_number_1': 'تلفن ۱',
|
||||
|
@ -69,6 +73,7 @@ class CustomerForm(forms.ModelForm):
|
|||
'address': 'آدرس',
|
||||
'card_number': 'شماره کارت',
|
||||
'account_number': 'شماره حساب',
|
||||
'bank_name': 'نام بانک',
|
||||
}
|
||||
|
||||
def clean_national_code(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue