Sha256: 69216b912a869f49d7f7c366acb665fa9950e8f42d60ccfb7d7b234547f8bcd2

Contents?: true

Size: 1.87 KB

Versions: 4

Compression:

Stored size: 1.87 KB

Contents

= horizontal_form_for @person, as: :person, multipart: true do |f|
  .panel.panel-default
    .panel-heading: .panel-title = t("customer_vault.identity_informations")
    .panel-body
      - if @person.corporation?
        = f.input :corporation_name

      - if @person.individual?
        = f.input :first_name
        = f.input :last_name

      = f.input :short_name
      = render "dorsale/forms/avatar", f: f
      = f.input :tag_list, collection: @tags, input_html: {multiple: true}

  .panel.panel-default
    .panel-heading: .panel-title = t("customer_vault.additional_informations")
    .panel-body
      - if @person.corporation?
        = f.input :capital
        = f.input :immatriculation_number
        = f.input :number_of_employees
        = f.input :revenue
        = f.input :european_union_vat_number
        = f.input :legal_form


      - if @person.individual?
        = f.input :title
        = f.association :corporation, collection: policy_scope(Dorsale::CustomerVault::Corporation), input_html: {class: 'select2'}
      = f.input :context, as: :text, input_html: {rows: 4}
  .panel.panel-default
    .panel-heading: .panel-title = t("customer_vault.contact_informations")
    .panel-body
      = f.input :email
      = f.input :phone
      = f.input :mobile
      = f.input :fax
      = f.input :skype
      = f.input :www,      as: :string
      = f.input :twitter,  as: :string
      = f.input :facebook, as: :string
      = f.input :linkedin, as: :string
      = f.input :viadeo,   as: :string
      - if @person.corporation?
        = f.input :societe_com

  .panel.panel-default
    .panel-heading: .panel-title = t("customer_vault.address_informations")
    .panel-body
      = f.simple_fields_for :address do |af|
        = af.input :street
        = af.input :street_bis
        = af.input :zip
        = af.input :city
        = af.input :country, as: :string

  = form_buttons

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dorsale-3.6.1 app/views/dorsale/customer_vault/people/_form.html.slim
dorsale-3.6.0 app/views/dorsale/customer_vault/people/_form.html.slim
dorsale-3.5.2 app/views/dorsale/customer_vault/people/_form.html.slim
dorsale-3.5.1 app/views/dorsale/customer_vault/people/_form.html.slim