Sha256: 5097b3a12b21c88115001266528ddd1c3fcf3e67e163e48a69a80f528fc744d2

Contents?: true

Size: 956 Bytes

Versions: 47

Compression:

Stored size: 956 Bytes

Contents

= dropdown(variation: :dropleft) do
  = 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: { method: :post, confirm: "Send receipt to #{order.emails_send_to}?" }

  - if order.pending? || order.confirmed? || order.deferred?
    = 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.emails_send_to}?" }

    = 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}?" }

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
effective_orders-5.1.17 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.16 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.15 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.14 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.13 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.12 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.11 app/views/admin/orders/_datatable_actions.html.haml