Sha256: 3bb39081f32728cd137b6b242d7cced21186461d25da29b7476bd3584dbf94ea

Contents?: true

Size: 1.06 KB

Versions: 20

Compression:

Stored size: 1.06 KB

Contents

.card
  .card-body
    %h2 Admin: Mark as Paid

    = effective_form_with(model: order, url: effective_orders.mark_as_paid_order_path(order), method: :post) do |f|
      = 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.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 message will be displayed on the receipt.'

      = f.submit order_checkout_label(:mark_as_paid), center: true

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
effective_orders-4.5.10 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.5.9 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.5.8 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.5.7 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.5.6 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.5.5 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.5.4 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.5.3 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.5.2 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.5.1 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.5.0 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.4.10 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.4.9 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.4.8 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.4.7 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.4.6 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.4.5 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.4.4 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.4.3 app/views/effective/orders/mark_as_paid/_form.html.haml
effective_orders-4.4.2 app/views/effective/orders/mark_as_paid/_form.html.haml