Sha256: 21e19626b25689fbf32ff79020015248619477126fac8f4bdc541a87efea1c40

Contents?: true

Size: 1.74 KB

Versions: 26

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">
      <%= button_tag 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

26 entries across 26 versions & 2 rubygems

Version Path
solidus_backend-2.6.6 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.7.4 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.7.3 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.6.5 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.7.2 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.6.4 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.6.3 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.7.1 app/views/spree/admin/refunds/new.html.erb
solidus_backend-2.6.2 app/views/spree/admin/refunds/new.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/views/spree/admin/refunds/new.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/views/spree/admin/refunds/new.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.12 app/views/spree/admin/refunds/new.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.11 app/views/spree/admin/refunds/new.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.10 app/views/spree/admin/refunds/new.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.9 app/views/spree/admin/refunds/new.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.8 app/views/spree/admin/refunds/new.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.7 app/views/spree/admin/refunds/new.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.6 app/views/spree/admin/refunds/new.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.5 app/views/spree/admin/refunds/new.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.4 app/views/spree/admin/refunds/new.html.erb