Sha256: f719af4254e7de986f75e652d8d908fbbed0b0f6b974807a4f84e965022f00a5

Contents?: true

Size: 979 Bytes

Versions: 13

Compression:

Stored size: 979 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 'E-mail Receipt', 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

13 entries across 13 versions & 1 rubygems

Version Path
effective_orders-5.1.9 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.1.8 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.1.7 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.1.6 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.1.5 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.1.4 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.1.3 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.1.2 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.1.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.1.0 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.0.5 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.0.4 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.0.3 app/views/effective/orders/_order_actions.html.haml