Sha256: 56dc3a02d378f36dd2afaa1a51ae00aca57841169748c5ce4769c1a598d951c6

Contents?: true

Size: 1.61 KB

Versions: 6

Compression:

Stored size: 1.61 KB

Contents

<%= 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(Spree.t(:new_refund)) %>


<%= form_for [:admin, @refund.payment.order, @refund.payment, @refund] do |f| %>
  <fieldset class="no-border-top">
    <div data-hook="admin_refund_form_fields" class="row">
      <div class="col-3">
        <div class="field">
          <%= Spree.t(:payment_amount) %><br/>
          <%= @refund.payment.amount %>
        </div>
      </div>
      <div class="col-3">
        <div class="field">
          <%= Spree.t(:credit_allowed) %><br/>
          <%= @refund.payment.credit_allowed %>
        </div>
      </div>
      <div class="col-3">
        <div class="field">
          <%= f.label :amount %><br/>
          <%= f.text_field :amount, class: 'fullwidth' %>
        </div>
      </div>
      <div class="col-3">
        <div class="field">
          <%= f.label :refund_reason_id %><br/>
          <%= f.collection_select(:refund_reason_id, refund_reasons, :id, :name, {include_blank: true}, {class: 'custom-select fullwidth'}) %>
        </div>
      </div>
    </div>

    <div class="form-buttons filter-actions actions" data-hook="buttons">
      <%= button Spree::Refund.model_name.human %>
      <%= button_link_to Spree.t('actions.cancel'), admin_order_payments_url(@refund.payment.order) %>
    </div>
  </fieldset>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_backend-2.3.1 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.3.0 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.3.0.rc3 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.3.0.rc2 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.3.0.rc1 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.3.0.beta1 app/views/spree/admin/refunds/new.html.erb