-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability accessibility and photo questions
- Loading branch information
Showing
6 changed files
with
66 additions
and
11 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
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 |
---|---|---|
|
@@ -186,7 +186,7 @@ class ApplicationModelForm(forms.ModelForm): | |
(TENSORFLOW, "Tensorflow"), | ||
(PYTORCH, "PyTorch"), | ||
(FLUTTER, "Flutter"), | ||
(REACT_NATIVE, "React Native") | ||
(REACT_NATIVE, "React Native"), | ||
) | ||
# SKILLS | ||
technology_experience = forms.MultipleChoiceField( | ||
|
@@ -215,9 +215,9 @@ class ApplicationModelForm(forms.ModelForm): | |
(KOSHER, "Kosher"), | ||
(GLUTEN_FREE, "Gluten-Free"), | ||
(FOOD_ALLERGY, "Food Allergy"), | ||
(OTHER_DIETARY_RESTRICTION, "Other") | ||
(OTHER_DIETARY_RESTRICTION, "Other"), | ||
) | ||
|
||
dietary_restrictions = forms.MultipleChoiceField( | ||
label="Do you have any dietary restrictions?", | ||
help_text="Select all that apply", | ||
|
@@ -242,6 +242,13 @@ def __init__(self, *args, **kwargs): | |
} | ||
|
||
super().__init__(*args, **kwargs) | ||
|
||
photo_agreement = "Do you grant permission for TAMUhack to use your name, likeness, voice, and any photographs, video recordings, or audio recordings taken during the event 'TAMUhack 2025' for promotional and media purposes, including but not limited to publications, websites, social media, and press releases?" | ||
accessibilities = "Please check this box if you require any accommodations to ensure accessibility during this event. Our team will follow up to discuss your needs." | ||
|
||
self.fields["agree_to_photos"].label = mark_safe(photo_agreement) | ||
self.fields["accessibility_requirements"].label = mark_safe(accessibilities) | ||
|
||
self.fields["agree_to_coc"].label = mark_safe( | ||
'I agree to the <a href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf">MLH Code of Conduct</a>' | ||
) | ||
|
@@ -255,10 +262,7 @@ def __init__(self, *args, **kwargs): | |
' and the <a href="https://mlh.io/privacy">MLH Privacy Policy</a>' | ||
) | ||
|
||
mlh_newsletter = ( | ||
"I authorize MLH to send me occasional emails about relevant events, career opportunities, and community announcements." | ||
) | ||
|
||
mlh_newsletter = "I authorize MLH to send me occasional emails about relevant events, career opportunities, and community announcements." | ||
self.fields["agree_to_mlh_stuff"].label = mark_safe(mlh_stuff) | ||
self.fields["signup_to_mlh_newsletter"].label = mark_safe(mlh_newsletter) | ||
|
||
|
@@ -312,8 +316,10 @@ class Meta: | |
"agree_to_coc": forms.CheckboxInput, | ||
"agree_to_mlh_stuff": forms.CheckboxInput, | ||
"signup_to_mlh_newsletter": forms.CheckboxInput, | ||
"agree_to_photos": forms.CheckboxInput, | ||
"accessibility_requirements": forms.CheckboxInput, | ||
"travel_reimbursement": forms.CheckboxInput, | ||
'tamu_email': forms.EmailInput(attrs={'placeholder': '[email protected]'}), | ||
"tamu_email": forms.EmailInput(attrs={"placeholder": "[email protected]"}), | ||
"extra_links": forms.TextInput( | ||
attrs={ | ||
"placeholder": "ex. GitHub, Devpost, personal website, LinkedIn, etc." | ||
|
@@ -358,6 +364,8 @@ class Meta: | |
"emergency_contact_phone", | ||
"emergency_contact_email", | ||
"notes", | ||
"agree_to_photos", | ||
"accessibility_requirements", | ||
"agree_to_coc", | ||
"agree_to_mlh_stuff", | ||
"signup_to_mlh_newsletter", | ||
|
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,23 @@ | ||
# Generated by Django 2.2.13 on 2024-11-20 01:45 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('application', '0025_auto_20241024_1250'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='application', | ||
name='accessibility_requirements', | ||
field=models.BooleanField(blank=True, choices=[(True, 'Agree'), (False, 'Disagree')], default=None, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='application', | ||
name='agree_to_photos', | ||
field=models.BooleanField(choices=[(True, 'Agree')], default=None, null=True), | ||
), | ||
] |
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
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
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