From 1e1ec95a5a08e86901957f3b6de99fc5244e1b54 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Wed, 28 Dec 2022 15:24:46 +0100 Subject: [PATCH] Include payment form right after the payment description which is right after the radio input that select the payment description --- app/views/split_checkout/_payment.html.haml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/views/split_checkout/_payment.html.haml b/app/views/split_checkout/_payment.html.haml index 68b0912a53..69d55d6a0b 100644 --- a/app/views/split_checkout/_payment.html.haml +++ b/app/views/split_checkout/_payment.html.haml @@ -21,14 +21,11 @@ - if payment_method.description && !payment_method.description.empty? .paymentmethod-description.panel #{payment_method.description} - - = f.error_message_on :payment_method, standalone: true - - - available_payment_methods.each do |payment_method| - .paymentmethod-container{"data-paymentmethod-id": "paymentmethod#{payment_method.id}", style: "display: #{payment_method.id == selected_payment_method ? "block" : "none"}"} .paymentmethod-form = render partial: "split_checkout/payment/#{payment_method.method_type}", locals: { payment_method: payment_method, f: f } - + + = f.error_message_on :payment_method, standalone: true + %div.checkout-substep = t("split_checkout.step2.explaination")