Sha256: 9714d528d972ac62b440826cdc680228425a78a6e59d9a1132278a231ced4a31
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
<?xml version="1.0"?> <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="<%= AlchemyCrm::Contact.model_name.human(:count => @contacts.count) -%>"> <Table> <Row> <% @columns.each do |col| %> <Cell> <Data ss:Type="String"><%= AlchemyCrm::Contact.human_attribute_name(col) %></Data> </Cell> <% end %> </Row> <% @contacts.each do |contact| %> <Row> <% @columns.each do |col| %> <% value = contact.send(col).to_s.strip %> <Cell> <% if col == 'salutation' && !value.blank? %> <Data ss:Type="String"><%= ::I18n.t(value.to_sym, :scope => 'alchemy_crm.salutations', :default => value) %></Data> <% elsif !value.blank? && (col == 'verified' || col == 'disabled') %> <Data ss:Type="String"><%= alchemy_crm_t(value) %></Data> <% else %> <Data ss:Type="String"><%= value %></Data> <% end %> </Cell> <% end %> </Row> <% end %> </Table> </Worksheet> </Workbook>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alchemy_crm-2.0.5 | app/views/alchemy_crm/admin/contacts/index.xls.erb |