Sha256: 7ac383928788b71e275c31b994d8e36fb43e1c3d5965b20fe2ec6c71a7be9d54

Contents?: true

Size: 613 Bytes

Versions: 3

Compression:

Stored size: 613 Bytes

Contents

- field_map = local_assigns[:field_map] || records_table_field_map

%table.records
  %tbody
    - if collection.empty?
      %tr
        %td{:colspan => field_map[:fields].length + 1}= e9_t(:no_records_text)
    - else
      - collection.each do |record|
        %tr{:id => "ids_#{record.id}", :class => cycle('odd', 'even')}
          - field_map[:fields].each do |key, value|
            %td{:class => "record-#{key.to_s.dasherize}"}
              = value.respond_to?(:call) ? value.call(record) : record.send(key)
          %td.links
            - field_map[:links][record].each do |link|
              = link

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
e9_crm-0.1.10 app/views/e9_crm/contacts/_table.html.haml
e9_crm-0.1.8 app/views/e9_crm/contacts/_table.html.haml
e9_crm-0.1.7 app/views/e9_crm/contacts/_table.html.haml