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.8.2 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.8.1 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.8.0 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.7.4 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.7.3 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.7.2 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.7.1 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.7.0 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.6.2 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.6.1 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.6.0 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.5.2 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.5.1 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.5.0 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.4.4 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.4.3 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.4.2 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.4.1 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.4.0 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.3.2 app/views/admin/orders/_datatable_actions.html.haml