Sha256: 3d96f9400e963773a83fc4de6f0bf155b679d0b8fd7c7d7e812ec2519c9f164e
Contents?: true
Size: 1.1 KB
Versions: 6
Compression:
Stored size: 1.1 KB
Contents
# Dashboard Stamp Payments class EffectiveStampWizardsDatatable < Effective::Datatable datatable do order :created_at col :token, visible: false col :created_at, visible: false col(:submitted_at, label: 'Submitted on') do |resource| resource.submitted_at&.strftime('%F') || 'Incomplete' end col :owner, visible: false, search: :string col :status, visible: false col :orders, action: :show col(:issued_at, label: 'Issued on') do |resource| resource.stamp.issued_at&.strftime('%F') || '-' end actions_col(actions: []) do |resource| if resource.draft? dropdown_link_to('Continue', effective_products.stamp_wizard_build_path(resource, reource.next_step), 'data-turbolinks' => false) dropdown_link_to('Delete', effective_products.stamp_wizard_path(resource), 'data-confirm': "Really delete #{resource}?", 'data-method': :delete) else dropdown_link_to('Show', effective_products.stamp_wizard_path(resource)) end end end collection do EffectiveProducts.StampWizard.deep.done.where(owner: current_user) end end
Version data entries
6 entries across 6 versions & 1 rubygems