from django import forms
from .models import Contact

class ContactForm(forms.ModelForm):
	message = forms.CharField(widget=forms.Textarea(attrs={'class': 'form-control','rows':8,'placeholder': 'Message'}))
	class Meta(forms.ModelForm):
		model = Contact
		fields = [ 'name', 'email', 'subject', 'phone_number','message']
			
		widgets = {
				'name': forms.TextInput(attrs={'class': 'form-control ', 'placeholder': 'Name'}),
				'email': forms.EmailInput(attrs={'class': 'form-control', 'placeholder': 'Email'}),
				'subject': forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Objet'}),
				'phone_number': forms.TextInput(attrs={'class': 'form-control ', 'placeholder': 'Mobile e.g. +213 665 26 45 08'}),
				
				
		}
	