Sha256: 190dee2e3cc902bc75a0e3efb9fcc0344067a3ac9b36ef3b82b16f4bcf082ca3

Contents?: true

Size: 1.19 KB

Versions: 41

Compression:

Stored size: 1.19 KB

Contents

.card
  .card-body
    %h2 Admin: Complete Refund

    = effective_form_with(model: order, url: effective_orders.refund_order_path(order), method: :post) do |f|
      = hidden_field_tag(:purchased_url, purchased_url)
      = hidden_field_tag(:declined_url, declined_url)

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

      = f.text_field :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.text_area :payment,
        label: 'Additional 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 an refund receipt email to the buyer.',
        input_html: { checked: (f.object.send_mark_as_paid_email_to_buyer.nil? ? EffectiveOrders.mailer[:send_order_receipts_when_mark_as_paid] : f.object.send_mark_as_paid_email_to_buyer?) }

      = f.text_area :note_to_buyer, hint: 'This is displayed to the buyer on all order receipts.'

      = f.submit order_checkout_label(:refund)

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
effective_orders-4.3.2 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.3.1 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.3.0 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.2.7 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.2.6 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.2.5 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.2.4 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.2.3 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.2.2 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.2.1 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.2.0 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.1.5 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.1.4 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.1.3 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.1.2 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.1.1 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.1.0 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.0.6 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.0.5 app/views/effective/orders/refund/_form.html.haml
effective_orders-4.0.4 app/views/effective/orders/refund/_form.html.haml