Sha256: f4e95988043c3b3462c3cb6d460a28268ef02a2e146506e92211bcaad5fa0595
Contents?: true
Size: 1.02 KB
Versions: 44
Compression:
Stored size: 1.02 KB
Contents
= dropdown(variation: :dropleft) do - if datatable.admin_namespace? = dropdown_link_to 'View', effective_orders.admin_order_path(order) - if order.purchased? == false = dropdown_link_to 'Edit', effective_orders.edit_admin_order_path(order) - if order.purchased? = dropdown_link_to 'Email receipt to buyer', effective_orders.send_buyer_receipt_order_path(order), data: { confirm: "Send receipt to #{order.user.email}?" } - if order.pending? || order.confirmed? = dropdown_link_to 'Email request for payment to buyer', effective_orders.send_payment_request_admin_order_path(order), data: { method: :post, confirm: "Send request for payment to #{order.user.email}?" } = dropdown_link_to 'Admin: Checkout', effective_orders.checkout_admin_order_path(order) = dropdown_link_to "Delete #{order}", effective_orders.admin_order_path(order), data: { method: :delete, confirm: "Really delete #{order}?" } - else = dropdown_link_to 'View', effective_orders.order_path(order)
Version data entries
44 entries across 44 versions & 1 rubygems