Sha256: 3f585a5074cce79b7be650cafd28b42c86f208628e54241ebab389c2ac67707a

Contents?: true

Size: 1.25 KB

Versions: 9

Compression:

Stored size: 1.25 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')

      = 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

9 entries across 9 versions & 1 rubygems

Version Path
effective_orders-5.8.2 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.8.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.8.0 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.7.4 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.7.3 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.7.2 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.7.1 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.7.0 app/views/effective/orders/_order_actions.html.haml
effective_orders-5.6.2 app/views/effective/orders/_order_actions.html.haml