Sha256: c4fb7536f4d20ccdc46dc6fbe0471bf32b3f91fdb99cc1fc073f90f901c5daa0

Contents?: true

Size: 516 Bytes

Versions: 53

Compression:

Stored size: 516 Bytes

Contents

module Admin
  class EffectiveCpdCategoriesDatatable < Effective::Datatable
    datatable do
      length :all
      reorder :position

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

      col :title do |cpd_category|
        content_tag(:div, cpd_category.title)
      end

      col :body, visible: false
      col :cpd_activities, label: 'Activities'

      actions_col
    end

    collection do
      Effective::CpdCategory.all.deep
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
effective_cpd-0.6.7 app/datatables/admin/effective_cpd_categories_datatable.rb
effective_cpd-0.6.6 app/datatables/admin/effective_cpd_categories_datatable.rb
effective_cpd-0.6.5 app/datatables/admin/effective_cpd_categories_datatable.rb
effective_cpd-0.6.4 app/datatables/admin/effective_cpd_categories_datatable.rb
effective_cpd-0.6.3 app/datatables/admin/effective_cpd_categories_datatable.rb
effective_cpd-0.6.2 app/datatables/admin/effective_cpd_categories_datatable.rb
effective_cpd-0.6.1 app/datatables/admin/effective_cpd_categories_datatable.rb
effective_cpd-0.6.0 app/datatables/admin/effective_cpd_categories_datatable.rb
effective_cpd-0.5.4 app/datatables/admin/effective_cpd_categories_datatable.rb
effective_cpd-0.5.3 app/datatables/admin/effective_cpd_categories_datatable.rb
effective_cpd-0.5.2 app/datatables/admin/effective_cpd_categories_datatable.rb
effective_cpd-0.5.1 app/datatables/admin/effective_cpd_categories_datatable.rb
effective_cpd-0.5.0 app/datatables/admin/effective_cpd_categories_datatable.rb