Sha256: 0ce05d2e34ec103ec5c9df642214eb0a8d876b096b801e16c64011b8d7bbc61d

Contents?: true

Size: 1.03 KB

Versions: 9

Compression:

Stored size: 1.03 KB

Contents

.effective-order-actions
  = link_to 'Print', '#', class: 'btn btn-default print-button', data: { role: 'print-button' }, onClick: 'window.print(); false;'

  - if order.purchased?
    = link_to 'Resend Receipt', effective_orders.send_buyer_receipt_order_path(order), class: 'btn btn-default', data: { confirm: 'This action will email the buyer a copy of the original email receipt.  Send receipt now?', disable_with: 'Resending...' }

  - elsif EffectiveOrders.authorized?(controller, :admin, :effective_orders) && order.user != current_user
    - if order.pending?
      = link_to 'Admin: Send Payment Request', effective_orders.send_payment_request_admin_order_path(order), class: 'btn btn-default', data: { method: :post, confirm: 'This action will email buyer a payment request. Send it now?', disable_with: 'Sending...' }
    = link_to 'Admin: Delete', effective_orders.admin_order_path(order), class: 'btn btn-default', data: { method: :delete, confirm: 'Are you sure you want to delete? This cannot be undone.', disable_with: 'Deleting...' }

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
effective_orders-3.2.3 app/views/effective/orders/_order_actions.html.haml
effective_orders-3.2.2 app/views/effective/orders/_order_actions.html.haml
effective_orders-3.2.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-3.2.0 app/views/effective/orders/_order_actions.html.haml
effective_orders-3.1.7 app/views/effective/orders/_order_actions.html.haml
effective_orders-3.1.6 app/views/effective/orders/_order_actions.html.haml
effective_orders-3.1.4 app/views/effective/orders/_order_actions.html.haml
effective_orders-3.1.3 app/views/effective/orders/_order_actions.html.haml
effective_orders-3.1.0 app/views/effective/orders/_order_actions.html.haml