12 lines
576 B
Python
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.'}),
|
|
} |