Sha256: 86b109ce3aefe30f87543b6698a510e18aefb33f1134fdd996ca73f1d7f08784

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 Bytes

Contents

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

    col :updated_at, visible: false
    col :created_at, visible: false
    col :id, visible: false

    col :template_name, label: 'Name'

    col :from, search: EffectiveEmailTemplates.mailer_froms do |email_template|
      ERB::Util.html_escape_once(email_template.from)
    end

    col :cc
    col :bcc
    col :subject
    col :body

    col :content_type, visible: false

    actions_col
  end

  collection do
    Effective::EmailTemplate.all
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_email_templates-1.9.0 app/datatables/effective_email_templates_datatable.rb
effective_email_templates-1.8.0 app/datatables/effective_email_templates_datatable.rb