adopt-a-hydrant/app/views/hydrants/adopt.html.haml

14 lines
585 B
Plaintext
Raw Normal View History

2011-05-31 11:12:02 +00:00
= form_for :hydrant, :url => hydrants_path, :method => :put, :html => {:id => "adoption_form"} do |f|
2011-05-08 08:29:21 +00:00
%h2
Adopt this Hydrant
= f.hidden_field "id"
= f.hidden_field "user_id", :value => current_user.id
= f.label "name", "Give this hydrant a name", :id => "hydrant_name_label"
= f.text_field "name", :tabindex => 1
= f.submit "Adopt!", :tabindex => 2
%p
By adopting this hydrant, you agree to the
2011-09-11 15:50:30 +00:00
= link_to("Terms of Service", tos_path, :tabindex => 3, :id => "tos_link") + "."
2011-05-08 08:29:21 +00:00
= render :partial => 'users/edit_profile'
= render :partial => 'sessions/sign_out'