Sha256: 3d14102fc4d7176ce1a1cbbb83f7aa80408c1a4b74b75e08fd01bff6c89153b1

Contents?: true

Size: 1.64 KB

Versions: 82

Compression:

Stored size: 1.64 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}", spree.admin_order_payment_path(@refund.payment.order, @refund.payment) %>
  / <%= Spree.t(:new_refund) %>
<% end %>

<%= render 'spree/admin/shared/error_messages', target: @refund %>

<%= 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 :payment_amount, Spree.t(:payment_amount) %><br/>
        <%= @refund.payment.amount %>
      </div>
      <div class="form-group">
        <%= f.label :credit_allowed, Spree.t(:credit_allowed) %><br/>
        <%= @refund.payment.credit_allowed %>
      </div>
      <%= f.field_container :amount, class: ['form-group'] do %>
        <%= f.label :amount, Spree.t(:amount) %>
        <%= f.text_field :amount, class: 'form-control' %>
        <%= f.error_message_on :amount %>
      <% end %>
      <%= f.field_container :reason, class: ['form-group'] do %>
        <%= f.label :refund_reason_id, Spree.t(:reason) %>
        <%= f.collection_select(:refund_reason_id, refund_reasons, :id, :name, {include_blank: true}, {class: 'select2'}) %>
        <%= f.error_message_on :reason %>
      <% end %>
    </div>

    <div class="form-actions" data-hook="buttons">
      <%= button Spree.t(:refund), '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

82 entries across 82 versions & 1 rubygems

Version Path
spree_backend-4.0.9 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.1.15 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.1.14 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.0.8 app/views/spree/admin/refunds/new.html.erb
spree_backend-3.7.14.1 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.1.13.1 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.0.7.1 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.0.7 app/views/spree/admin/refunds/new.html.erb
spree_backend-3.7.14 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.1.13 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.0.6 app/views/spree/admin/refunds/new.html.erb
spree_backend-3.7.13 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.0.5 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.1.12 app/views/spree/admin/refunds/new.html.erb
spree_backend-3.7.12 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.0.4 app/views/spree/admin/refunds/new.html.erb
spree_backend-3.7.11 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.1.11 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.1.10 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.1.9 app/views/spree/admin/refunds/new.html.erb