<%= render partial: 'spree/admin/shared/order_tabs', locals: { current: :payments } %> <% content_for :page_title do %> / <%= link_to "#{Spree.t(:payment)} #{@refund.payment.id}", spree.admin_order_payment_path(@refund.payment.order, @refund.payment) %> / <%= Spree.t(:refund) %> <%= @refund.id %> <% end %> <%= render 'spree/admin/shared/error_messages', target: @refund %> <%= form_for [:admin, @refund.payment.order, @refund.payment, @refund] do |f| %>
<%= f.label :amount, Spree.t(:amount) %>
<%= @refund.amount %>
<%= f.label :refund_reason_id, Spree.t(:reason) %>
<%= f.collection_select(:refund_reason_id, refund_reasons, :id, :name, {}, {class: 'select2'}) %>
<%= button Spree.t('actions.save'), 'save.svg' %> <%= Spree.t(:or) %> <%= button_link_to Spree.t('actions.cancel'), spree.admin_order_payments_url(@refund.payment.order), icon: "delete.svg" %>
<% end %>