Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions applications/forms/volunteer.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def __init__(self, *args, **kwargs):
{"name": "under_age", "space": 12},
{"name": "studies_and_course", "space": 12},
{"name": "hear_about_us", "space": 12},
{"name": "other_hear_about_us", "space": 12},
{"name": "origin", "space": 12},
],
"description": "Hola voluntari@, necesitamos un poco de información antes de empezar :)",
Expand Down Expand Up @@ -247,6 +248,7 @@ def clean_hear_about_us(self):
"graduation_year": forms.HiddenInput(),
"phone_number": forms.HiddenInput(),
"hear_about_us": CustomSelect(choices=models.HEARABOUTUS_ES),
"other_hear_about_us": forms.TextInput(attrs={"autocomplete": "off"}),
"tshirt_size": forms.Select(),
"diet": forms.Select(),
}
Expand All @@ -268,6 +270,7 @@ def clean_hear_about_us(self):
"cool_skill": "¿Qué habilidad interesante o dato curioso tienes? ¡Sorpréndenos! 🎉",
"friends": "¿Estás aplicando con otr@s amig@s? Escribe sus nombres completos",
"hear_about_us": "¿Cómo escuchaste sobre nosotros por primera vez?",
"other_hear_about_us": "Especifica cómo nos conociste:",
"volunteer_motivation": "¿Por qué quieres asistir como voluntari@ a HackUPC?",
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.23 on 2025-12-21 22:39

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('applications', '0060_volunteerapplication_studies_and_course'),
]

operations = [
migrations.AddField(
model_name='volunteerapplication',
name='other_hear_about_us',
field=models.CharField(blank=True, max_length=500, null=True),
),
]
1 change: 1 addition & 0 deletions applications/models/volunteer.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class VolunteerApplication(BaseApplication):

#About us
hear_about_us = models.CharField(max_length=300, choices=HEARABOUTUS_ES, default="")
other_hear_about_us = models.CharField(max_length=500, blank=True, null=True)

# University
graduation_year = models.IntegerField(choices=YEARS, default=DEFAULT_YEAR)
Expand Down
6 changes: 6 additions & 0 deletions applications/templates/include/application_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@
conditional_field(other_gender, gender, function () {
return gender.val() === 'X';
}, 1);

var other_hear_about_us = $('#id_other_hear_about_us');
var hear_about_us = $('#id_hear_about_us');
conditional_field(other_hear_about_us, hear_about_us, function () {
return hear_about_us.val() === 'Otros';
}, 1);

var online = $('input[name="online"][value="True"]');
var face_to_face = $('input[name="online"][value="False"]');
Expand Down
1 change: 1 addition & 0 deletions organizers/templates/other_application_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ <h3>Other questions</h3>
{% include 'include/field.html' with desc='Dietary restrictions' value=app.diet %}
{% include 'include/field.html' with desc='Other diet' value=app.other_diet %}
{% include 'include/field.html' with desc='How you meet us' value=app.hear_about_us %}
{% include 'include/field.html' with desc='Other (how you meet us)' value=app.other_hear_about_us %}
<hr>
<dt>
<h3>Extra</h3>
Expand Down