diff --git a/app/views/spree/admin/payments/_paypal_complete.html.erb b/app/views/spree/admin/payments/_paypal_complete.html.erb index aaf088f7..40894091 100644 --- a/app/views/spree/admin/payments/_paypal_complete.html.erb +++ b/app/views/spree/admin/payments/_paypal_complete.html.erb @@ -1,12 +1,22 @@ <%= form_tag paypal_refund_admin_order_payment_path(@order, @payment) do %> -
+
- <%= Spree.t('refund', :scope => :paypal) %> + + <%= Spree.t('refund', :scope => :paypal) %> + +
<%= label_tag 'refund_amount', Spree.t(:refund_amount, :scope => 'paypal') %> - <%= Spree.t(:original_amount, :scope => 'paypal', :amount => @payment.display_amount) %>
+ + + <%= Spree.t(:original_amount, :scope => 'paypal', :amount => @payment.display_amount) %> + + +
+ <% symbol = ::Money.new(1, Spree::Config[:currency]).symbol %> + <% if Spree::Config[:currency_symbol_position] == "before" %> <%= symbol %><%= text_field_tag 'refund_amount', @payment.amount %> <% else %> diff --git a/app/views/spree/admin/payments/paypal_refund.html.erb b/app/views/spree/admin/payments/paypal_refund.html.erb index 829ab11d..3e76dd6c 100644 --- a/app/views/spree/admin/payments/paypal_refund.html.erb +++ b/app/views/spree/admin/payments/paypal_refund.html.erb @@ -7,7 +7,7 @@ <% end %> <%= form_tag paypal_refund_admin_order_payment_path(@order, @payment) do %> -
+
<%= Spree.t('refund', :scope => :paypal) %> diff --git a/app/views/spree/admin/payments/source_views/_paypal.html.erb b/app/views/spree/admin/payments/source_views/_paypal.html.erb index eeb3a76a..40bb7f40 100644 --- a/app/views/spree/admin/payments/source_views/_paypal.html.erb +++ b/app/views/spree/admin/payments/source_views/_paypal.html.erb @@ -1,8 +1,10 @@
- <%= Spree.t(:transaction, :scope => :paypal) %> + + <%= Spree.t(:transaction, :scope => :paypal) %> +
-
+
<%= Spree.t(:payer_id, :scope => :paypal) %>:
<%= payment.source.payer_id %>
@@ -18,7 +20,7 @@ <% if payment.source.state != 'refunded' %> <%= button_link_to Spree.t('actions.refund', scope: :paypal), spree.paypal_refund_admin_order_payment_path(@order, payment), icon: 'money' %> <% else %> -
+
<%= Spree.t(:state, :scope => :paypal) %>:
<%= payment.source.state.titleize %>
diff --git a/app/views/spree/checkout/payment/_paypal.html.erb b/app/views/spree/checkout/payment/_paypal.html.erb index f01452e3..84f9c715 100644 --- a/app/views/spree/checkout/payment/_paypal.html.erb +++ b/app/views/spree/checkout/payment/_paypal.html.erb @@ -1,6 +1,11 @@ - -<%= link_to(image_tag("https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif"), paypal_express_url(:payment_method_id => payment_method.id), :method => :post, :id => "paypal_button") %> - +
+ <%= link_to( + image_tag("https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif"), + paypal_express_url(:payment_method_id => payment_method.id), + :method => :post, + :id => "paypal_button" + ) %> +
\ No newline at end of file