Sha256: fca9da499de52292c92b8a9f3b6b147582152acffd1d7527f1f73199c209b58d

Contents?: true

Size: 1.25 KB

Versions: 16

Compression:

Stored size: 1.25 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">
      <%= button_link_to Spree.t(:new_payment), new_admin_order_payment_url(@order) %>
    </li>
  <% end %>
<% end %>

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

<% if @order.outstanding_balance? %>
  <h5 class="outstanding-balance"><%= @order.outstanding_balance < 0 ? Spree.t(:credit_owed) : Spree.t(: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="col-9 no-objects-found"><%= Spree.t(:order_has_no_payments) %></div>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
solidus_backend-2.4.2 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.4.1 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.3.1 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.2.2 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.4.0 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.4.0.rc1 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.4.0.beta1 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.3.0 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.3.0.rc3 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.3.0.rc2 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.3.0.rc1 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.3.0.beta1 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.2.1 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.2.0 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.2.0.rc1 app/views/spree/admin/payments/index.html.erb
solidus_backend-2.2.0.beta1 app/views/spree/admin/payments/index.html.erb