Sha256: 0ec5585684fca9f5e2805cf6df427d790213737676fced35cdd95e8675fb3746

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

class EffectiveEmailTemplatesDatatable < Effective::Datatable
  datatable do
    order :subject, :asc

    col :id, visible: false
    col :slug
    col :subject
    col :from
    col :cc, visible: false, label: 'CC'
    col :bcc, visible: false, label: 'BCC'
    col :body, visible: false

    actions_col partial: '/admin/email_templates/actions', partial_as: 'email_template'
  end

  collection do
    Effective::EmailTemplate.all
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_email_templates-0.6.1 app/datatables/effective_email_templates_datatable.rb
effective_email_templates-0.6.0 app/datatables/effective_email_templates_datatable.rb