Sha256: 630495c50f07ddc32ef790db284e0deffe5d518c305252fd9f7cf5477305c3f7
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 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.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.text_area :payment, label: 'Additional payment details', input_html: { value: f.object.payment.kind_of?(Hash) ? f.object.payment[:details] : f.object.payment.presence } = 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?) } = f.text_area :note_to_buyer, hint: 'This message will be displayed on the receipt.' = f.submit 'Admin: ' + order_checkout_label(order.refund? ? :refund : :mark_as_paid)
Version data entries
3 entries across 3 versions & 1 rubygems