2011-05-08 08:29:21 +00:00
|
|
|
= form_for :user, :html => {:id => "combo_form"} do |f|
|
|
|
|
%h2
|
2011-09-15 21:02:16 +00:00
|
|
|
= t("titles.adopt", :thing => t("defaults.thing").titleize)
|
2011-05-08 08:29:21 +00:00
|
|
|
#common_fields
|
2011-09-14 23:50:39 +00:00
|
|
|
= f.label "email", t("labels.email"), :id => "user_email_label"
|
2011-09-15 00:21:19 +00:00
|
|
|
%em
|
|
|
|
= image_tag "lock.svg", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
|
2011-08-30 03:50:03 +00:00
|
|
|
= f.text_field "email", :value => params[:user] ? params[:user][:email] : nil, :tabindex => 1
|
2011-09-14 23:50:39 +00:00
|
|
|
= f.label "new" , radio_button_tag("user", "new", true, :tabindex => 2).html_safe + t("labels.user_new")
|
|
|
|
= f.label "existing", radio_button_tag("user", "existing").html_safe + t("labels.user_existing")
|
2011-05-08 08:29:21 +00:00
|
|
|
#user_sign_up_fields
|
2011-09-14 23:50:39 +00:00
|
|
|
= f.label "name", t("labels.name"), :id => "user_name_label"
|
2011-09-15 00:21:19 +00:00
|
|
|
%em
|
|
|
|
= t("captions.public")
|
2011-05-08 08:29:21 +00:00
|
|
|
= f.text_field "name", :tabindex => 3
|
2011-09-14 23:50:39 +00:00
|
|
|
= f.label "organization", t("labels.organization"), :id => "user_organization_label"
|
2011-09-15 00:21:19 +00:00
|
|
|
%em
|
|
|
|
= t("captions.public")
|
2011-05-08 08:29:21 +00:00
|
|
|
= f.text_field "organization", :tabindex => 4
|
2011-09-14 23:50:39 +00:00
|
|
|
= f.label "voice_number", t("labels.voice_number"), :id => "user_voice_number_label"
|
2011-09-15 00:21:19 +00:00
|
|
|
%em
|
|
|
|
= image_tag "lock.svg", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
|
2011-05-08 08:29:21 +00:00
|
|
|
= f.text_field "voice_number", :tabindex => 5
|
2011-09-14 23:50:39 +00:00
|
|
|
= f.label "sms_number", t("labels.sms_number"), :id => "user_sms_number_label"
|
2011-09-15 00:21:19 +00:00
|
|
|
%em
|
|
|
|
= image_tag "lock.svg", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
|
2011-05-08 08:29:21 +00:00
|
|
|
= f.text_field "sms_number", :tabindex => 6
|
2011-09-14 23:50:39 +00:00
|
|
|
= f.label "password_confirmation", t("labels.password_choose"), :id => "user_password_confirmation_label"
|
2011-09-15 00:21:19 +00:00
|
|
|
%em
|
|
|
|
= image_tag "lock.svg", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
|
2011-05-08 08:29:21 +00:00
|
|
|
= f.password_field "password_confirmation", :tabindex => 7
|
2011-09-14 23:50:39 +00:00
|
|
|
= f.submit t("buttons.sign_up"), :tabindex => 8
|
2011-05-08 08:29:21 +00:00
|
|
|
%p
|
2011-09-14 23:50:39 +00:00
|
|
|
= t("defaults.tos", :tos => link_to(t("titles.tos"), tos_path, :tabindex => 3, :id => "tos_link")).html_safe
|
2011-05-08 08:29:21 +00:00
|
|
|
#user_sign_in_fields{:style => "display: none;"}
|
2011-09-14 23:50:39 +00:00
|
|
|
= f.label "password", t("labels.password"), :id => "user_password_label"
|
2011-09-15 00:21:19 +00:00
|
|
|
%em
|
|
|
|
= image_tag "lock.svg", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
|
2011-05-08 08:29:21 +00:00
|
|
|
= f.password_field "password", :tabindex => 0
|
2011-09-14 23:50:39 +00:00
|
|
|
= f.label "remember_me", (f.check_box("remember_me", :checked => true, :tabindex => 0).html_safe + t("labels.remember_me")), :id => "user_remember_me_label"
|
|
|
|
= f.submit t("buttons.sign_in"), :tabindex => 0
|
2011-05-08 08:29:21 +00:00
|
|
|
%p
|
2011-09-14 23:50:39 +00:00
|
|
|
= link_to t("links.forgot_password"), "#", :id => "user_forgot_password_link", :tabindex => 0
|
2011-05-08 08:29:21 +00:00
|
|
|
#user_forgot_password_fields{:style => "display: none;"}
|
2011-09-14 23:50:39 +00:00
|
|
|
= f.submit t("buttons.email_password"), :tabindex => 0
|
2011-05-08 08:29:21 +00:00
|
|
|
%p
|
2011-09-14 23:50:39 +00:00
|
|
|
= link_to t("links.remembered_password"), "#", :id => "user_remembered_password_link", :tabindex => 0
|