Sha256: d51f4f340c52c7a7b8825e3c87ba81db82695b475f4483ed0cdd5710ad9f4be3
Contents?: true
Size: 909 Bytes
Versions: 28
Compression:
Stored size: 909 Bytes
Contents
# Displays cpd audits for this auditee user class EffectiveCpdAvailableAuditsDatatable < Effective::Datatable datatable do order :due_date col :token, visible: false col :cpd_audit_level, label: cpd_audit_level_label col :due_date col :status col :determination actions_col(actions: []) do |cpd_audit| if cpd_audit.opened? dropdown_link_to('Start', effective_cpd.cpd_audit_build_path(cpd_audit, cpd_audit.next_step)) elsif cpd_audit.was_submitted? dropdown_link_to('Show', effective_cpd.cpd_audit_build_path(cpd_audit, cpd_audit.last_completed_step)) else dropdown_link_to('Continue', effective_cpd.cpd_audit_build_path(cpd_audit, cpd_audit.next_step)) end end end collection do raise('expected a current_user') unless current_user.present? EffectiveCpd.CpdAudit.available.where(user: current_user) end end
Version data entries
28 entries across 28 versions & 1 rubygems