Sha256: 7b66c5e60ece7c224222f90bf300c780eb7ed61c92860504fc01fd250904efa1

Contents?: true

Size: 1.42 KB

Versions: 5

Compression:

Stored size: 1.42 KB

Contents

= simple_form_for [:admin, order], (EffectiveOrders.admin_simple_form_options || {}).merge(url: effective_orders.mark_as_paid_admin_order_path(order), method: :post) do |f|
  %h3 Payment Details

  - if order.purchased?
    .alert.alert-warning Warning: This order has already been purchased
    %br

  = f.input :payment_provider,
    as: (defined?(EffectiveFormInputs) ? :effective_select : :select),
    collection: (EffectiveOrders.payment_providers + EffectiveOrders.other_payment_providers).sort,
    required: true

  = f.input :payment_card,
    label: 'Payment card type, cheque or transaction number',
    placeholder: 'visa',
    hint: 'Full credit card numbers should not be entered here, or anywhere.'

  = f.input :payment,
    as: :text,
    label: 'Additional details',
    input_html: { value: f.object.payment.kind_of?(Hash) ? f.object.payment[:details] : f.object.payment.presence }

  = f.input :send_mark_as_paid_email_to_buyer,
    as: :boolean,
    label: 'Yes, send an email receipt to the buyer.',
    value: (f.object.send_mark_as_paid_email_to_buyer.nil? ? EffectiveOrders.mailer[:send_order_receipts_when_mark_as_paid_by_admin] : f.object.send_mark_as_paid_email_to_buyer?)

  .effective-order-note-to-buyer
    %h3 Note to Buyer
    = f.input :note_to_buyer, label: false, hint: 'This is displayed to the buyer on all order receipts.'

  = render partial: '/admin/orders/order_actions', locals: { order: @order, form: f, f: f }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
effective_orders-2.1.17 app/views/admin/orders/_form_mark_as_paid.html.haml
effective_orders-2.1.16 app/views/admin/orders/_form_mark_as_paid.html.haml
effective_orders-2.1.15 app/views/admin/orders/_form_mark_as_paid.html.haml
effective_orders-2.1.14 app/views/admin/orders/_form_mark_as_paid.html.haml
effective_orders-2.1.13 app/views/admin/orders/_form_mark_as_paid.html.haml