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

Version Path
effective_orders-4.4.1 app/views/admin/orders/_actions.html.haml
effective_orders-4.4.0 app/views/admin/orders/_actions.html.haml
effective_orders-4.3.2 app/views/admin/orders/_actions.html.haml
effective_orders-4.3.1 app/views/admin/orders/_actions.html.haml
effective_orders-4.3.0 app/views/admin/orders/_actions.html.haml
effective_orders-4.2.7 app/views/admin/orders/_actions.html.haml
effective_orders-4.2.6 app/views/admin/orders/_actions.html.haml
effective_orders-4.2.5 app/views/admin/orders/_actions.html.haml
effective_orders-4.2.4 app/views/admin/orders/_actions.html.haml
effective_orders-4.2.3 app/views/admin/orders/_actions.html.haml
effective_orders-4.2.2 app/views/admin/orders/_actions.html.haml
effective_orders-4.2.1 app/views/admin/orders/_actions.html.haml
effective_orders-4.2.0 app/views/admin/orders/_actions.html.haml
effective_orders-4.1.5 app/views/admin/orders/_actions.html.haml
effective_orders-4.1.4 app/views/admin/orders/_actions.html.haml
effective_orders-4.1.3 app/views/admin/orders/_actions.html.haml
effective_orders-4.1.2 app/views/admin/orders/_actions.html.haml
effective_orders-4.1.1 app/views/admin/orders/_actions.html.haml
effective_orders-4.1.0 app/views/admin/orders/_actions.html.haml
effective_orders-4.0.6 app/views/admin/orders/_actions.html.haml