Skip to content

Commit

Permalink
Added backgorund image and notes field
Browse files Browse the repository at this point in the history
  • Loading branch information
paultannenbaum committed Dec 20, 2011
1 parent 6e5d244 commit 5fe2778
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
Binary file added app/assets/images/powder_run.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/application.scss.css
Expand Up @@ -5,7 +5,7 @@


body {
background-color: #005F6B;
background: #fff url(powder_run.jpg) top center no-repeat;
font-family: sans-serif;
font-size: 14px;
}
Expand Down
4 changes: 4 additions & 0 deletions app/views/events/_form.html.erb
Expand Up @@ -31,6 +31,10 @@
<%= f.label :Number_of_extra_seats_available_for_carpool %><br />
<%= f.number_field :carpool_seats, :min => 0 %>
</div>
<div class="field">
<%= f.label :Any_additional_notes %><br />
<%= f.text_area :notes %>
</div>
<div class="actions">
<%= f.submit %>
</div>
Expand Down
7 changes: 7 additions & 0 deletions app/views/events/show.html.erb
Expand Up @@ -27,6 +27,13 @@
<b>Carpool seats:</b>
<%= @event.carpool_seats %>
</p>

<% if @event.notes %>
<p>
<b>Additional Notes:</b>
<%= @event.notes %>
</p>
<% end %>
</div>

<div class="footer">
Expand Down
5 changes: 5 additions & 0 deletions db/migrate/20111220065710_add_notes_field_to_events.rb
@@ -0,0 +1,5 @@
class AddNotesFieldToEvents < ActiveRecord::Migration
def change
add_column :events, :notes, :text
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20111128002225) do
ActiveRecord::Schema.define(:version => 20111220065710) do

create_table "events", :force => true do |t|
t.string "name"
Expand All @@ -21,6 +21,7 @@
t.integer "carpool_seats", :default => 0
t.datetime "created_at"
t.datetime "updated_at"
t.text "notes"
end

end

0 comments on commit 5fe2778

Please sign in to comment.