Sha256: 5cb18ab76e253e7f110c795185c4d74eac973c47ba29ebe1d737ea2d596cbb4c

Contents?: true

Size: 941 Bytes

Versions: 41

Compression:

Stored size: 941 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: { 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

41 entries across 41 versions & 1 rubygems

Version Path
effective_orders-5.1.10 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.9 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.8 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.7 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.6 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.5 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.4 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.3 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.2 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.1 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.1.0 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.0.5 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.0.4 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.0.3 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.0.2 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.0.1 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-4.6.3 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-4.6.2 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-4.6.1 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.0.0 app/views/admin/orders/_datatable_actions.html.haml