<%= render partial: 'spree/admin/shared/order_tabs', locals: {current: 'Payments'} %> <% content_for :page_title do %> <%= link_to "#{Spree::Payment.model_name.human} #{@refund.payment.id}", admin_order_payment_path(@refund.payment.order, @refund.payment) %> <%= Spree.t(:editing_refund) %> <%= @refund.id %> <% end %> <%= form_for [:admin, @refund.payment.order, @refund.payment, @refund] do |f| %>
<%= f.label :amount %>
<%= @refund.amount %>
<%= f.label :refund_reason_id %>
<%= f.collection_select(:refund_reason_id, refund_reasons, :id, :name, {}, {class: 'select2 fullwidth'}) %>
<%= button Spree.t('actions.save'), 'ok' %> <%= button_link_to Spree.t('actions.cancel'), admin_order_payments_url(@refund.payment.order), icon: 'remove' %>
<% end %>