Permalink
Browse files

added checkboxes and images from the first RW

  • Loading branch information...
1 parent c170c19 commit d479e52b87c2efcd959e0d5833f037ff056d76d2 @JuddL333 JuddL333 committed Apr 9, 2012
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -42,7 +42,7 @@ def create_token(registration)
exp_month: registration.card_expiry_month,
exp_year: registration.card_expiry_year,
cvc: registration.card_cvc },
- amount: 5000,
+ amount: 10000,
currency: "usd")
end
@@ -1,7 +1,9 @@
class Registration < ActiveRecord::Base
validates_uniqueness_of :email
validates_presence_of :name, :email
- validates_inclusion_of :usrlib_membership, :in => [ true, false ], :message => "question not answered"
+ validates_inclusion_of :agreed_to_refund_policy,
+ :agreed_to_min_requirements, :in => [ true, false ],
+ :message => "question not answered"
attr_accessor :card_number, :card_cvc
attr_accessor :card_expiry_month, :card_expiry_year
@@ -66,11 +66,12 @@
#venue.eightcol.last
%p
- = link_to(image_tag("/assets/venue/1_thumb.jpg", class: "photo"), "/assets/venue/1.jpg", rel: "facebox")
- = link_to(image_tag("/assets/venue/2_thumb.jpg", class: "photo"), "/assets/venue/2.jpg", rel: "facebox")
- = link_to(image_tag("/assets/venue/3_thumb.jpg", class: "photo"), "/assets/venue/3.jpg", rel: "facebox")
- = link_to(image_tag("/assets/venue/4_thumb.jpg", class: "photo"), "/assets/venue/4.jpg", rel: "facebox")
- %p.small Photos courtesy of Mike R. Manzano
+ = link_to(image_tag("/assets/venue/rw_1c_thumb.jpg", class: "photo"), "/assets/venue/rw_1c.jpg", rel: "facebox")
+ = link_to(image_tag("/assets/venue/rw_1b_thumb.jpg", class: "photo"), "/assets/venue/rw_1b.jpg", rel: "facebox")
+ = link_to(image_tag("/assets/venue/rw_1a_thumb.jpg", class: "photo"), "/assets/venue/rw_1a.jpg", rel: "facebox")
+ = link_to(image_tag("/assets/venue/rw_1d_thumb.jpg", class: "photo"), "/assets/venue/rw_1d.jpg", rel: "facebox")
+
+ %p.small Photos of the first Ruby Weekend at usr/lib
%p
= link_to(image_tag("/assets/usrlib_logo.png", align: "right"), "http://usrlib.org", :target => 'new')
@@ -39,9 +39,15 @@
= f.text_field(:card_expiry_year, size: 5, maxlength: 4)
%ol
+
+
+ %li
+ = f.check_box(:agreed_to_refund_policy)
+ = label_tag(:agreed_to_refund_policy, 'I agree to the Ruby Weekend refund policy')
+
%li
- = label_tag(:usrlib_membership, "Are you a member of /usr/lib?")
- = f.select(:usrlib_membership, options_for_select([ [ "Yes, I am a member.", true ], [ "No, I am not a member.", false ] ], @registration.usrlib_membership), include_blank: true)
+ = f.check_box(:agreed_to_min_requirements)
+ = label_tag(:agreed_to_min_requirements, 'My laptop meets the minimum requirements')
.section-wrapper.controls
%ol
@@ -0,0 +1,6 @@
+class AddCheckBoxesToRegistrations < ActiveRecord::Migration
+ def change
+ add_column :registrations, :agreed_to_refund_policy, :boolean
+ add_column :registrations, :agreed_to_min_requirements, :boolean
+ end
+end
View
@@ -11,20 +11,22 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120409192312) do
+ActiveRecord::Schema.define(:version => 20120409213731) do
create_table "registrations", :force => true do |t|
- t.string "name"
- t.string "email"
- t.integer "amount"
- t.string "token"
- t.string "card_last_four"
- t.string "card_type"
- t.timestamp "created_at"
- t.timestamp "updated_at"
- t.boolean "usrlib_membership"
- t.integer "rw_number"
- t.datetime "rw_date"
+ t.string "name"
+ t.string "email"
+ t.integer "amount"
+ t.string "token"
+ t.string "card_last_four"
+ t.string "card_type"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.boolean "usrlib_membership"
+ t.integer "rw_number"
+ t.datetime "rw_date"
+ t.boolean "agreed_to_refund_policy"
+ t.boolean "agreed_to_min_requirements"
end
create_table "waitlists", :force => true do |t|

0 comments on commit d479e52

Please sign in to comment.