Sha256: 704c8b477662c5f6b3b7dd62e456121024a3cc9673940efbf9e1416d09de2935

Contents?: true

Size: 1.6 KB

Versions: 16

Compression:

Stored size: 1.6 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 do %>
        <%= f.label :amount, Spree.t(:amount) %>
        <%= f.text_field :amount, class: 'form-control' %>
        <%= f.error_message_on :amount %>
      <% end %>
      <%= f.field_container :reason do %>
        <%= f.label :refund_reason_id, Spree.t(:reason) %>
        <%= f.collection_select(:refund_reason_id, refund_reasons, :id, :name, {include_blank: true}, {class: 'select2-clear'}) %>
        <%= f.error_message_on :reason %>
      <% end %>
    </div>

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.8.3 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.8.2 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.8.1 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.7.2 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.6.2 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.7.1 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.7.0 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.6.1 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.6.0 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.5.1 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.5.0 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.4.1 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.4.0 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.4.0.rc2 app/views/spree/admin/refunds/new.html.erb
spree_backend-4.4.0.rc1 app/views/spree/admin/refunds/new.html.erb