Sha256: ae9915f1ecde364ca6efd5a70d9cfce991c6d417124c94a3b816abfdf3d6cdf2

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 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)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
e9_crm-0.1.10 app/views/e9_crm/campaigns/_table.html.haml