adopt-a-hydrant/app/views/contents/_adoption_form.html.erb

13 lines
597 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>
2011-03-07 08:56:32 +00:00
<div id="adoption_fields">
2011-03-08 08:44:27 +00:00
<%= f.hidden_field "id" %>
<%= 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 %>
2011-03-18 02:50:47 +00:00
<%= render :partial => 'sign_out_form' %>