Sha256: 1131aed3114a7892f594481f70546a7c459968d6d94099ce73a4ed3986a334a8

Contents?: true

Size: 1.33 KB

Versions: 5

Compression:

Stored size: 1.33 KB

Contents

%table.records
  %thead
    %tr
      %th= orderable_column_link(:type)
      %th= orderable_column_link(:name)
      %th= orderable_column_link('campaign_group_name', :campaign_group)
      %th= orderable_column_link(:code)
      %th= orderable_column_link(:affiliate_fee)
      %th= orderable_column_link(:sales_fee)
      %th= e9_t(:actions)
  %tbody
    - if collection.empty?
      %tr
        %td{:colspan => 7}= e9_t(:no_records_text)
    - else
      - collection.each do |record|
        %tr{:id => "ids_#{record.id}", :class => cycle('odd', 'even')}
          %td.record-type
            = record.type[/(.*)Campaign/, 1]
          %td.record-name
            = record.name
          %td.record-campaign-group
            = record.campaign_group_name || e9_t(:no_group, :scope => 'e9_crm.campaigns')
          %td.record-code
            = display_campaign_code(record.code)
          %td.record-affiliate-fee
            = display_campaign_fee(record.affiliate_fee)
          %td.record-sales-fee
            = display_campaign_fee(record.sales_fee)
          %td.links
            - if record.is_a?(AdvertisingCampaign)
              = link_to t(:edit_dated_costs), advertising_campaign_dated_costs_path(record), :class => 'dated-costs'
            = link_to_edit_campaign(record)

- if @controller.should_paginate_index
  = will_paginate collection

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
e9_crm-0.1.16 app/views/e9_crm/campaigns/_table.html.haml
e9_crm-0.1.14 app/views/e9_crm/campaigns/_table.html.haml
e9_crm-0.1.13 app/views/e9_crm/campaigns/_table.html.haml
e9_crm-0.1.12 app/views/e9_crm/campaigns/_table.html.haml
e9_crm-0.1.11 app/views/e9_crm/campaigns/_table.html.haml