Sha256: f5f0baa823c451132d448b1158be464af93c77b358bf00871491776a789f345e

Contents?: true

Size: 1.16 KB

Versions: 8

Compression:

Stored size: 1.16 KB

Contents

.card
  .card-body
    %h2
      Admin:
      = order.refund? ? 'Complete Refund' : 'Mark as Paid'

    = effective_form_with(model: order, url: effective_orders.mark_as_paid_order_path(order), method: :post) do |f|
      = f.hidden_field :purchased_at, value: Time.zone.now

      = f.select :payment_provider, EffectiveOrders.admin_payment_providers, required: true

      = f.text_field :payment_card,
        label: 'Payment card type, cheque or transaction number',
        hint: 'Do not enter credit card numbers here, or anywhere.'

      = f.check_box :send_mark_as_paid_email_to_buyer,
        label: 'Yes, send a receipt email to the buyer.',
        input_html: { checked: (f.object.send_mark_as_paid_email_to_buyer.nil? ? EffectiveOrders.send_order_receipts_when_mark_as_paid : f.object.send_mark_as_paid_email_to_buyer?) }


      .row
        .col
          = f.text_area :note_to_buyer, hint: 'This message will be displayed to the buyer on the receipt.'
        .col
          = f.text_area :note_internal, hint: 'For or internal admin use only. This note will never be displayed to the buyer.'

      = f.submit order_checkout_label(order.refund? ? :refund : :mark_as_paid)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
effective_orders-5.7.4 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-5.7.3 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-5.7.2 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-5.7.1 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-5.7.0 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-5.6.2 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-5.6.1 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-5.6.0 app/views/effective/orders/mark_as_paid/_form.html.haml