Guest User

Untitled

a guest
Jan 19th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. - content_for :title do
  2. Sign Up
  3.  
  4. .main-box
  5. %h2 Sign Up
  6.  
  7. #new-customer
  8. = simple_form_for resource, :as => resource_name, :url => customer_create_url do |f|
  9. - if f.object.errors.any?
  10. - content_for :errors do
  11. = render :partial => 'shared/error_messages', :locals => {:object => f.object}
  12.  
  13. %p{:style => "margin-top: 0"}
  14. Already have an account?
  15. = link_to 'Login here.', login_url
  16.  
  17. %fieldset
  18. %div.grouped
  19. = f.input :fname, :input_html => { :class => "half" }
  20. = f.input :lname, :input_html => { :class => "half" }
  21. %div.grouped
  22. = f.input :zip, :label => "Zip code", :input_html => { :value => (!resource.zip.nil? ? resource.zip : (session[:captive_customer] && (cc = CaptiveCustomer.find(session[:captive_customer])) ? cc.zip : nil)), :size => 5 }
  23. = f.input :email, :input_html => { :value => (!resource.email.empty? ? resource.email : ((session[:captive_customer] && (cc = CaptiveCustomer.find(session[:captive_customer]))) ? cc.email : nil)), :class => "half" }
  24. %div.grouped
  25. = f.input :password, :hint => "(at least six characters)", :input_html => { :class => "half" }
  26. = f.input :password_confirmation, :input_html => { :class => "half" }
  27.  
  28. = f.submit "Sign me up for doggyloot!", :id => "sign-me-up"
  29.  
  30. = image_tag "speech-box.png", :id => "speech-box", :alt => ""
  31. #quote
  32. %h2 All the cool dogs are doing it!
  33. %p Give us a little info and in exchange, we'll let you know every time we post an amazing, new deal for you and your pooch.
Add Comment
Please, Sign In to add comment