Sha256: 9974ed2645142d3e3a9c1c954d9aff1d3d29fd5158d13b2104049abebf74f90b

Contents?: true

Size: 1.03 KB

Versions: 33

Compression:

Stored size: 1.03 KB

Contents

- fields = %w(person_type first_name last_name name short_name email phone fax mobile skype www twitter legal_form capital immatriculation_number_1 immatriculation_number_2 european_union_vat_number address.street address.street_bis address.city address.zip address.country)

doctype xml
Workbook(
  xmlns="urn:schemas-microsoft-com:office:spreadsheet"
  xmlns:o="urn:schemas-microsoft-com:office:office"
  xmlns:x="urn:schemas-microsoft-com:office:excel"
  xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
  xmlns:html="http://www.w3.org/TR/REC-html40"
)
  Worksheet ss:Name="People"
    Table
      Row
        - fields.each do |field|
          Cell: Data ss:Type="String" = Dorsale::CustomerVault::Person.t(field)

      - @people_without_pagination.each do |person|
        Row
          - fields.each do |field|
            Cell: Data ss:Type="String"
              - if field.include?("address.")
                = person.address.public_send(field.gsub("address.", ""))
              - else
                = person.public_send(:try, field)

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
dorsale-3.0.3 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-3.0.2 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-3.0.1 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-3.0.0 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.7.3 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.7.2 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.7.1 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.7.0 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.6.8 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.6.7 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.6.6 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.6.5 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.6.4 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.6.3 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.6.2 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.6.1 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.6.0 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.5.0 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.4.3 app/views/dorsale/customer_vault/people/list.xls.slim
dorsale-2.4.2 app/views/dorsale/customer_vault/people/list.xls.slim