<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Payments' } %> <% content_for :page_title do %> / <%= link_to Spree.t(:payments), admin_order_payments_path(@order) %> / <%= payment_method_name(@payment) %> / <%= Spree.t('refund', :scope => :mollie) %> <% end %> <%= form_tag mollie_refund_admin_order_payment_path(@order, @payment) do %>
<%= Spree.t('refund', :scope => :mollie) %>
<%= label_tag 'refund_amount', Spree.t(:refund_amount, :scope => 'mollie') %> <%= Spree.t(:original_amount, :scope => 'mollie', :amount => @payment.display_amount) %>
<% currency = ::Money::Currency.new(Spree::Config[:currency]) %>
<% if currency.symbol_first %> <%= currency.symbol %> <%= text_field_tag 'refund_amount', @payment.amount, class: 'form-control' %> <% else %> <%= text_field_tag 'refund_amount', @payment.amount, class: 'form-control' %> <%= currency.symbol %> <% end %>
<%= button Spree.t(:refund, scope: 'mollie'), 'money', class: 'btn btn-primary' %>
<% end %>