Sha256: 45054bd180f44bba89cdeacdda6ad3a6bd260e2645ced6f9ff6c26abdda1b555

Contents?: true

Size: 1.74 KB

Versions: 50

Compression:

Stored size: 1.74 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(t('spree.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">
          <%= t('spree.payment_amount') %><br/>
          <%= @refund.payment.amount %>
        </div>
      </div>
      <div class="col-3">
        <div class="field">
          <%= t('spree.credit_allowed') %><br/>
          <%= @refund.payment.credit_allowed %>
        </div>
      </div>
      <div class="col-3">
        <div class="field">
          <%= f.label :amount %><br/>
          <%= render "spree/admin/shared/number_with_currency", f: f, amount_attr: :amount, currency: @refund.currency, required: true %>
        </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">
      <%= f.submit Spree::Refund.model_name.human, class: 'btn btn-primary' %>
      <%= link_to t('spree.actions.cancel'), admin_order_payments_url(@refund.payment.order), class: 'btn btn-primary' %>
    </div>
  </fieldset>
<% end %>

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
solidus_backend-2.11.15 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.11.14 app/views/spree/admin/refunds/new.html.erb
solidus_backend-3.0.5 app/views/spree/admin/refunds/new.html.erb
solidus_backend-3.1.5 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.11.13 app/views/spree/admin/refunds/new.html.erb
solidus_backend-3.0.4 app/views/spree/admin/refunds/new.html.erb
solidus_backend-3.1.4 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.11.12 app/views/spree/admin/refunds/new.html.erb
solidus_backend-3.0.3 app/views/spree/admin/refunds/new.html.erb
solidus_backend-3.1.3 app/views/spree/admin/refunds/new.html.erb
solidus_backend-3.1.2 app/views/spree/admin/refunds/new.html.erb
solidus_backend-3.1.1 app/views/spree/admin/refunds/new.html.erb
solidus_backend-3.1.0 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.11.11 app/views/spree/admin/refunds/new.html.erb
solidus_backend-3.0.2 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.10.5 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.11.10 app/views/spree/admin/refunds/new.html.erb
solidus_backend-3.0.1 app/views/spree/admin/refunds/new.html.erb
solidus_backend-3.0.0 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.11.9 app/views/spree/admin/refunds/new.html.erb