Godwin
8 years ago
27 changed files with 220 additions and 193 deletions
@ -1,30 +0,0 @@ |
|||||
= columns(medium: 12) do |
|
||||
- if @registration.registration_fees_paid.present? |
|
||||
%p |
|
||||
%strong=_'articles.conference_registration.paragraphs.Payment_Made', :p, vars: { fees_paid: (number_to_currency @registration.registration_fees_paid, unit: '$') } |
|
||||
= _'articles.conference_registration.paragraphs.Payment_Add' |
|
||||
= @this_conference.payment_message.html_safe if @this_conference.payment_message.present? |
|
||||
- elsif @this_conference.payment_message.present? |
|
||||
= @this_conference.payment_message.html_safe |
|
||||
- else |
|
||||
%p=@this_conference.payment_message || (_'articles.conference_registration.paragraphs.Payment', :p) |
|
||||
= columns(large: 9, push: 1) do |
|
||||
= show_errors :payment |
|
||||
= form_tag register_path(@this_conference.slug), class: :payment do |
|
||||
= hidden_field_tag :button, :payment |
|
||||
- payment_amounts = @this_conference.payment_amounts.present? ? @this_conference.payment_amounts : Conference.default_payment_amounts |
|
||||
.graded-options{class: "option-count-#{payment_amounts.size}"} |
|
||||
- payment_amounts.each_with_index do | amount, i | |
|
||||
= button :amount_25, name: :amount, value: amount.to_f.to_s, class: "option-#{i + 1}" do |
|
||||
=_! (number_to_currency amount, unit: '$') |
|
||||
= form_tag register_path(@this_conference.slug), class: ['custom-payment', :centered] do |
|
||||
%span.currency=_!'$' # TODO: this needs to be localized |
|
||||
= numberfield :amount, nil, required: true, step: 0.01, min: 0.00, label: false |
|
||||
= button :custom_amount, value: :payment |
|
||||
%p=_'articles.conference_registration.paragraphs.currency','(amounts are in $USD)' |
|
||||
= form_tag register_path(@this_conference.slug), class: :payment do |
|
||||
= hidden_field_tag :button, :payment |
|
||||
.actions.skip |
|
||||
= button :skip, name: :amount, value: '0.0' |
|
||||
|
|
||||
= columns(large: 2) |
|
@ -1,14 +0,0 @@ |
|||||
= columns(medium: 12) do |
|
||||
%p=_'articles.conference_registration.paragraphs.Registration_Info', :p, vars: { city: @this_conference.city_name } |
|
||||
= form_tag register_path(@this_conference.slug), class: [:centered, :clearfix] do |
|
||||
= columns(medium: 12) do |
|
||||
= radiobuttons :housing, ConferenceRegistration.all_housing_options, @registration.housing, 'articles.conference_registration.questions.housing', heading: 'articles.conference_registration.headings.housing', vertical: true, big: true, inline: true |
|
||||
= fieldset :hosting_dates, heading: 'articles.conference_registration.headings.arrival_and_departure', vars: { city: @this_conference.city_name } do |
|
||||
= selectfield :arrival, @registration.arrival || @this_conference.start_date, conference_days_options_list(:before_plus_one) |
|
||||
= selectfield :departure, @registration.departure || @this_conference.start_date, conference_days_options_list(:after_minus_one) |
|
||||
= radiobuttons :bike, ConferenceRegistration.all_bike_options, @registration.bike, 'articles.conference_registration.questions.bike', heading: 'articles.conference_registration.headings.bike', inline: true, big: true |
|
||||
= radiobuttons :food, ConferenceRegistration.all_food_options, @registration.food, 'articles.conference_registration.questions.food', heading: 'articles.conference_registration.headings.food', inline: true, big: true |
|
||||
= emailfield :companion, (@registration.housing_data['companions'] || [nil]).first, heading: 'articles.conference_registration.headings.companion', help: 'articles.conference_registration.paragraphs.companion', big: true |
|
||||
= textfield :allergies, @registration.allergies, heading: 'articles.conference_registration.headings.allergies' |
|
||||
= textarea :other, @registration.other, plain: true, heading: 'articles.conference_registration.headings.other' |
|
||||
= button :register, value: :questions |
|
@ -1,13 +0,0 @@ |
|||||
= form_for @workshop, url: conference_workshops_path(@conference, @workshop) do |f| |
|
||||
.columns |
|
||||
= f.text_field :title |
|
||||
= f.text_field :slug |
|
||||
.columns.medium-4 |
|
||||
%h2=_'workshop.form.help.title', :t |
|
||||
=_'workshop.form.help', :p |
|
||||
.columns.medium-8 |
|
||||
= f.text_area :info |
|
||||
= f.number_field :workshop_stream_id |
|
||||
= f.number_field :workshop_presentation_style |
|
||||
.columns |
|
||||
= f.actions :save |
|
Loading…
Reference in new issue