<%= render partial: 'spree/admin/shared/order_tabs', locals: {current: 'Payments'} %> <% admin_breadcrumb(link_to plural_resource_name(Spree::Payment), spree.admin_order_payments_path(@order)) %> <% admin_breadcrumb(link_to "#{Spree::Payment.model_name.human} #{@refund.payment.id}", admin_order_payment_path(@refund.payment.order, @refund.payment)) %> <% admin_breadcrumb("#{t('spree.editing_refund')} #{@refund.id}") %> <%= 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: 'custom-select fullwidth'}) %>
<%= button_tag t('spree.actions.save'), class: 'btn btn-primary' %> <%= link_to t('spree.actions.cancel'), admin_order_payments_url(@refund.payment.order), class: 'btn btn-primary' %>
<% end %>