Sha256: 7cc77fde4e7e08a111d1250ea87c3840dff632e676df6db2c54569b4dd31b44b
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
# Dashboard Ring Payments class EffectiveRingPaymentsDatatable < 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.ring.issued_at&.strftime('%F') || '-' end actions_col(actions: []) do |resource| if resource.draft? dropdown_link_to('Continue', effective_products.ring_payment_build_path(resource, reource.next_step), 'data-turbolinks' => false) dropdown_link_to('Delete', effective_products.ring_payment_path(resource), 'data-confirm': "Really delete #{resource}?", 'data-method': :delete) else dropdown_link_to('Show', effective_products.ring_payment_path(resource)) end end end collection do EffectiveProducts.RingPayment.deep.done.where(owner: current_user) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
effective_products-0.0.2 | app/datatables/effective_ring_payments_datatable.rb |