<gh_stars>0
from django import forms
from .models import ContactProfile

class ContactForm(forms.ModelForm):
    
  
    name = forms.CharField(max_length=100, required=True, widget=forms.TextInput(attrs={'placeholder': '*Full name..'}))
    
    email = forms.EmailField(max_length=254, required=True, widget=forms.TextInput(attrs={'placeholder': '*Email..'}))
    
    message = forms.CharField(max_length=1000, required=True, widget=forms.Textarea(attrs={'placeholder': '*Your message..', 'rows': 6,}))
    
    class Meta:
        model = ContactProfile
        fields = ('name', 'email', 'message')
from django import forms
from .models import ContactProfile

class ContactForm(forms.ModelForm):
    
  
    name = forms.CharField(max_length=100, required=True, widget=forms.TextInput(attrs={'placeholder': '*Full name..'}))
    
    email = forms.EmailField(max_length=254, required=True, widget=forms.TextInput(attrs={'placeholder': '*Email..'}))
    
    message = forms.CharField(max_length=1000, required=True, widget=forms.Textarea(attrs={'placeholder': '*Your message..', 'rows': 6,}))
    
    class Meta:
        model = ContactProfile
        fields = ('name', 'email', 'message')