Sha256: 6fe9ab057c865b7762dae89eba1fb2d1f0ece24ef6ef43c6ae3b43ea65afeab3

Contents?: true

Size: 1.26 KB

Versions: 47

Compression:

Stored size: 1.26 KB

Contents

<%= render partial: 'spree/admin/shared/order_tabs', locals: { current: "Payments" } %>

<% content_for :page_actions do %>
  <% if @order.outstanding_balance? %>
    <li id="new_payment_section">
      <%= link_to t('spree.new_payment'), new_admin_order_payment_url(@order), class: 'btn btn-primary' %>
    </li>
  <% end %>
<% end %>

<% admin_breadcrumb(plural_resource_name(Spree::Payment)) %>

<% if @order.outstanding_balance? %>
  <h5 class="outstanding-balance"><%= @order.outstanding_balance < 0 ? t('spree.credit_owed') : t('spree.balance_due') %>: <strong><%= @order.display_outstanding_balance %></strong></h5>
<% end %>

<% if @payments.any? %>

  <fieldset data-hook="payment_list" class="no-border-bottom">
    <legend align="center"><%= plural_resource_name(Spree::Payment) %></legend>
    <%= render partial: 'list', locals: { payments: @payments } %>
  </fieldset>

  <% if @refunds.any? %>
    <fieldset data-hook="payment_list" class="no-border-bottom">
      <legend align="center"><%= plural_resource_name(Spree::Refund) %></legend>
      <%= render partial: 'spree/admin/shared/refunds', locals: { refunds: @refunds, show_actions: true } %>
    </fieldset>
  <% end %>

<% else %>
  <div class="no-objects-found"><%= t('spree.order_has_no_payments') %></div>
<% end %>

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
solidus_backend-2.10.5 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.10.3 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.10.2 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.9.6 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.8.6 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.10.1 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.9.5 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.10.0 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.9.4 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.6.6 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.7.4 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.8.5 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.9.3 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.9.2 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.10.0.beta1 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.7.3 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.6.5 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.9.1 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.9.0 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.9.0.rc.1 app/views/spree/admin/payments/index.html.erb