Skip to content

Commit

Permalink
added volunteer details textarea to new event form
Browse files Browse the repository at this point in the history
[fixes #45628531]
  • Loading branch information
Polyrhythm authored and michaelglass committed Mar 18, 2013
1 parent 8ce0295 commit 2f560a3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/views/events/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
<%= f.text_area :details, :rows => 4, :class => "input-xxlarge"%>
</div>

<div class="field">
<%= f.label :volunteer_details, 'Volunteer Details' %>
<%= f.text_area :volunteer_details, :rows => 4, :class => "input-xxlarge"%>
</div>

<div class="actions">
<%= f.submit %>
</div>
Expand Down
5 changes: 5 additions & 0 deletions db/migrate/20130308043232_add_volunteer_details_to_events.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddVolunteerDetailsToEvents < ActiveRecord::Migration
def change
add_column :events, :volunteer_details, :text
end
end
1 change: 1 addition & 0 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
t.string "time_zone"
t.integer "meetup_volunteer_event_id"
t.integer "meetup_student_event_id"
t.text "volunteer_details"
t.string "public_email"
end

Expand Down
4 changes: 4 additions & 0 deletions spec/requests/new_event_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@
page.should have_field(label)
page.field_labeled(label)[:value].should == "organizer@mail.com"
end

it "should have 'Volunteer Details'" do
page.should have_field("Volunteer Details")
end
end

0 comments on commit 2f560a3

Please sign in to comment.