2011-03-17 18:46:06 +00:00
|
|
|
<%= form_for @hydrant, :remote => true, :html => {:id => "adoption_form"} do |f| %>
|
|
|
|
<h2>Adopt this Hydrant</h2>
|
2011-03-07 08:56:32 +00:00
|
|
|
<div id="adoption_fields">
|
2011-03-08 08:44:27 +00:00
|
|
|
<%= f.hidden_field "id" %>
|
2011-03-17 18:46:06 +00:00
|
|
|
<%= f.hidden_field "user_id", :value => current_user.id %>
|
2011-03-08 08:44:27 +00:00
|
|
|
<%= f.label "name", "Give your hydrant a name", :id => "hydrant_name_label" %>
|
2011-03-07 08:56:32 +00:00
|
|
|
<%= f.text_field "name", :tabindex => 1 %>
|
2011-03-08 08:44:27 +00:00
|
|
|
<%= f.submit "Adopt!", :tabindex => 2, :id => "adoption_form_submit" %>
|
2011-03-07 08:56:32 +00:00
|
|
|
<p>By adopting this hydrant, you agree to the <%= link_to "Terms of Service", "#", :tabindex => 3 %>.</p>
|
|
|
|
</div>
|
|
|
|
<% end %>
|