adopt-a-hydrant/app/views/hydrants/_adopt.html.erb

11 lines
549 B
Plaintext
Raw Normal View History

2011-03-18 02:33:20 +00:00
<%= form_for @hydrant, :html => {:id => "adoption_form"} do |f| %>
<h2>Adopt this Hydrant</h2>
<%= f.hidden_field "id" %>
<%= f.hidden_field "user_id", :value => current_user.id %>
<%= f.label "name", "Give your hydrant a name", :id => "hydrant_name_label" %>
<%= f.text_field "name", :tabindex => 1 %>
<%= f.submit "Adopt!", :tabindex => 2, :id => "adoption_form_submit" %>
<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:17:20 +00:00
<%= render(:partial => 'users/sign_out') %>