-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
styled application home card; styled some coloring on regestrition pa…
…ge; updated the nav-bary; update the regrestrition form.
- Loading branch information
GARY LIU
authored and
GARY LIU
committed
Dec 4, 2024
1 parent
cb82dee
commit 5551469
Showing
327 changed files
with
104,246 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
from django.forms import ModelForm | ||
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm | ||
from django import forms | ||
from django.contrib.auth.models import User | ||
from .models import Applicant | ||
|
||
class CreateUserForm(UserCreationForm): | ||
class Meta: | ||
model = User | ||
fields = ['username', 'email', 'password1', 'password2'] | ||
|
||
class CreateAuthenticationForm(AuthenticationForm): | ||
class Meta: | ||
model = User | ||
fields = ['username', 'password'] | ||
|
||
class ApplicationForm(forms.ModelForm): | ||
class Meta: | ||
model = Applicant | ||
fields = [# camper info | ||
'applicant_fname', 'applicant_lname', 'applicant_chinese_name', 'applicant_email', | ||
'applicant_bday', 'applicant_sex', 'applicant_grade', 'applicant_shirt_size', | ||
'program', | ||
'street_address', 'city', 'state', 'zip_code', | ||
|
||
# parent/guardian/emergency contact info | ||
'parent1_fname', 'parent1_lname', 'parent1_relationship', 'parent1_phone', 'parent1_email', 'parent1_for_POD', | ||
'parent2_fname', 'parent2_lname', 'parent2_relationship', 'parent2_phone', 'parent2_email', 'parent2_for_POD', | ||
'additional_emergency_contact_fname', 'additional_emergency_contact_lname', 'additional_emergency_contact_relationship', 'additional_emergency_contact_phone', | ||
|
||
# POD preference | ||
'interest_in_POD_lead', | ||
|
||
# roommate requests | ||
'preferred_roommate', | ||
|
||
# medical info | ||
'insurance_provider', 'subscriber_name', 'primary_physician_name', 'primary_physician_phone', | ||
'grant_hospital_permission', 'grant_medical_treatment_permission', 'grant_first_aid_permission', 'grant_meds_permission', 'grant_bug_spray_permission', 'grant_skin_treatment_permission', | ||
'allergies', 'allergies_description', 'initial_for_allergy_treatment', 'epi_pen_prescribed', | ||
'social_emotional_concerns', | ||
'wear_glasses', 'wear_contacts', 'wear_hearing_aids', | ||
'medication', 'medication_description', | ||
'opt_out_activities', 'medical_comments', | ||
'signature', | ||
|
||
# pickup info | ||
'allowed_pickup_persons', 'available_for_carpool', | ||
|
||
# payment info | ||
'payment_camp', 'payment_pod', 'payment_donation', 'payment_total', 'financial_aid_requested', | ||
|
||
# additional info | ||
'listing_on_weekbook', 'camper_contact_email', | ||
'interest_in_committee', 'interest_in_wkbook_ads', | ||
'referrals', 'heard_from', | ||
|
||
# important docs | ||
'camp_rule_agreement', 'liability_agreement', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
from django.forms import ModelForm | ||
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm | ||
from django import forms | ||
from django.contrib.auth.models import User | ||
from .models import Applicant | ||
|
||
class CreateUserForm(UserCreationForm): | ||
class Meta: | ||
model = User | ||
fields = ['username', 'email', 'password1', 'password2'] | ||
|
||
class CreateAuthenticationForm(AuthenticationForm): | ||
class Meta: | ||
model = User | ||
fields = ['username', 'password'] | ||
|
||
class ApplicationForm(forms.ModelForm): | ||
class Meta: | ||
model = Applicant | ||
fields = [# camper info | ||
'applicant_fname', 'applicant_lname', 'applicant_chinese_name', 'applicant_email', | ||
'applicant_bday', 'applicant_sex', 'applicant_grade', 'applicant_shirt_size', | ||
'program', | ||
'street_address', 'city', 'state', 'zip_code', | ||
|
||
# parent/guardian/emergency contact info | ||
'parent1_fname', 'parent1_lname', 'parent1_relationship', 'parent1_phone', 'parent1_email', 'parent1_for_POD', | ||
'parent2_fname', 'parent2_lname', 'parent2_relationship', 'parent2_phone', 'parent2_email', 'parent2_for_POD', | ||
'additional_emergency_contact_fname', 'additional_emergency_contact_lname', 'additional_emergency_contact_relationship', 'additional_emergency_contact_phone', | ||
|
||
# POD preference | ||
'interest_in_POD_lead', | ||
|
||
# roommate requests | ||
'preferred_roommate', | ||
|
||
# medical info | ||
'insurance_provider', 'subscriber_name', 'primary_physician_name', 'primary_physician_phone', | ||
'grant_hospital_permission', 'grant_medical_treatment_permission', 'grant_first_aid_permission', 'grant_meds_permission', 'grant_bug_spray_permission', 'grant_skin_treatment_permission', | ||
'allergies', 'allergies_description', 'initial_for_allergy_treatment', 'epi_pen_prescribed', | ||
'social_emotional_concerns', | ||
'wear_glasses', 'wear_contacts', 'wear_hearing_aids', | ||
'medication', 'medication_description', | ||
'opt_out_activities', 'medical_comments', | ||
'signature', | ||
|
||
# pickup info | ||
'allowed_pickup_persons', 'available_for_carpool', | ||
|
||
# payment info | ||
'payment_camp', 'payment_pod', 'payment_donation', 'payment_total', 'financial_aid_requested', | ||
|
||
# additional info | ||
'listing_on_weekbook', 'camper_contact_email', | ||
'interest_in_committee', 'interest_in_wkbook_ads', | ||
'referrals', 'heard_from', | ||
|
||
# important docs | ||
'camp_rule_agreement', 'liability_agreement', | ||
] | ||
applicant_chinese_name = forms.CharField(required=False, label="Chinese Name (Optional)") | ||
parent2_phone = forms.CharField(required=False, label="Parent 2 Phone (Optional)") | ||
allergies = forms.CharField( | ||
required=False, | ||
label="Allergies (Optional)", | ||
widget=forms.Textarea(attrs={"rows": 3}), | ||
) | ||
signature = forms.CharField( | ||
required=True, | ||
label="Signature", | ||
help_text="Your signature is required to complete this form.", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
from django.forms import ModelForm | ||
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm | ||
from django import forms | ||
from django.contrib.auth.models import User | ||
from .models import Applicant | ||
|
||
class CreateUserForm(UserCreationForm): | ||
class Meta: | ||
model = User | ||
fields = ['username', 'email', 'password1', 'password2'] | ||
|
||
class CreateAuthenticationForm(AuthenticationForm): | ||
class Meta: | ||
model = User | ||
fields = ['username', 'password'] | ||
|
||
class ApplicationForm(forms.ModelForm): | ||
class Meta: | ||
model = Applicant | ||
fields = [# camper info | ||
'applicant_fname', 'applicant_lname', 'applicant_chinese_name', 'applicant_email', | ||
'applicant_bday', 'applicant_sex', 'applicant_grade', 'applicant_shirt_size', | ||
'program', | ||
'street_address', 'city', 'state', 'zip_code', | ||
|
||
# parent/guardian/emergency contact info | ||
'parent1_fname', 'parent1_lname', 'parent1_relationship', 'parent1_phone', 'parent1_email', 'parent1_for_POD', | ||
'parent2_fname', 'parent2_lname', 'parent2_relationship', 'parent2_phone', 'parent2_email', 'parent2_for_POD', | ||
'additional_emergency_contact_fname', 'additional_emergency_contact_lname', 'additional_emergency_contact_relationship', 'additional_emergency_contact_phone', | ||
|
||
# POD preference | ||
'interest_in_POD_lead', | ||
|
||
# roommate requests | ||
'preferred_roommate', | ||
|
||
# medical info | ||
'insurance_provider', 'subscriber_name', 'primary_physician_name', 'primary_physician_phone', | ||
'grant_hospital_permission', 'grant_medical_treatment_permission', 'grant_first_aid_permission', 'grant_meds_permission', 'grant_bug_spray_permission', 'grant_skin_treatment_permission', | ||
'allergies', 'allergies_description', 'initial_for_allergy_treatment', 'epi_pen_prescribed', | ||
'social_emotional_concerns', | ||
'wear_glasses', 'wear_contacts', 'wear_hearing_aids', | ||
'medication', 'medication_description', | ||
'opt_out_activities', 'medical_comments', | ||
'signature', | ||
|
||
# pickup info | ||
'allowed_pickup_persons', 'available_for_carpool', | ||
|
||
# payment info | ||
'payment_camp', 'payment_pod', 'payment_donation', 'payment_total', 'financial_aid_requested', | ||
|
||
# additional info | ||
'listing_on_weekbook', 'camper_contact_email', | ||
'interest_in_committee', 'interest_in_wkbook_ads', | ||
'referrals', 'heard_from', | ||
|
||
# important docs | ||
'camp_rule_agreement', 'liability_agreement', | ||
] | ||
applicant_chinese_name = forms.CharField(required=False, label="Chinese Name (Optional)") | ||
parent2_phone = forms.CharField(required=False, label="Parent 2 Phone (Optional)") | ||
allergies = forms.CharField( | ||
required=False, | ||
label="Allergies (Optional)", | ||
widget=forms.Textarea(attrs={"rows": 3}), | ||
) | ||
signature = forms.CharField( | ||
required=True, | ||
label="Signature", | ||
help_text="Your signature is required to complete this form.", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
from django.forms import ModelForm | ||
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm | ||
from django import forms | ||
from django.contrib.auth.models import User | ||
from .models import Applicant | ||
|
||
class CreateUserForm(UserCreationForm): | ||
class Meta: | ||
model = User | ||
fields = ['username', 'email', 'password1', 'password2'] | ||
|
||
class CreateAuthenticationForm(AuthenticationForm): | ||
class Meta: | ||
model = User | ||
fields = ['username', 'password'] | ||
|
||
class ApplicationForm(forms.ModelForm): | ||
class Meta: | ||
model = Applicant | ||
fields = [# camper info | ||
'applicant_fname', 'applicant_lname', 'applicant_chinese_name', 'applicant_email', | ||
'applicant_bday', 'applicant_sex', 'applicant_grade', 'applicant_shirt_size', | ||
'program', | ||
'street_address', 'city', 'state', 'zip_code', | ||
|
||
# parent/guardian/emergency contact info | ||
'parent1_fname', 'parent1_lname', 'parent1_relationship', 'parent1_phone', 'parent1_email', 'parent1_for_POD', | ||
'parent2_fname', 'parent2_lname', 'parent2_relationship', 'parent2_phone', 'parent2_email', 'parent2_for_POD', | ||
'additional_emergency_contact_fname', 'additional_emergency_contact_lname', 'additional_emergency_contact_relationship', 'additional_emergency_contact_phone', | ||
|
||
# POD preference | ||
'interest_in_POD_lead', | ||
|
||
# roommate requests | ||
'preferred_roommate', | ||
|
||
# medical info | ||
'insurance_provider', 'subscriber_name', 'primary_physician_name', 'primary_physician_phone', | ||
'grant_hospital_permission', 'grant_medical_treatment_permission', 'grant_first_aid_permission', 'grant_meds_permission', 'grant_bug_spray_permission', 'grant_skin_treatment_permission', | ||
'allergies', 'allergies_description', 'initial_for_allergy_treatment', 'epi_pen_prescribed', | ||
'social_emotional_concerns', | ||
'wear_glasses', 'wear_contacts', 'wear_hearing_aids', | ||
'medication', 'medication_description', | ||
'opt_out_activities', 'medical_comments', | ||
'signature', | ||
|
||
# pickup info | ||
'allowed_pickup_persons', 'available_for_carpool', | ||
|
||
# payment info | ||
'payment_camp', 'payment_pod', 'payment_donation', 'payment_total', 'financial_aid_requested', | ||
|
||
# additional info | ||
'listing_on_weekbook', 'camper_contact_email', | ||
'interest_in_committee', 'interest_in_wkbook_ads', | ||
'referrals', 'heard_from', | ||
|
||
# important docs | ||
'camp_rule_agreement', 'liability_agreement', | ||
] | ||
applicant_chinese_name = forms.CharField(required=False, label="Chinese Name (Optional)") | ||
parent2_phone = forms.CharField(required=False, label="Parent 2 Phone (Optional)") | ||
allergies = forms.CharField( | ||
required=False, | ||
label="Allergies (Optional)", | ||
widget=forms.Textarea(attrs={"rows": 3}), | ||
) | ||
signature = forms.CharField( | ||
required=True, | ||
label="Signature", | ||
help_text="Your signature is required to complete this form.", | ||
) |
Oops, something went wrong.