2011-04-04 04:00:34 +00:00
|
|
|
<%= form_for(@hydrant, :html => {:id => "adoption_form"}) do |f| %>
|
2011-03-17 18:46:06 +00:00
|
|
|
<h2>Adopt this Hydrant</h2>
|
2011-03-22 08:45:44 +00:00
|
|
|
<%= f.hidden_field "id" %>
|
|
|
|
<%= f.hidden_field "user_id", :value => current_user.id %>
|
2011-04-04 01:20:52 +00:00
|
|
|
<%= f.label "name", "Give this hydrant a name", :id => "hydrant_name_label" %>
|
2011-03-22 08:45:44 +00:00
|
|
|
<%= f.text_field "name", :tabindex => 1 %>
|
2011-04-04 04:24:35 +00:00
|
|
|
<%= f.submit "Adopt!", :tabindex => 2 %>
|
2011-03-22 08:45:44 +00:00
|
|
|
<p>By adopting this hydrant, you agree to the <%= link_to "Terms of Service", "#", :tabindex => 3 %>.</p>
|
2011-03-07 08:56:32 +00:00
|
|
|
<% end %>
|
2011-03-27 19:44:15 +00:00
|
|
|
<%= render(:partial => 'users/edit_profile') %>
|
2011-04-04 04:18:59 +00:00
|
|
|
<%= render(:partial => 'sessions/sign_out') %>
|