Skip to content

Instantly share code, notes, and snippets.

@brobertsaz
Created March 20, 2013 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brobertsaz/5206282 to your computer and use it in GitHub Desktop.
Save brobertsaz/5206282 to your computer and use it in GitHub Desktop.
agree_to_terms
= form_tag "/auth/identity/register", id: 'loginform' do
= error_messages_for @identity, :header_message => ""
%table
%tr{colspan: 2}
%td
= label_tag :title
= text_field_tag :title, @identity.try(:title), size: '32', class: 'logininput'
%tr
%td
= label_tag :first_name, nil, class: 'required'
= text_field_tag :first_name, @identity.try(:first_name), size: '32', class: 'logininput'
%td
= label_tag :last_name, nil, class: 'required'
= text_field_tag :last_name, @identity.try(:last_name), size: '32', class: 'logininput'
%tr
%td
= label_tag :email, nil, class: 'required'
= email_field_tag :email, @identity.try(:email), size: '32', class: 'logininput'
%td
= label_tag :phone, nil, class: 'required'
= text_field_tag :phone, @identity.try(:phone), size: '32', class: 'logininput'
%tr
%td
= label_tag :password, nil, class: 'required'
= password_field_tag :password, nil, size: '32', class: 'logininput'
%td
= label_tag :password_confirmation, nil, class: 'required'
= password_field_tag :password_confirmation, nil, size: '32', class: 'logininput'
%tr
%td{colspan: 2}
= label_tag 'recaptcha', "Captcha", class: 'required'
= recaptcha_tags
%tr
%td
= check_box_tag :agree_to_terms, "true"
= 'I agree to the'
= link_to 'terms of use', terms_path
%tr
%td{halign: 'right', colspan: 2}
= submit_tag 'Register', class: 'button'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment