36140-vm/core/forms.py
2025-11-24 07:28:47 +00:00

12 lines
576 B
Python

from django import forms
from .models import MembershipApplication
class MembershipApplicationForm(forms.ModelForm):
class Meta:
model = MembershipApplication
fields = ['name', 'email', 'desired_role', 'statement']
widgets = {
'name': forms.TextInput(attrs={'placeholder': 'Your Full Name'}),
'email': forms.EmailInput(attrs={'placeholder': 'Your Email Address'}),
'statement': forms.Textarea(attrs={'rows': 5, 'placeholder': 'Tell us a bit about yourself and your interest in joining the network.'}),
}