2011-03-08 08:44:27 +00:00
|
|
|
<%= form_for :user, :remote => true, :html => {:class => "combo_form"} do |f| %>
|
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 already signed up" %><br />
|
2011-03-05 04:22:03 +00:00
|
|
|
</div>
|
2011-03-06 18:28:00 +00:00
|
|
|
<div id="user_new_fields">
|
|
|
|
<%= 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 %>
|
|
|
|
<%= f.submit "Sign up", :tabindex => 8, :id => "user_new_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-06 18:28:00 +00:00
|
|
|
<div id="user_existing_fields" style="display: none;">
|
|
|
|
<%= 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-06 18:28:00 +00:00
|
|
|
<%= f.submit "Sign in", :tabindex => 0, :id => "user_existing_submit" %>
|
|
|
|
<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 %>
|