Sha256: c120f80e778fad253980fc438d9762756b8baf3771ea75ebdd06bfe8d67a656c

Contents?: true

Size: 1020 Bytes

Versions: 5

Compression:

Stored size: 1020 Bytes

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)
    - 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

5 entries across 5 versions & 1 rubygems

Version Path
effective_orders-3.0.4 app/views/effective/orders/_order_actions.html.haml
effective_orders-3.0.3 app/views/effective/orders/_order_actions.html.haml
effective_orders-3.0.2 app/views/effective/orders/_order_actions.html.haml
effective_orders-3.0.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-3.0.0 app/views/effective/orders/_order_actions.html.haml