add requiered field
This commit is contained in:
		
							parent
							
								
									c76de99e84
								
							
						
					
					
						commit
						001dc313f6
					
				
					 6 changed files with 42 additions and 35 deletions
				
			
		| 
						 | 
				
			
			@ -64,21 +64,25 @@ class CustomerForm(forms.ModelForm):
 | 
			
		|||
            'address': forms.Textarea(attrs={
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
                'placeholder': 'آدرس کامل',
 | 
			
		||||
                'rows': '3'
 | 
			
		||||
                'rows': '3',
 | 
			
		||||
                'required': True
 | 
			
		||||
            }),
 | 
			
		||||
            'card_number': forms.TextInput(attrs={
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
                'placeholder': 'شماره کارت بانکی',
 | 
			
		||||
                'maxlength': '16'
 | 
			
		||||
                'maxlength': '16',
 | 
			
		||||
                'required': True
 | 
			
		||||
            }),
 | 
			
		||||
            'account_number': forms.TextInput(attrs={
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
                'placeholder': 'شماره حساب بانکی',
 | 
			
		||||
                'maxlength': '20'
 | 
			
		||||
                'maxlength': '20',
 | 
			
		||||
                'required': True
 | 
			
		||||
            }),
 | 
			
		||||
            'bank_name': forms.Select(attrs={
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
                'placeholder': 'نام بانک',
 | 
			
		||||
                'required': True
 | 
			
		||||
            }),
 | 
			
		||||
        }
 | 
			
		||||
        labels = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue