Sha256: 32c71c6272b6df4d73688dd59d13a273d756af192078cc07ce0adcc16a16166a

Contents?: true

Size: 976 Bytes

Versions: 15

Compression:

Stored size: 976 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?) && !order.refund?
    = 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

15 entries across 15 versions & 1 rubygems

Version Path
effective_orders-6.2.1 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-6.2.0 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-6.1.5 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-6.1.4 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-6.1.3 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-6.1.2 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-6.1.1 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-6.1.0 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-6.0.1 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-6.0.0 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.9.4 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.9.3 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.9.2 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.9.1 app/views/admin/orders/_datatable_actions.html.haml
effective_orders-5.9.0 app/views/admin/orders/_datatable_actions.html.haml