from django import forms

from .models import Contact

class ContactForm(forms.ModelForm):
    class Meta:
        model = Contact
        fields = ['name', 'email', 'purpose', 'message']
        
        '''
        widgets = {
            'name' : forms.TextInput(attrs={'class': 'input', 'placeholder' : '<NAME>'}),
            'email' : forms.EmailInput(attrs={'class': 'input', 'placeholder' : '<EMAIL>'}),
            'message': forms.Textarea(attrs={'class': 'textarea', 'rows': 10, 'placeholder' : 'Your message...'}),
        }
        '''
        
from django import forms

from .models import Contact

class ContactForm(forms.ModelForm):
    class Meta:
        model = Contact
        fields = ['name', 'email', 'purpose', 'message']
        
        '''
        widgets = {
            'name' : forms.TextInput(attrs={'class': 'input', 'placeholder' : '<NAME>'}),
            'email' : forms.EmailInput(attrs={'class': 'input', 'placeholder' : '<EMAIL>'}),
            'message': forms.Textarea(attrs={'class': 'textarea', 'rows': 10, 'placeholder' : 'Your message...'}),
        }
        '''
        
widgets = {
             'name' : forms.TextInput(attrs={'class': 'input', 'placeholder' : '<NAME>'}),
             'email' : forms.EmailInput(attrs={'class': 'input', 'placeholder' : '<EMAIL>'}),
             'message': forms.Textarea(attrs={'class': 'textarea', 'rows': 10, 'placeholder' : 'Your message...'}),
         }