Skip to content

Instantly share code, notes, and snippets.

@abacha
Created February 19, 2013 14:50
Show Gist options
  • Select an option

  • Save abacha/4986540 to your computer and use it in GitHub Desktop.

Select an option

Save abacha/4986540 to your computer and use it in GitHub Desktop.
- title t(".title")
%div.pull-left.span6{:style => "margin-left: 0"}
= form_for Person.new, :html => {:class => "validate"} do |f|
%h3.subtitle=t(".new_client")
%div.well.well-small
%div.row-fluid
= form_text_field(f, :name, "span12", :class => "required")
%div.row-fluid
= form_text_field(f, :cpf, "span12", :class => "cpf required")
%div.row-fluid
= form_text_field(f, :email, "span12", :class => "email required")
%div.row-fluid
= form_text_field(f, :phone_mobile, "span12", :class => "phone required")
%div.row-fluid
%br
%button.btn.btn-primary.pull-right{:type => "submit"}=t(:save)
%div.pull-left.span6
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
%h3.subtitle=t(".already_registered")
%div.well.well-small
%div.row-fluid
%div
= f.label :email
= f.email_field :email, :class => "span12"
%div.row-fluid
%div
= f.label :password
= f.password_field :password, :class => "span12"
%div.row-fluid
%div=link_to "Esqueci minha senha", new_password_path(resource_name)
%div.row-fluid
%br
%button.btn.btn-primary.pull-right{:type => "submit"}=t(:login)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment