Skip to content

Commit 85aa7ae

Browse files
authored
Merge pull request code-dot-org#26708 from code-dot-org/ha/FitRegForm
Updating FiT registration form
2 parents 992209f + 24562d1 commit 85aa7ae

File tree

9 files changed

+29
-35
lines changed

9 files changed

+29
-35
lines changed

apps/src/code-studio/pd/fit_weekend_registration/Joining.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default class Joining extends LabeledFormComponent {
1212
lastName: "Last name",
1313
email: "Email",
1414
phone: "Phone number",
15-
ableToAttend: "Are you able to attend your assigned FiT Weekend?"
15+
ableToAttend: "Are you able to attend your assigned FiT Workshop?"
1616
};
1717

1818
static associatedFields = Object.keys(Joining.labels);
@@ -52,7 +52,7 @@ export default class Joining extends LabeledFormComponent {
5252

5353
<FormGroup>
5454
<ControlLabel>
55-
Your assigned Facilitator-in-Training (FiT) Weekend is:
55+
Your assigned Facilitator-in-Training (FiT) Workshop is:
5656
<br />
5757
<strong>
5858
FiT {this.props.city}, {this.props.date}
@@ -61,7 +61,7 @@ export default class Joining extends LabeledFormComponent {
6161
{this.radioButtonsFor("ableToAttend")}
6262
{this.props.data.ableToAttend === "No" &&
6363
<p>
64-
If you're unable to attend your assigned FiT Weekend, please
64+
If you're unable to attend your assigned FiT Workshop, please
6565
contact <a href="mailto:[email protected]">[email protected]</a> as
6666
soon as possible so we can assist you.
6767
</p>

apps/src/code-studio/pd/fit_weekend_registration/Releases.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default class Releases extends LabeledFormComponent {
2626
<h4>Section 3: Releases</h4>
2727
<FormGroup>
2828
<ControlLabel>
29-
Please read this <a target="_blank" href="https://docs.google.com/document/d/%3Cspan%20class="x x-first x-last">12NVUcqccNRbVukoGMCserwSpg4vfG0vNlEqTxr6oit0/edit">photo release.</a>
29+
Please read this <a target="_blank" href="https://docs.google.com/document/d/%3Cspan%20class="x x-first x-last">1zke9hlGbI1XbSzwQ1rNZofXuXaOboJuTFPW2Z_XOA1w/edit">photo release.</a>
3030
</ControlLabel>
3131
{this.singleCheckboxFor("photoRelease")}
3232
<ControlLabel>
@@ -61,7 +61,7 @@ export default class Releases extends LabeledFormComponent {
6161
<p>
6262
We're excited you're planning to join us this summer! You will receive
6363
more information about travel approximately six weeks before the FiT
64-
Weekend. In the meantime, please <strong>do not</strong> book your flight,
64+
Workshop. In the meantime, please <strong>do not</strong> book your flight,
6565
and make sure to contact <a href="mailto:[email protected]">[email protected]</a> with any questions. We look
6666
forward to meeting you this summer!
6767
</p>

apps/src/code-studio/pd/fit_weekend_registration/TravelPlans.jsx

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ export default class TravelPlans extends LabeledFormComponent {
1717
contactRelationship: "Relationship to you:",
1818
contactPhone: "Phone number:",
1919
dietaryNeeds: "Do you have any dietary needs or food allergies?",
20-
dietaryNeedsDetails: "Please provide details about your food allergy.",
20+
dietaryNeedsDetails: "Please provide details about your dietary needs.",
2121
addressStreet: "Street",
2222
addressCity: "City",
2323
addressState: "State",
2424
addressZip: "Zip",
25-
howTraveling: "Code.org provides a round trip flight for every FiT Weekend attendee. If you choose to fly, we will provide you with detailed flight booking instructions approximately six weeks prior to the event. If you choose not to fly, and live at least 25 miles from the event location, Code.org will provide you with a $150 gift card to help cover the cost of driving, trains, or public transit. Code.org is not able to provide reimbursement for the cost of driving, trains, or public transit if you live less than 25 miles from the event location. How will you travel to the FiT Weekend?",
26-
needHotel: "Code.org provides a hotel room for every FiT Weekend attendee. Attendees will not be required to share a room. Would you like a hotel room at the FiT Weekend?",
25+
howTraveling: "Code.org provides a round trip flight for every FiT Workshop attendee. If you choose to fly, we will provide you with detailed flight booking instructions approximately six weeks prior to the event. If you choose not to fly, and live at least 25 miles from the event location, Code.org will provide you with a $150 gift card to help cover the cost of driving, trains, or public transit. Code.org is not able to provide reimbursement for the cost of driving, trains, or public transit if you live less than 25 miles from the event location. How will you travel to the FiT Workshop?",
26+
needHotel: "Code.org provides a hotel room for every FiT Workshop attendee. Attendees will not be required to share a room. Would you like a hotel room at the FiT Workshop?",
2727
needAda: "Do you require an ADA accessible hotel room?",
28-
explainAda: "Please explain your specific accommodation needs."
28+
needDisabilitySupport: "Do you have a disability and/or require accommodation in order to fully participate in our event? If so, please select yes, and you will be contacted by someone from our staff to discuss your specific needs."
2929
};
3030

3131
static associatedFields = Object.keys(TravelPlans.labels).concat([
@@ -63,16 +63,12 @@ export default class TravelPlans extends LabeledFormComponent {
6363
);
6464
}
6565

66-
if (data.dietaryNeeds && data.dietaryNeeds.includes('Food Allergy')) {
66+
if (data.dietaryNeeds && (data.dietaryNeeds.includes('Food Allergy') || data.dietaryNeeds.includes('Other'))) {
6767
requiredFields.push('dietaryNeedsDetails');
6868
}
6969

7070
if (data.needHotel === 'Yes') {
7171
requiredFields.push("needAda");
72-
73-
if (data.needAda === 'Yes') {
74-
requiredFields.push("explainAda");
75-
}
7672
}
7773

7874
return requiredFields;
@@ -98,7 +94,7 @@ export default class TravelPlans extends LabeledFormComponent {
9894
{this.checkBoxesFor("dietaryNeeds")}
9995
{
10096
this.props.data.dietaryNeeds &&
101-
this.props.data.dietaryNeeds.includes('Food Allergy') &&
97+
(this.props.data.dietaryNeeds.includes('Food Allergy') || this.props.data.dietaryNeeds.includes('Other')) &&
10298
this.largeInputFor("dietaryNeedsDetails")
10399
}
104100
</FormGroup>
@@ -126,18 +122,14 @@ export default class TravelPlans extends LabeledFormComponent {
126122

127123
<FormGroup>
128124
{this.radioButtonsWithAdditionalTextFieldsFor("howTraveling", {
129-
'I will carpool with another FiT Weekend attendee (Please note who)': 'carpooling_with_attendee'
125+
'I will carpool with another FiT Workshop attendee (Please note who)': 'carpooling_with_attendee'
130126
})}
131127
{this.radioButtonsFor("needHotel")}
132128
{
133129
this.props.data.needHotel === 'Yes' &&
134130
this.radioButtonsFor("needAda")
135131
}
136-
{
137-
this.props.data.needHotel === 'Yes' &&
138-
this.props.data.needAda === 'Yes' &&
139-
this.largeInputFor("explainAda")
140-
}
132+
{this.radioButtonsFor("needDisabilitySupport")}
141133
</FormGroup>
142134
</FormGroup>
143135
);
@@ -154,11 +146,8 @@ export default class TravelPlans extends LabeledFormComponent {
154146
if (data.needHotel !== 'Yes') {
155147
changes.needAda = undefined;
156148
}
157-
if (changes.needAda !== 'Yes') {
158-
changes.explainAda = undefined;
159-
}
160149

161-
if (data.dietaryNeeds && !data.dietaryNeeds.includes('Food Allergy')) {
150+
if (data.dietaryNeeds && !data.dietaryNeeds.includes('Food Allergy') && !data.dietaryNeeds.includes('Other')) {
162151
changes.dietaryNeedsDetails = undefined;
163152
}
164153

dashboard/app/models/pd/fit_weekend_registration_base.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,20 @@ def self.options
5656
'Halal',
5757
'Gluten Free',
5858
'Food Allergy',
59+
'Other'
5960
],
6061
liveFarAway: YES_OR_NO,
6162
addressState: get_all_states_with_dc.to_h.values,
6263
howTraveling: [
6364
'I will drive by myself',
64-
'I will carpool with another FiT Weekend attendee (Please note who)',
65+
'I will carpool with another FiT Workshop attendee (Please note who)',
6566
'Flying',
6667
'Amtrak or regional train service',
6768
'Public transit (e.g., city bus or light rail)',
6869
],
6970
needHotel: YES_OR_NO,
7071
needAda: YES_OR_NO,
72+
needDisabilitySupport: YES_OR_NO,
7173
photoRelease: [YES],
7274
liabilityWaiver: [YES],
7375
}.freeze
@@ -88,6 +90,7 @@ def self.required_fields
8890
:live_far_away,
8991
:how_traveling,
9092
:need_hotel,
93+
:need_disability_support,
9194
:photo_release,
9295
:liability_waiver,
9396
:agree_share_contact,
@@ -116,7 +119,7 @@ def dynamic_required_fields(hash)
116119
]
117120
end
118121

119-
if hash[:dietary_needs].try(:include?, 'Food Allergy')
122+
if hash[:dietary_needs].try(:include?, 'Food Allergy') || hash[:dietary_needs].try(:include?, 'Other')
120123
requireds.concat [
121124
:dietary_needs_details
122125
]

dashboard/app/views/pd/fit_weekend_registration/new.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%script{src: minifiable_asset_path('js/pd/fit_weekend_registration/new.js'), data: @script_data}
33

44
%h1
5-
2019-20 FiT Weekend Registration
5+
2019-20 FiT Workshop Registration
66

77
#application-container
88
-# populated by React

dashboard/app/views/pd/fit_weekend_registration/submitted.html.haml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44

55
- if @registration.accepted?
66
%h1
7-
Thank you for completing the FiT Weekend registration form
7+
Thank you for completing the FiT Workshop registration form
88
%p
9-
Thank you for submitting your FiT Weekend registration form. We’re excited you’re
9+
Thank you for submitting your FiT Workshop registration form. We’re excited you’re
1010
planning to join us this summer! You will receive more information about travel
11-
approximately six weeks before the FiT Weekend. In the meantime, please
11+
approximately six weeks before the FiT Workshop. In the meantime, please
1212
%strong
1313
do not
1414
book your flight, and make sure to contact
1515
= link_to(email, "mailto:#{email}")
1616
with any questions. We look forward to meeting you this summer!
1717
- else
1818
%h1
19-
Thank you for completing the FiT Weekend registration form
19+
Thank you for completing the FiT Workshop registration form
2020
%p
21-
Thank you for submitting your FiT Weekend registration form. We noticed you responded
22-
that you’re not able to attend your assigned FiT weekend. Please contact us at
21+
Thank you for submitting your FiT Workshop registration form. We noticed you responded
22+
that you’re not able to attend your assigned FiT Workshop. Please contact us at
2323
= link_to(email, "mailto:#{email}")
2424
so that we can assist you.

dashboard/app/views/pd/fit_weekend_registration/unauthorized.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
= stylesheet_link_tag 'css/pd', media: 'all'
33

44
%p
5-
If you are a facilitator who has been accepted to a FiT Weekend, please sign in with the
5+
If you are a facilitator who has been accepted to a FiT Workshop, please sign in with the
66
same Code.org account you used to submit your facilitator application. Please
77
email <a href="mailto:[email protected]">[email protected]</a> for support.

dashboard/test/factories/pd_factories.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,6 +1478,7 @@
14781478
liability_waiver "Yes"
14791479
live_far_away "Yes"
14801480
need_hotel "No"
1481+
need_disability_support "No"
14811482
photo_release "Yes"
14821483
end
14831484

dashboard/test/models/pd/fit_weekend_registration_base_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Pd::FitWeekendRegistrationBaseTest < ActiveSupport::TestCase
2424
"Form data liveFarAway",
2525
"Form data howTraveling",
2626
"Form data needHotel",
27+
"Form data needDisabilitySupport",
2728
"Form data photoRelease",
2829
"Form data liabilityWaiver",
2930
"Form data agreeShareContact",

0 commit comments

Comments
 (0)