Sha256: 17e525e67bb70a3314c9974abbd53e599a1aa6c1afdc1fbf09ec9bbd46ca2a00

Contents?: true

Size: 638 Bytes

Versions: 21

Compression:

Stored size: 638 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: cpd_audit_level_label
    col :notification_date
    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.done.where(user: current_user)
  end

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
effective_cpd-1.7.2 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.7.1 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.7.0 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.6.5 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.6.4 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.6.3 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.6.2 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.6.1 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.6.0 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.5.1 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.5.0 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.4.8 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.4.7 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.4.6 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.4.5 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.4.4 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.4.3 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.4.2 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.4.1 app/datatables/effective_cpd_completed_audits_datatable.rb
effective_cpd-1.4.0 app/datatables/effective_cpd_completed_audits_datatable.rb