Added skip button to payment page

This commit is contained in:
Godwin
2015-09-09 21:36:14 -07:00
parent f949278df0
commit f33e15c6e6
18 changed files with 764 additions and 849 deletions
+4 -4
View File
@@ -22,16 +22,16 @@
%td=date(@registration.departure)
%tr
%th=_'articles.conference_registration.headings.languages'
%td=_!((JSON.parse(@registration.languages).map { |x| _"languages.#{x}" }).join(', ').to_s).html_safe
%td=_!((JSON.parse(@registration.languages || '[]').map { |x| _"languages.#{x}" }).join(', ').to_s).html_safe
%tr
%th=_'articles.conference_registration.headings.housing'
%td=_"articles.conference_registration.questions.housing.#{@registration.housing}"
%td=_"articles.conference_registration.questions.housing.#{@registration.housing || 'none'}"
%tr
%th=_'articles.conference_registration.headings.bike'
%td=_"articles.conference_registration.questions.bike.#{@registration.bike}"
%td=_"articles.conference_registration.questions.bike.#{@registration.bike || 'none'}"
%tr
%th=_'articles.conference_registration.headings.food'
%td=_"articles.conference_registration.questions.food.#{@registration.food}"
%td=_"articles.conference_registration.questions.food.#{@registration.food || 'meat'}"
%tr
%th=_'articles.conference_registration.headings.allergies'
%td
+4
View File
@@ -16,5 +16,9 @@
= number_field_tag :amount, nil, :required => true, :step => 0.01, :min => 0.00
= button_tag :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_tag :skip, :name => :amount, :value => '0.0'
= columns(large: 2)