Sha256: 9c99a5779c017eabe9c45d7a3dd9ed5f4a588d160c11b043048c9b263460b62f

Contents?: true

Size: 957 Bytes

Versions: 45

Compression:

Stored size: 957 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.user.email}?" }

  - if order.persisted? && EffectiveOrders.authorized?(controller, :admin, :effective_orders)
    - if order.pending? || order.confirmed?
      = 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.user.email}?" }

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

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
effective_orders-4.4.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.4.0 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.3.2 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.3.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.3.0 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.2.7 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.2.6 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.2.5 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.2.4 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.2.3 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.2.2 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.2.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.2.0 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.1.5 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.1.4 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.1.3 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.1.2 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.1.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.1.0 app/views/effective/orders/_order_actions.html.haml
effective_orders-4.0.6 app/views/effective/orders/_order_actions.html.haml