hackathon_manager 0.4.4 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/hackathon_manager/core.sass +1 -1
- data/app/assets/stylesheets/hackathon_manager/forms/_confirmation.sass +2 -4
- data/app/assets/stylesheets/hackathon_manager/forms/_forms.sass +161 -120
- data/app/assets/stylesheets/hackathon_manager/general/_base.sass +16 -12
- data/app/assets/stylesheets/hackathon_manager/general/_button.sass +15 -11
- data/app/assets/stylesheets/hackathon_manager/general/_header.sass +67 -0
- data/app/assets/stylesheets/hackathon_manager/general/_main.sass +4 -2
- data/app/assets/stylesheets/hackathon_manager/general/_mixins.sass +59 -53
- data/app/assets/stylesheets/hackathon_manager/mailer.sass +3 -3
- data/app/assets/stylesheets/variables.sass +100 -11
- data/app/controllers/bus_lists_controller.rb +1 -1
- data/app/controllers/questionnaires_controller.rb +1 -1
- data/app/controllers/rsvps_controller.rb +1 -1
- data/app/controllers/users/registrations_controller.rb +1 -1
- data/app/helpers/hackathon_manager_helper.rb +8 -0
- data/app/inputs/deletable_attachment_input.rb +1 -1
- data/app/models/questionnaire.rb +14 -0
- data/app/views/bus_lists/show.html.haml +5 -2
- data/app/views/devise/passwords/edit.html.haml +15 -14
- data/app/views/devise/passwords/new.html.haml +6 -4
- data/app/views/devise/registrations/_form.html.haml +5 -6
- data/app/views/devise/registrations/edit.html.haml +18 -20
- data/app/views/devise/registrations/new.html.haml +14 -13
- data/app/views/devise/sessions/_form.html.haml +5 -5
- data/app/views/devise/sessions/new.html.haml +10 -9
- data/app/views/layouts/hackathon_manager/_account_nav.html.haml +10 -0
- data/app/views/layouts/hackathon_manager/_footer.html.haml +0 -0
- data/app/views/layouts/hackathon_manager/_header.html.haml +14 -0
- data/app/views/layouts/{_shared_footer.html.haml → hackathon_manager/_shared_footer.html.haml} +1 -1
- data/app/views/layouts/{hackathon_manager.html.haml → hackathon_manager/application.html.haml} +7 -3
- data/app/views/layouts/manage/application.html.haml +2 -2
- data/app/views/manage/questionnaires/_form.html.haml +1 -1
- data/app/views/questionnaires/_form.html.haml +42 -45
- data/app/views/questionnaires/edit.html.haml +11 -8
- data/app/views/questionnaires/new.html.haml +6 -6
- data/app/views/questionnaires/show.html.haml +46 -27
- data/app/views/rsvps/show.html.haml +40 -33
- data/config/initializers/devise.rb +2 -1
- data/lib/hackathon_manager/version.rb +1 -1
- metadata +8 -6
- data/app/assets/stylesheets/hackathon_manager/general/_sidebar.sass +0 -70
- data/app/views/layouts/_sidebar.html.haml +0 -25
@@ -4,7 +4,7 @@ class DeletableAttachmentInput < SimpleForm::Inputs::FileInput
|
|
4
4
|
out = ''
|
5
5
|
out << @builder.file_field(attribute_name, merged_input_options)
|
6
6
|
if object.send("#{attribute_name}?")
|
7
|
-
out << @builder.input("delete_#{attribute_name}", as: :boolean, label: "Remove?")
|
7
|
+
out << @builder.input("delete_#{attribute_name}", as: :boolean, label: "Remove?", wrapper_html: { class: 'deletable_attachment_input' })
|
8
8
|
end
|
9
9
|
out.html_safe
|
10
10
|
end
|
data/app/models/questionnaire.rb
CHANGED
@@ -145,6 +145,20 @@ class Questionnaire < ApplicationRecord
|
|
145
145
|
SlackInviteWorker.perform_async(id)
|
146
146
|
end
|
147
147
|
|
148
|
+
def verbal_status
|
149
|
+
if acc_status == "rsvp_denied"
|
150
|
+
"Not Attending"
|
151
|
+
elsif acc_status == "rsvp_confirmed"
|
152
|
+
"Accepted & Attending"
|
153
|
+
elsif acc_status == "accepted"
|
154
|
+
"Accepted, Awaiting RSVP"
|
155
|
+
elsif ["pending", "waitlist", "late_waitlist"].include? acc_status
|
156
|
+
"Pending Review"
|
157
|
+
elsif acc_status == "denied"
|
158
|
+
"Denied"
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
148
162
|
private
|
149
163
|
|
150
164
|
def consolidate_school_names
|
@@ -1,5 +1,8 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
- title "Bus Captain"
|
2
|
+
.form-container
|
3
|
+
%h1.section-title
|
4
|
+
Bus
|
5
|
+
%span.emphasized Captain
|
3
6
|
%p#notice= notice
|
4
7
|
|
5
8
|
%p Thank you for being a bus captain! Below is any information you may need about your passengers.
|
@@ -1,14 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
=
|
1
|
+
- title 'Change Password'
|
2
|
+
.form-container
|
3
|
+
.section-title
|
4
|
+
Change Your
|
5
|
+
%span.emphasized Password
|
6
|
+
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
7
|
+
= f.error_notification
|
8
|
+
= f.input :reset_password_token, as: :hidden
|
9
|
+
= f.full_error :reset_password_token
|
10
|
+
.form-inputs
|
11
|
+
= f.input :password, label: "New Password", required: true, autofocus: true
|
12
|
+
= f.input :password_confirmation, label: "Confirm", required: true
|
13
|
+
.form-actions
|
14
|
+
= f.button :submit, "Change My Password"
|
15
|
+
= render "devise/shared/links"
|
@@ -8,9 +8,8 @@
|
|
8
8
|
= f.input :email, required: true, autofocus: true
|
9
9
|
= f.input :password, required: true
|
10
10
|
= f.input :password_confirmation, required: true, label:"Confirm"
|
11
|
-
.form-actions
|
12
|
-
.
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
= link_to "Sign In".html_safe, new_user_session_path
|
11
|
+
.form-actions.right
|
12
|
+
= f.button :submit, "Register"
|
13
|
+
%p.session-link
|
14
|
+
Have an account?
|
15
|
+
= link_to "Sign in!".html_safe, new_user_session_path
|
@@ -1,20 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
.form-
|
18
|
-
|
19
|
-
Unhappy? #{link_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure? Your account and application will be permanently erased." }, method: :delete}
|
20
|
-
= link_to "Back", :back
|
1
|
+
- title 'Edit Account'
|
2
|
+
.form-container
|
3
|
+
%h1.section-title
|
4
|
+
Edit
|
5
|
+
%span.emphasized Account
|
6
|
+
.form-container
|
7
|
+
= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
|
8
|
+
= f.error_notification
|
9
|
+
.form-inputs
|
10
|
+
= f.input :email, required: true, autofocus: true, wrapper_html: { class: 'input--half' }
|
11
|
+
= f.input :current_password, required: true, wrapper_html: { class: 'input--half' }
|
12
|
+
- if devise_mapping.confirmable? && resource.pending_reconfirmation?
|
13
|
+
%p
|
14
|
+
Currently waiting confirmation for: #{resource.unconfirmed_email}
|
15
|
+
= f.input :password, autocomplete: "off", hint: "Leave blank if you don't want to change it", required: false, label: "New password", wrapper_html: { class: 'input--half' }
|
16
|
+
= f.input :password_confirmation, required: false, label: "New password confirmation", wrapper_html: { class: 'input--half' }
|
17
|
+
.form-actions.right
|
18
|
+
= f.button :submit, "Update"
|
@@ -1,15 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
- title 'Register'
|
2
|
+
.form-container.signup
|
3
|
+
%h1.section-title.center
|
4
|
+
Register for
|
5
|
+
%span.emphasized= Rails.configuration.hackathon['name']
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
- if Rails.configuration.hackathon['registration_is_open'] || Rails.configuration.hackathon['disclaimer']
|
8
|
+
#disclaimer
|
9
|
+
- unless Rails.configuration.hackathon['registration_is_open']
|
10
|
+
.center
|
11
|
+
%strong Registration is now closed. Thanks to everyone who applied!
|
12
|
+
%br
|
13
|
+
- if Rails.configuration.hackathon['disclaimer']
|
14
|
+
= markdown(Rails.configuration.hackathon['disclaimer'])
|
14
15
|
|
15
|
-
|
16
|
+
= render 'form'
|
@@ -9,10 +9,10 @@
|
|
9
9
|
= f.input :email, required: false, input_html: { autofocus: true }
|
10
10
|
= f.input :password, required: false
|
11
11
|
= f.input :remember_me, as: :boolean if devise_mapping.rememberable?
|
12
|
-
.form-actions
|
12
|
+
.form-actions.right
|
13
13
|
= f.button :submit, "Sign In"
|
14
|
-
%p
|
15
|
-
|
16
|
-
= link_to "
|
17
|
-
|
14
|
+
%p.session-link
|
15
|
+
No account?
|
16
|
+
= link_to "Register!".html_safe, new_user_registration_path
|
17
|
+
%p.session-link
|
18
18
|
= link_to "Forgot password", new_user_password_path
|
@@ -1,9 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
- title 'Sign In'
|
2
|
+
.form-container.login
|
3
|
+
%h1.section-title.center
|
4
|
+
Sign in to
|
5
|
+
%span.emphasized= Rails.configuration.hackathon['name']
|
6
|
+
- if notice
|
7
|
+
.form-success
|
8
|
+
.success_message
|
9
|
+
%p#notice= notice
|
10
|
+
= render 'form'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
- if current_user.present?
|
2
|
+
.account-nav
|
3
|
+
.account-nav__wrapper
|
4
|
+
.account-nav__links
|
5
|
+
= active_link_to 'Account', edit_user_registration_path, class: 'account-nav__link', active_class: 'account-nav__link--active'
|
6
|
+
- if current_user.questionnaire.present? && current_user.questionnaire.can_rsvp?
|
7
|
+
= active_link_to 'RSVP', rsvp_path, class: 'account-nav__link', active_class: 'account-nav__link--active'
|
8
|
+
= active_link_to 'Application', questionnaires_path, class: 'account-nav__link', active_class: 'account-nav__link--active'
|
9
|
+
- if current_user.questionnaire.present? && current_user.questionnaire.eligible_for_a_bus? && current_user.questionnaire.is_bus_captain?
|
10
|
+
= active_link_to 'Bus Captain'.html_safe, bus_list_path, class: 'account-nav__link', active_class: 'account-nav__link--active'
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
.header
|
2
|
+
.header__wrapper.account-nav__wrapper
|
3
|
+
- if Rails.configuration.hackathon['logo_asset']
|
4
|
+
.header-logo
|
5
|
+
= link_to root_path do
|
6
|
+
= image_tag Rails.configuration.hackathon['logo_asset'], id: 'logo', alt: "#{Rails.configuration.hackathon['name']} logo", title: Rails.configuration.hackathon['name'], class: 'header-logo__image'
|
7
|
+
- else
|
8
|
+
.header-nav
|
9
|
+
= btn_link_to "Home", root_path
|
10
|
+
.header-nav
|
11
|
+
- if user_signed_in?
|
12
|
+
- if current_user.admin?
|
13
|
+
= btn_link_to "Manage", manage_root_path
|
14
|
+
= btn_link_to "Sign Out", destroy_user_session_path, method: :delete
|
data/app/views/layouts/{_shared_footer.html.haml → hackathon_manager/_shared_footer.html.haml}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
%link{ href:'//fonts.googleapis.com/css?family=Open+Sans:300,400,600', rel: 'stylesheet', type: 'text/css' }
|
1
|
+
%link{ href:'//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700', rel: 'stylesheet', type: 'text/css' }
|
data/app/views/layouts/{hackathon_manager.html.haml → hackathon_manager/application.html.haml}
RENAMED
@@ -8,8 +8,12 @@
|
|
8
8
|
= csrf_meta_tags
|
9
9
|
|
10
10
|
%body
|
11
|
-
= render "layouts/
|
11
|
+
= render "layouts/hackathon_manager/header"
|
12
|
+
= render "layouts/hackathon_manager/account_nav"
|
12
13
|
#main
|
13
|
-
|
14
|
+
%section.section
|
15
|
+
.container
|
16
|
+
= yield
|
17
|
+
= render "layouts/hackathon_manager/footer"
|
14
18
|
= javascript_include_tag "hackathon_manager/application"
|
15
|
-
= render "layouts/shared_footer"
|
19
|
+
= render "layouts/hackathon_manager/shared_footer"
|
@@ -6,7 +6,7 @@
|
|
6
6
|
= csrf_meta_tags
|
7
7
|
|
8
8
|
%body
|
9
|
-
= render "layouts/
|
9
|
+
= render "layouts/hackathon_manager/header"
|
10
10
|
= javascript_include_tag "hackathon_manager/manage/application"
|
11
11
|
#main
|
12
12
|
#manageNav
|
@@ -23,4 +23,4 @@
|
|
23
23
|
= link_to "Sidekiq", sidekiq_web_path
|
24
24
|
= link_to "Blazer", blazer_path
|
25
25
|
= yield
|
26
|
-
= render "layouts/shared_footer"
|
26
|
+
= render "layouts/hackathon_manager/shared_footer"
|
@@ -32,7 +32,7 @@
|
|
32
32
|
= f.input :experience, as: :select, collection: Questionnaire::POSSIBLE_EXPERIENCES.invert, include_blank: "(select one...)", label: "Experience", input_html: { "data-validate" => "presence" }
|
33
33
|
= f.input :interest, as: :select, collection: Questionnaire::POSSIBLE_INTERESTS.invert, include_blank: "(select one...)", label: "Interest", input_html: { "data-validate" => "presence" }
|
34
34
|
|
35
|
-
= f.input :resume, as: :deletable_attachment, hint: "Must be
|
35
|
+
= f.input :resume, as: :deletable_attachment, hint: "Must be under 2MB", input_html: { "data-validate" => "file-max-size file-content-type", "data-validate-file-max-size" => "2097152", "data-validate-file-content-type" => "application/pdf" }, label: "Resume (PDF)"
|
36
36
|
|
37
37
|
= f.input :portfolio_url, label: "Portfolio Link", placeholder:"http://mywebsite.com"
|
38
38
|
= f.input :vcs_url, label: "GitHub/BitBucket", placeholder:"https://github.com/coderit"
|
@@ -14,63 +14,60 @@
|
|
14
14
|
= markdown(Rails.configuration.hackathon['disclaimer'])
|
15
15
|
|
16
16
|
.form-inputs
|
17
|
-
= f.input :first_name,
|
18
|
-
= f.input :last_name,
|
19
|
-
= f.input :phone,
|
17
|
+
= f.input :first_name, input_html: { "data-validate" => "presence" }, autofocus: true, wrapper_html: { class: 'input--half' }
|
18
|
+
= f.input :last_name, input_html: { "data-validate" => "presence" }, wrapper_html: { class: 'input--half' }
|
19
|
+
= f.input :phone, label: "Phone number", input_html: { "data-validate" => "presence" }
|
20
20
|
= f.input :date_of_birth, start_year: Date.today.year - 18, end_year: Date.today.year - 90, order: [:month, :day, :year], input_html: { "data-validate" => "presence" }
|
21
21
|
|
22
|
-
= f.input :school_id, as: :school_selection,
|
23
|
-
= f.input :level_of_study,
|
24
|
-
= f.input :major,
|
25
|
-
= f.input :
|
26
|
-
= f.input :
|
27
|
-
= f.input :dietary_restrictions, placeholder: "Allergies, medical assistance, etc.
|
28
|
-
= f.input :special_needs, placeholder: "Any special needs or requests
|
22
|
+
= f.input :school_id, as: :school_selection, input_html: { "data-validate" => "presence" }
|
23
|
+
= f.input :level_of_study, input_html: { "data-validate" => "presence" }, wrapper_html: { class: 'input--half' }
|
24
|
+
= f.input :major, input_html: { "data-validate" => "presence" }, wrapper_html: { class: 'input--half' }
|
25
|
+
= f.input :gender, input_html: { "data-validate" => "presence" }, wrapper_html: { class: 'input--half' }
|
26
|
+
= f.input :shirt_size, as: :select, collection: Questionnaire::POSSIBLE_SHIRT_SIZES, include_blank: "(select one...)", input_html: { "data-validate" => "presence" }, wrapper_html: { class: 'input--half' }
|
27
|
+
= f.input :dietary_restrictions, as: :text, placeholder: "Allergies, medical assistance, etc.", label: "Health restrictions", wrapper_html: { class: 'input--half' }
|
28
|
+
= f.input :special_needs, as: :text, placeholder: "Any special needs or requests", label: "Special needs", wrapper_html: { class: 'input--half' }
|
29
29
|
|
30
|
-
.
|
30
|
+
.right
|
31
31
|
%button.button{ type: "button", "data-wizard" => "next" } Next
|
32
32
|
|
33
33
|
.wizard-stage
|
34
34
|
.form-inputs
|
35
|
-
= f.input :experience, as: :select, collection: Questionnaire::POSSIBLE_EXPERIENCES.invert, include_blank: "(select one...)", label: "Experience", input_html: { "data-validate" => "presence" }
|
36
|
-
= f.input :interest, as: :select, collection: Questionnaire::POSSIBLE_INTERESTS.invert, include_blank: "(select one...)", label: "Interest", input_html: { "data-validate" => "presence" }
|
35
|
+
= f.input :experience, as: :select, collection: Questionnaire::POSSIBLE_EXPERIENCES.invert, include_blank: "(select one...)", label: "Experience", input_html: { "data-validate" => "presence" }, wrapper_html: { class: 'input--half' }
|
36
|
+
= f.input :interest, as: :select, collection: Questionnaire::POSSIBLE_INTERESTS.invert, include_blank: "(select one...)", label: "Interest", input_html: { "data-validate" => "presence" }, wrapper_html: { class: 'input--half' }
|
37
37
|
|
38
|
-
= f.input :portfolio_url, label: "Portfolio link", placeholder:"http://mywebsite.com"
|
39
|
-
= f.input :vcs_url, label: "GitHub/Bitbucket", placeholder:"https://github.com/coderit"
|
40
|
-
= f.input :resume, as: :deletable_attachment, hint: "Must be
|
41
|
-
= f.input :can_share_info, as: :radio_buttons, collection: { " Yes!" => true, " No thank you" => false }, label: "Share info with sponsors?"
|
42
|
-
%p{ style: "margin-top: -10px" }
|
43
|
-
%i
|
44
|
-
%small Our sponsors would receive info such as your name, email, resume, GitHub link, etc
|
45
|
-
|
46
|
-
%hr
|
38
|
+
= f.input :portfolio_url, label: "Portfolio link", placeholder: "http://mywebsite.com"
|
39
|
+
= f.input :vcs_url, label: "GitHub/Bitbucket link", placeholder: "https://github.com/coderit"
|
40
|
+
= f.input :resume, as: :deletable_attachment, hint: "Must be a PDF, under 2MB", input_html: { "data-validate" => "file-max-size file-content-type", "data-validate-file-max-size" => "2097152", "data-validate-file-content-type" => "application/pdf" }, label: "Resume"
|
41
|
+
= f.input :can_share_info, as: :radio_buttons, collection: { " Yes please!" => true, " No, thank you." => false }, label: "Share info with sponsors?", hint: "Our sponsors would receive info such as your name, email, resume, GitHub link, etc"
|
47
42
|
|
48
43
|
- travel_state = !@questionnaire.new_record? && @questionnaire.travel_not_from_school
|
49
|
-
= f.input :travel_not_from_school, as: :radio_buttons, collection: { " My
|
44
|
+
= f.input :travel_not_from_school, as: :radio_buttons, collection: { " My school" => false, " Somewhere else" => true }, label: "I am traveling from..."
|
50
45
|
= f.input :travel_location, input_html: { "data-validate" => "presence", disabled: !travel_state }, wrapper_html: { style: travel_state ? "" : "display: none" }, label: "Where are you traveling from?", placeholder: "New York City"
|
46
|
+
|
51
47
|
%hr
|
52
|
-
%div
|
53
|
-
%p
|
54
|
-
%small
|
55
|
-
Please read the
|
56
|
-
= link_to asset_url(Rails.configuration.hackathon['agreement_pdf_asset']), target: '_blank' do
|
57
|
-
#{Rails.configuration.hackathon['name']} Agreement
|
58
|
-
%span.fa.fa-external-link.icon-space-l-half
|
59
|
-
= f.input :agreement_accepted, as: :formatted_boolean, label: "I accept the #{Rails.configuration.hackathon['name']} Agreement", input_html: { "data-validate" => "presence" }
|
60
|
-
%p
|
61
|
-
%small
|
62
|
-
Please read the
|
63
|
-
%a{ href:"http://static.mlh.io/docs/mlh-code-of-conduct.pdf", target: "_blank" }
|
64
|
-
MLH Code of Conduct
|
65
|
-
%span.fa.fa-external-link.icon-space-l-half
|
66
|
-
= f.input :code_of_conduct_accepted, as: :formatted_boolean, label: "I accept the MLH Code of Conduct", input_html: { "data-validate" => "presence" }
|
67
|
-
%p
|
68
|
-
%small
|
69
|
-
I agree to the terms of both the
|
70
|
-
<a href="https://github.com/MLH/mlh-policies/tree/master/prize-terms-and-conditions" target="_blank">MLH Contest Terms</a> and Conditions and the
|
71
|
-
<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.
|
72
|
-
= f.input :data_sharing_accepted, as: :formatted_boolean, label: "I accept the MLH policies", input_html: { "data-validate" => "presence" }
|
73
48
|
|
74
|
-
.
|
49
|
+
.form-inputs
|
50
|
+
.supporting-text
|
51
|
+
Please read the
|
52
|
+
= link_to asset_url(Rails.configuration.hackathon['agreement_pdf_asset']), target: '_blank' do
|
53
|
+
#{Rails.configuration.hackathon['name']} Agreement
|
54
|
+
%span.fa.fa-external-link.icon-space-l-half
|
55
|
+
= f.input :agreement_accepted, as: :formatted_boolean, label: "I accept the #{Rails.configuration.hackathon['name']} agreement.", input_html: { "data-validate" => "presence" }
|
56
|
+
|
57
|
+
.supporting-text
|
58
|
+
Please read the
|
59
|
+
%a{ href:"http://static.mlh.io/docs/mlh-code-of-conduct.pdf", target: "_blank" }
|
60
|
+
MLH Code of Conduct
|
61
|
+
%span.fa.fa-external-link.icon-space-l-half
|
62
|
+
= f.input :code_of_conduct_accepted, as: :formatted_boolean, label: "I accept the MLH Code of Conduct.", input_html: { "data-validate" => "presence" }
|
63
|
+
|
64
|
+
.supporting-text
|
65
|
+
I agree to the terms of both the
|
66
|
+
<a href="https://github.com/MLH/mlh-policies/tree/master/prize-terms-and-conditions" target="_blank">MLH Contest Terms</a> and Conditions and the
|
67
|
+
<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.
|
68
|
+
= f.input :data_sharing_accepted, as: :formatted_boolean, label: "I accept the MLH policies.", input_html: { "data-validate" => "presence" }
|
69
|
+
|
70
|
+
.right
|
75
71
|
%button.button{ type: "button", "data-wizard" => "previous" } Previous
|
72
|
+
|
76
73
|
= f.button :submit, value: ( @questionnaire.new_record? ? 'Apply' : 'Save' )
|
@@ -1,10 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
- title "Edit Application"
|
2
|
+
.form-container
|
3
|
+
%h1.section-title
|
4
|
+
Edit
|
5
|
+
%span.emphasized Application
|
6
6
|
|
7
|
-
|
7
|
+
= render 'form'
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
- if @questionnaire.valid?
|
10
|
+
.form-container
|
11
|
+
.right
|
12
|
+
%p.session-link
|
13
|
+
= link_to 'Cancel', questionnaires_path
|
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
- title "Apply"
|
2
|
+
.form-container
|
3
|
+
%h1.section-title
|
4
|
+
Apply for
|
5
|
+
%span.emphasized= Rails.configuration.hackathon['name']
|
6
6
|
|
7
|
-
|
7
|
+
= render 'form'
|
@@ -1,35 +1,54 @@
|
|
1
1
|
- title "Application"
|
2
|
-
.form-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
%br
|
14
|
-
%br
|
15
|
-
= link_to "RSVP NOW »".html_safe, rsvp_path
|
2
|
+
.form-container
|
3
|
+
- if flash[:notice]
|
4
|
+
#disclaimer
|
5
|
+
%p#notice= flash[:notice]
|
6
|
+
|
7
|
+
#disclaimer
|
8
|
+
%h1.section-title
|
9
|
+
Application
|
10
|
+
%span.emphasized Status
|
11
|
+
- if @questionnaire.blank?
|
12
|
+
%strong AWAITING APPLICATION
|
16
13
|
- else
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
%strong= @questionnaire.verbal_status.upcase
|
15
|
+
- if @questionnaire.can_rsvp?
|
16
|
+
- if @questionnaire.did_rsvp?
|
17
|
+
- if @questionnaire.acc_status == "rsvp_confirmed"
|
18
|
+
%p
|
19
|
+
Congratulations! You're all set to attend #{Rails.configuration.hackathon['name']}!
|
20
|
+
%p
|
21
|
+
Expect an email closer to February 11th with additional logistics & travel info.
|
22
|
+
%br
|
23
|
+
%br
|
24
|
+
%p.center
|
25
|
+
= btn_link_to "Change RSVP", rsvp_path
|
20
26
|
- else
|
21
|
-
%p
|
27
|
+
%p
|
28
|
+
Please RSVP so we know if you're attending!
|
29
|
+
%br
|
30
|
+
%br
|
31
|
+
%p.center
|
32
|
+
= btn_link_to "RSVP NOW »".html_safe, rsvp_path
|
22
33
|
- else
|
23
|
-
|
34
|
+
- if Rails.configuration.hackathon['registration_is_open']
|
35
|
+
- if Rails.configuration.hackathon['thanks_for_applying']
|
36
|
+
= markdown(Rails.configuration.hackathon['thanks_for_applying'])
|
37
|
+
- else
|
38
|
+
%p Thanks for applying! You will be notified of your acceptance via email.
|
39
|
+
- else
|
40
|
+
%p Thanks for applying!
|
24
41
|
|
25
|
-
|
26
|
-
|
42
|
+
.form-container
|
43
|
+
%h1.section-title.section-title--actions
|
44
|
+
%span
|
45
|
+
Review your
|
46
|
+
%span.emphasized Application
|
47
|
+
= btn_link_to 'Edit', edit_questionnaires_path, class: 'section-title__action'
|
27
48
|
|
49
|
+
.participant_info
|
28
50
|
= render partial: 'questionnaire_summary'
|
29
51
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
= btn_link_to '<span class="fa fa-user icon-space-r"></span> Edit Account'.html_safe, edit_user_registration_path
|
34
|
-
%p
|
35
|
-
Unhappy? #{link_to "Revoke my application", user_registration_path, data: { confirm: "Are you sure? Your account and application will be permanently erased." }, method: :delete}
|
52
|
+
%br
|
53
|
+
%p.session-link.right
|
54
|
+
Unhappy? #{link_to "Revoke my application", user_registration_path, data: { confirm: "Are you sure? Your account and application will be permanently erased." }, method: :delete}
|