-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability accessibility and photo questions #493
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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?" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. relevant |
||
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, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. relevant |
||
"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", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. relevant |
||
"accessibility_requirements", | ||
"agree_to_coc", | ||
"agree_to_mlh_stuff", | ||
"signup_to_mlh_newsletter", | ||
|
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), | ||
), | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just let the autoformatter handle this file, sorry. I'll highlight all relevant lines