From ea031cd3d86b52cb7d1d93fcf51d84b8a310e485 Mon Sep 17 00:00:00 2001 From: Piotr Milewski Date: Mon, 24 Feb 2020 13:33:02 +0100 Subject: [PATCH] [SD-820] apply Spree 4.1 style for stripe elements inputs --- .../payment/_stripe_elements.html.erb | 41 ++++++++----------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/lib/views/frontend/spree/checkout/payment/_stripe_elements.html.erb b/lib/views/frontend/spree/checkout/payment/_stripe_elements.html.erb index 6f1a448e..a73bf772 100644 --- a/lib/views/frontend/spree/checkout/payment/_stripe_elements.html.erb +++ b/lib/views/frontend/spree/checkout/payment/_stripe_elements.html.erb @@ -1,24 +1,15 @@ <% param_prefix = "payment_source[#{payment_method.id}]" %>

- <%= label_tag "name_on_card_#{payment_method.id}" do %> - <%= Spree.t(:name_on_card) %>* - <% end %> - <%= text_field_tag "#{param_prefix}[name]", "#{@order.bill_address_firstname} #{@order.bill_address_lastname}", { id: "name_on_card_#{payment_method.id}", class: 'form-control required'} %> -

-
- <%= label_tag "card_number" do %> - <%= Spree.t(:card_number) %>* - <% end %> -
-
- -
-
- - -
+ <%= text_field_tag "#{param_prefix}[name]", "#{@order.bill_address_firstname} #{@order.bill_address_lastname}", { id: "name_on_card_#{payment_method.id}", class: 'spree-flat-input', placeholder: Spree.t(:name_on_card)} %>

+
+
+ +
+
+ +
@@ -26,20 +17,24 @@