adopt-a-hydrant/app/views/forms/_combo_form.html.erb

35 lines
2.2 KiB
Plaintext
Raw Normal View History

<%= form_for :user, :remote => true, :html => {:id => "combo_form"} do |f| %>
<h2>Adopt this Hydrant</h2>
2011-03-06 18:28:00 +00:00
<div id="common_fields">
<%= f.label "email", "Email address", :id => "user_email_label" %>
<%= f.text_field "email", :tabindex => 1 %>
<%= f.label "new" , radio_button_tag("user", "new", true, :tabindex => 2).html_safe + "I haven't signed up yet" %><br />
<%= f.label "existing", radio_button_tag("user", "existing").html_safe + "I've already signed up" %><br />
2011-03-05 04:22:03 +00:00
</div>
2011-03-17 21:15:42 +00:00
<div id="user_sign_up_fields">
2011-03-06 18:28:00 +00:00
<%= f.label "name", "Name", :id => "user_name_label" %>
<%= f.text_field "name", :tabindex => 3 %>
<%= f.label "organization", "Organization", :id => "user_organization_label" %>
<%= f.text_field "organization", :tabindex => 4 %>
<%= f.label "voice_number", "Phone number", :id => "user_voice_number_label" %>
<%= f.text_field "voice_number", :tabindex => 5 %>
<%= f.label "sms_number", "SMS number", :id => "user_sms_number_label" %>
<%= f.text_field "sms_number", :tabindex => 6 %>
<%= f.label "password_confirmation", "Choose a password", :id => "user_password_confirmation_label" %>
<%= f.password_field "password_confirmation", :tabindex => 7 %>
2011-03-17 21:15:42 +00:00
<%= f.submit "Sign up", :tabindex => 8, :id => "user_sign_up_submit" %>
2011-03-07 08:56:32 +00:00
<p>By signing up, you agree to the <%= link_to "Terms of Service", "#", :tabindex => 9 %>.</p>
2011-03-05 04:22:03 +00:00
</div>
2011-03-17 21:15:42 +00:00
<div id="user_sign_in_fields" style="display: none;">
2011-03-06 18:28:00 +00:00
<%= f.label "password", "Password", :id => "user_password_label" %>
<%= f.password_field "password", :tabindex => 0 %>
2011-03-07 01:46:06 +00:00
<%= f.label "remember_me", (f.check_box("remember_me", :checked => true, :tabindex => 0).html_safe + "Stay signed in"), :id => "user_remember_me_label" %><br />
2011-03-17 21:15:42 +00:00
<%= f.submit "Sign in", :tabindex => 0, :id => "user_sign_in_submit" %>
2011-03-06 18:28:00 +00:00
<p><%= link_to "Forgot your password?", "#", :id => "user_forgot_password_link", :tabindex => 0 %></p>
2011-03-05 04:22:03 +00:00
</div>
2011-03-06 18:28:00 +00:00
<div id="user_forgot_password_fields" style="display: none;">
<%= f.submit "Email me my password", :tabindex => 0, :id => "user_forgot_password_submit" %>
<p><%= link_to "Never mind. I remembered my password.", "#", :id => "user_remembered_password", :tabindex => 0 %></p>
2011-03-05 04:22:03 +00:00
</div>
<% end %>