Sha256: dadda3c88f472b6a90eff87069e989da0be29dec87bfed1819e2aa2a502c98c3

Contents?: true

Size: 1.14 KB

Versions: 11

Compression:

Stored size: 1.14 KB

Contents

<%= render partial: 'spree/admin/shared/order_tabs', locals: { current: :payments } %>

<% content_for :page_title do %>
  / <%= link_to "#{Spree.t(:payment)} #{@refund.payment.id}", admin_order_payment_path(@refund.payment.order, @refund.payment) %>
  / <%= Spree.t(:editing_resource, resource: Spree::Refund.model_name.human) %> <%= @refund.id %>
<% end %>

<%= form_for [:admin, @refund.payment.order, @refund.payment, @refund] do |f| %>
  <fieldset>
    <div data-hook="admin_refund_form_fields">
      <div class="form-group">
        <%= f.label :amount, Spree.t(:amount) %><br/>
        <%= @refund.amount %>
      </div>
      <div class="form-group">
        <%= f.label :refund_reason_id, Spree.t(:reason) %><br/>
        <%= f.collection_select(:refund_reason_id, refund_reasons, :id, :name, {}, {class: 'select2'}) %>
      </div>
    </div>

    <div class="form-actions" data-hook="buttons">
      <%= button Spree.t('actions.save'), 'save' %>
      <span class="or"><%= Spree.t(:or) %></span>
      <%= button_link_to Spree.t('actions.cancel'), spree.admin_order_payments_url(@refund.payment.order), icon: "delete" %>
    </div>
  </fieldset>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_backend-3.0.10 app/views/spree/admin/refunds/edit.html.erb
spree_backend-3.0.9 app/views/spree/admin/refunds/edit.html.erb
spree_backend-3.1.0.rc1 app/views/spree/admin/refunds/edit.html.erb
spree_backend-3.0.8 app/views/spree/admin/refunds/edit.html.erb
spree_backend-3.0.7 app/views/spree/admin/refunds/edit.html.erb
spree_backend-3.0.6.1 app/views/spree/admin/refunds/edit.html.erb
spree_backend-3.0.6 app/views/spree/admin/refunds/edit.html.erb
spree_backend-3.0.5 app/views/spree/admin/refunds/edit.html.erb
spree_backend-3.0.4 app/views/spree/admin/refunds/edit.html.erb
spree_backend-3.0.3 app/views/spree/admin/refunds/edit.html.erb
spree_backend-3.0.2 app/views/spree/admin/refunds/edit.html.erb