Sha256: cab70e57d93ebc2c10d98fa25112329ca5c97ce23e4f923ec86e434991cbbc78

Contents?: true

Size: 984 Bytes

Versions: 23

Compression:

Stored size: 984 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? && EffectiveOrders.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

23 entries across 23 versions & 1 rubygems

Version Path
effective_orders-4.6.3 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.6.2 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.6.0 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.5.12 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.5.11 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.5.10 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.5.9 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.5.8 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.5.7 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.5.6 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.5.5 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.5.4 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.5.3 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.5.2 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.5.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.5.0 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.4.10 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.4.9 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.4.8 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.4.7 app/views/effective/orders/_order_actions.html.haml