|
23 | 23 | = f.input :major, input_html: { "data-validate" => "presence" } |
24 | 24 | = f.input :gender, input_html: { "data-validate" => "presence" } |
25 | 25 |
|
| 26 | + - if !HackathonConfig['digital_hackathon'] |
| 27 | + .card.mb-4 |
| 28 | + .card-header Travel information |
| 29 | + .card-body |
| 30 | + - travel_state = [email protected]_record? && @questionnaire.travel_not_from_school |
| 31 | + = f.input :travel_not_from_school, label: "I will not be traveling from my school" |
| 32 | + = f.input :travel_location, input_html: { "data-validate" => "presence", disabled: !travel_state }, wrapper_html: { style: travel_state ? "" : "display: none" }, label: "Travel Location" |
| 33 | + |
| 34 | + = f.association :bus_list, label: "Bus list", include_blank: 'Not travelling on a sponsored bus' |
| 35 | + = f.input :boarded_bus, as: :boolean, label: "Boarded bus", input_html: { checked: @questionnaire.boarded_bus_at.present? } |
| 36 | + = f.input :is_bus_captain, label: "Is Bus Captain" |
| 37 | + - else |
| 38 | + .card.mb-4 |
| 39 | + .card-header Agreements |
| 40 | + .card-body |
| 41 | + .supporting-text |
| 42 | + Please read the |
| 43 | + = link_to asset_url(HackathonConfig['agreement_pdf_asset']), target: '_blank' do |
| 44 | + #{HackathonConfig['name']} Agreement |
| 45 | + %span.fa.fa-external-link.icon-space-l-half |
| 46 | + = f.input :agreement_accepted, label: "I accept the #{HackathonConfig['name']} agreement.", input_html: { "data-validate" => "presence" } |
| 47 | + |
| 48 | + .supporting-text |
| 49 | + Please read the |
| 50 | + %a{ href:"http://static.mlh.io/docs/mlh-code-of-conduct.pdf", target: "_blank" } |
| 51 | + MLH Code of Conduct |
| 52 | + %span.fa.fa-external-link.icon-space-l-half |
| 53 | + = f.input :code_of_conduct_accepted, label: "I accept the MLH Code of Conduct.", input_html: { "data-validate" => "presence" } |
| 54 | +
|
| 55 | + .supporting-text |
| 56 | + I agree to the terms of both the |
| 57 | + <a href="https://github.com/MLH/mlh-policies/tree/master/prize-terms-and-conditions" target="_blank">MLH Contest Terms</a> and Conditions and the |
| 58 | + <a href="https://mlh.io/privacy" target="_blank">MLH Privacy Policy</a>. Please note that you may receive pre and post-event informational e-mails and occasional messages about hackathons from MLH as per the MLH Privacy Policy. |
| 59 | + = f.input :data_sharing_accepted, label: "I accept the MLH policies.", input_html: { "data-validate" => "presence" } |
| 60 | +
|
26 | 61 | .col-xl-6 |
27 | 62 | .card.mb-4 |
28 | 63 | .card-header Special notices |
29 | 64 | .card-body |
30 | 65 | = f.input :shirt_size, as: :select, collection: Questionnaire::POSSIBLE_SHIRT_SIZES, include_blank: "(select one...)", input_html: { "data-validate" => "presence" } |
31 | | - = f.input :dietary_restrictions, label: "Dietary restrictions" |
| 66 | + - if !HackathonConfig['digital_hackathon'] |
| 67 | + = f.input :dietary_restrictions, label: "Dietary restrictions" |
32 | 68 | = f.input :special_needs, label: "Special needs" |
33 | 69 | .card.mb-4 |
34 | 70 | .card-header Resume |
|
49 | 85 |
|
50 | 86 | = f.input :can_share_info, label: "Share resume with employers?" |
51 | 87 |
|
52 | | - .col-xl-6 |
53 | | - .card.mb-4 |
54 | | - .card-header Travel information |
55 | | - .card-body |
56 | | - - travel_state = [email protected]_record? && @questionnaire.travel_not_from_school |
57 | | - = f.input :travel_not_from_school, label: "I will not be traveling from my school" |
58 | | - = f.input :travel_location, input_html: { "data-validate" => "presence", disabled: !travel_state }, wrapper_html: { style: travel_state ? "" : "display: none" }, label: "Travel Location" |
| 88 | + - if !HackathonConfig['digital_hackathon'] |
| 89 | + .col-xl-12 |
| 90 | + .card.mb-4 |
| 91 | + .card-header Agreements |
| 92 | + .card-body |
| 93 | + .supporting-text |
| 94 | + Please read the |
| 95 | + = link_to asset_url(HackathonConfig['agreement_pdf_asset']), target: '_blank' do |
| 96 | + #{HackathonConfig['name']} Agreement |
| 97 | + %span.fa.fa-external-link.icon-space-l-half |
| 98 | + = f.input :agreement_accepted, label: "I accept the #{HackathonConfig['name']} agreement.", input_html: { "data-validate" => "presence" } |
59 | 99 |
|
60 | | - = f.association :bus_list, label: "Bus list", include_blank: 'Not travelling on a sponsored bus' |
61 | | - = f.input :boarded_bus, as: :boolean, label: "Boarded bus", input_html: { checked: @questionnaire.boarded_bus_at.present? } |
62 | | - = f.input :is_bus_captain, label: "Is Bus Captain" |
| 100 | + .supporting-text |
| 101 | + Please read the |
| 102 | + %a{ href:"http://static.mlh.io/docs/mlh-code-of-conduct.pdf", target: "_blank" } |
| 103 | + MLH Code of Conduct |
| 104 | + %span.fa.fa-external-link.icon-space-l-half |
| 105 | + = f.input :code_of_conduct_accepted, label: "I accept the MLH Code of Conduct.", input_html: { "data-validate" => "presence" } |
63 | 106 |
|
64 | | - .col-xl-6 |
65 | | - .card.mb-4 |
66 | | - .card-header Agreements |
67 | | - .card-body |
68 | | - .supporting-text |
69 | | - Please read the |
70 | | - = link_to asset_url(HackathonConfig['agreement_pdf_asset']), target: '_blank' do |
71 | | - #{HackathonConfig['name']} Agreement |
72 | | - %span.fa.fa-external-link.icon-space-l-half |
73 | | - = f.input :agreement_accepted, label: "I accept the #{HackathonConfig['name']} agreement.", input_html: { "data-validate" => "presence" } |
74 | | - |
75 | | - .supporting-text |
76 | | - Please read the |
77 | | - %a{ href:"http://static.mlh.io/docs/mlh-code-of-conduct.pdf", target: "_blank" } |
78 | | - MLH Code of Conduct |
79 | | - %span.fa.fa-external-link.icon-space-l-half |
80 | | - = f.input :code_of_conduct_accepted, label: "I accept the MLH Code of Conduct.", input_html: { "data-validate" => "presence" } |
81 | | -
|
82 | | - .supporting-text |
83 | | - I agree to the terms of both the |
84 | | - <a href="https://github.com/MLH/mlh-policies/tree/master/prize-terms-and-conditions" target="_blank">MLH Contest Terms</a> and Conditions and the |
85 | | - <a href="https://mlh.io/privacy" target="_blank">MLH Privacy Policy</a>. Please note that you may receive pre and post-event informational e-mails and occasional messages about hackathons from MLH as per the MLH Privacy Policy. |
86 | | - = f.input :data_sharing_accepted, label: "I accept the MLH policies.", input_html: { "data-validate" => "presence" } |
| 107 | + .supporting-text |
| 108 | + I agree to the terms of both the |
| 109 | + <a href="https://github.com/MLH/mlh-policies/tree/master/prize-terms-and-conditions" target="_blank">MLH Contest Terms</a> and Conditions and the |
| 110 | + <a href="https://mlh.io/privacy" target="_blank">MLH Privacy Policy</a>. Please note that you may receive pre and post-event informational e-mails and occasional messages about hackathons from MLH as per the MLH Privacy Policy. |
| 111 | + = f.input :data_sharing_accepted, label: "I accept the MLH policies.", input_html: { "data-validate" => "presence" } |
87 | 112 |
|
88 | 113 | .center.mb-4 |
89 | 114 | = f.button :submit, value: ( @questionnaire.new_record? ? 'Create' : 'Save' ), class: 'btn-primary' |
0 commit comments