Sha256: 405ed10139372a6ac1fb3ddd116a448279f2563b978515410985e299251a6b13

Contents?: true

Size: 660 Bytes

Versions: 9

Compression:

Stored size: 660 Bytes

Contents

# Displays cpd audits for this auditee user

class EffectiveCpdCompletedAuditsDatatable < Effective::Datatable
  datatable do
    order :notification_date

    col :token, visible: false

    col :cpd_audit_level, label: 'Audit'
    col :notification_date, label: 'Date of Notification'
    col :status
    col :determination

    actions_col(actions: []) do |cpd_audit|
      dropdown_link_to('Show', effective_cpd.cpd_audit_build_path(cpd_audit, cpd_audit.last_completed_step || :start))
    end
  end

  collection do
    raise('expected a current_user') unless current_user.present?
    EffectiveCpd.CpdAudit.completed.where(user: current_user)
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
effective_cpd-1.2.4 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.2.3 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.2.2 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.2.1 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.2.0 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.1.3 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.1.2 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.1.1 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.1.0 app/datatables/effective_cpd_completed_audits_datatable.rb