Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 055c2a79c7
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 29 lines (29 sloc) 0.931 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
= simple_form_for(@lead) do |f|
  = f.error_notification
  .inputs
    = f.input :company_name, :required => true
    = f.simple_fields_for :contact do |c|
      = c.input :first_name, :required => true
      = c.input :last_name
      = c.input :designation
      = c.input :email
      = field_set_tag "Contact Details" do
        = f.simple_fields_for :phones do |p|
          = p.input :phone_type, :collection => Phone::PHONE_TYPE
          = p.input :country_code
          = p.input :phone_number
      = field_set_tag "Address" do
        = f.simple_fields_for :addresses do |a|
          = a.input :street1
          = a.input :street2
          = a.input :city
          = a.input :country
          = a.input :zipcode
    = field_set_tag "Description" do
      = f.input :industry
      = f.input :status
      = f.input :source
      = f.input :website
      = f.input :description
  .actions
    = f.submit "Save Lead"
Something went wrong with that request. Please try again.