From 6690f2e9e7d6f248ecbb42a24ed079adee6a8bc4 Mon Sep 17 00:00:00 2001 From: stveep Date: Sun, 6 Aug 2017 19:06:56 +0100 Subject: [PATCH] Restyle add card form --- app/views/spree/users/_new_card_form.html.haml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/views/spree/users/_new_card_form.html.haml b/app/views/spree/users/_new_card_form.html.haml index 53c14e2a91..368e19bc50 100644 --- a/app/views/spree/users/_new_card_form.html.haml +++ b/app/views/spree/users/_new_card_form.html.haml @@ -1,4 +1,9 @@ %form{ novalidate: true, "ng-submit" => "storeCard()" } + .row + .small-12.columns + %label + = t(:card_details) + = render '/checkout/payment/stripe' .row .small-6.columns %label @@ -11,8 +16,7 @@ = t(:last_name) %input#last_name{type: :text, "ng-model" => "secrets.last_name", "ng-disabled" => "!allow_name_change", "ng-value" => "order.bill_address.lastname"} .row - .small-12.columns - = render '/checkout/payment/stripe' - %p - %button.button.primary{type: :submit} - = t(:add_card) + .small-4.columns + %p + %button.button.primary{type: :submit} + = t(:add_card)