Sha256: 98e3c621c9676a35208c0f71c2ffbd70b680438de5a2072ea6989f90feafe8e2

Contents?: true

Size: 1.29 KB

Versions: 15

Compression:

Stored size: 1.29 KB

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: { method: :post, confirm: "Send receipt to #{order.emails_send_to}?" }

  - if controller_path.include?('admin/') && (EffectiveResources.authorized?(controller, :admin, :effective_orders) rescue false)
    - if order.persisted? && order.in_progress?
      - if params[:action] == 'show'
        = link_to('Edit', effective_orders.edit_admin_order_path(order), class: 'btn btn-primary')

      - if params[:action] == 'edit'
        = link_to('Show', effective_orders.admin_order_path(order), class: 'btn btn-primary')

      - unless order.refund?
        = 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

15 entries across 15 versions & 1 rubygems

Version Path
effective_orders-6.2.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-6.2.0 app/views/effective/orders/_order_actions.html.haml
effective_orders-6.1.5 app/views/effective/orders/_order_actions.html.haml
effective_orders-6.1.4 app/views/effective/orders/_order_actions.html.haml
effective_orders-6.1.3 app/views/effective/orders/_order_actions.html.haml
effective_orders-6.1.2 app/views/effective/orders/_order_actions.html.haml
effective_orders-6.1.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-6.1.0 app/views/effective/orders/_order_actions.html.haml
effective_orders-6.0.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-6.0.0 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.9.4 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.9.3 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.9.2 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.9.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.9.0 app/views/effective/orders/_order_actions.html.haml