Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - content_for :title do
- Sign Up
- .main-box
- %h2 Sign Up
- #new-customer
- = simple_form_for resource, :as => resource_name, :url => customer_create_url do |f|
- - if f.object.errors.any?
- - content_for :errors do
- = render :partial => 'shared/error_messages', :locals => {:object => f.object}
- %p{:style => "margin-top: 0"}
- Already have an account?
- = link_to 'Login here.', login_url
- %fieldset
- %div.grouped
- = f.input :fname, :input_html => { :class => "half" }
- = f.input :lname, :input_html => { :class => "half" }
- %div.grouped
- = 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 }
- = 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" }
- %div.grouped
- = f.input :password, :hint => "(at least six characters)", :input_html => { :class => "half" }
- = f.input :password_confirmation, :input_html => { :class => "half" }
- = f.submit "Sign me up for doggyloot!", :id => "sign-me-up"
- = image_tag "speech-box.png", :id => "speech-box", :alt => ""
- #quote
- %h2 All the cool dogs are doing it!
- %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