Sha256: 186c12ca9f9c329bc1256fceb4751a8833a65451c0dd544039ac8fb2bd670cb2

Contents?: true

Size: 522 Bytes

Versions: 5

Compression:

Stored size: 522 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
    col :cc
    col :bcc
    col :subject
    col :body

    col :content_type, visible: false

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

  collection do
    Effective::EmailTemplate.all
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
effective_email_templates-1.0.13 app/datatables/effective_email_templates_datatable.rb
effective_email_templates-1.0.12 app/datatables/effective_email_templates_datatable.rb
effective_email_templates-1.0.11 app/datatables/effective_email_templates_datatable.rb
effective_email_templates-1.0.10 app/datatables/effective_email_templates_datatable.rb
effective_email_templates-1.0.9 app/datatables/effective_email_templates_datatable.rb