Sha256: 8da2b2a660f1f57e897f52dcb854617fc45b119fad1978f8b994da284bdf2048
Contents?: true
Size: 1.4 KB
Versions: 4
Compression:
Stored size: 1.4 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?) %h3 Note to Buyer = f.input :note_to_buyer, label: 'Note to buyer', 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
4 entries across 4 versions & 1 rubygems