Sha256: f3fa8e2dbe7fa4c283ba86705f164bea2c567faa92edca546ce3154015b892b6

Contents?: true

Size: 1.29 KB

Versions: 85

Compression:

Stored size: 1.29 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.editing_refund')} #{@refund.id}") %>

<%= 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">
          <%= f.label :amount %><br/>
          <%= @refund.amount %>
        </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, {}, {class: 'custom-select fullwidth'}) %>
        </div>
      </div>
    </div>

    <div class="form-buttons filter-actions actions" data-hook="buttons">
      <%= button_tag t('spree.actions.save'), 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

85 entries across 85 versions & 2 rubygems

Version Path
solidus_backend-2.10.2 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.9.6 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.8.6 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.10.1 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.9.5 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.10.0 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.9.4 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.6.6 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.7.4 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.8.5 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.9.3 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.9.2 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.10.0.beta1 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.7.3 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.6.5 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.9.1 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.9.0 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.9.0.rc.1 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.8.4 app/views/spree/admin/refunds/edit.html.erb
solidus_backend-2.8.3 app/views/spree/admin/refunds/edit.html.erb