Sha256: 833f4f653a082433da6245dacbe8e24f85fcf3cbb1afa1f6fdad4bb1b7b33f36

Contents?: true

Size: 987 Bytes

Versions: 4

Compression:

Stored size: 987 Bytes

Contents

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

  - if order.purchased?
    = link_to 'Email receipt to buyer', effective_orders.send_buyer_receipt_order_path(order),
      class: 'btn btn-secondary',
      data: { confirm: "Send receipt to #{order.emails_send_to}?" }

  - if order.persisted? && EffectiveResources.authorized?(controller, :admin, :effective_orders)
    - if order.pending? || order.confirmed? || order.deferred?
      = link_to 'Email request for payment to buyer', effective_orders.send_payment_request_admin_order_path(order),
        class: 'btn btn-secondary',
        data: { method: :post, confirm: "Send request for payment to #{order.emails_send_to}?" }

      = link_to 'Delete', effective_orders.admin_order_path(order),
        class: 'btn btn-danger',
        data: { method: :delete, confirm: "Really delete #{order}?" }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
effective_orders-5.0.2 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.0.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.6.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.0.0 app/views/effective/orders/_order_actions.html.haml