Sha256: e3fa64dabe43df2bfea4b1ba490af56701d3548c8a1c1117c4bd44f177a5c8c8

Contents?: true

Size: 1.33 KB

Versions: 82

Compression:

Stored size: 1.33 KB

Contents

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

<% content_for :page_actions do %>
  <% if @order.outstanding_balance? && can?(:create, Spree::Payment) %>
    <span id="new_payment_section">
      <%= button_link_to Spree.t(:new_payment), new_admin_order_payment_url(@order), class: "btn-success", icon: 'add' %>
    </span>
  <% end %>
<% end %>

<% content_for :page_title do %>
  / <%= Spree.t(:payments) %>
<% end %>

<% if @order.outstanding_balance? %>
  <div class="alert alert-info outstanding-balance">
    <%= @order.outstanding_balance < 0 ? Spree.t(:credit_owed) : Spree.t(:balance_due) %>: <strong><%= @order.display_outstanding_balance %></strong>
  </div>
<% end %>

<% if @payments.any? %>

  <div data-hook="payment_list" class="panel panel-default no-border-bottom table-wrapper">
    <%= render partial: 'list', locals: { payments: @payments } %>
  </div>

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

<% else %>
  <div class="alert alert-info no-objects-found"><%= Spree.t(:order_has_no_payments) %></div>
<% end %>

<%= render partial: 'spree/admin/shared/order_summary' %>

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
spree_backend-3.1.0.rc2 app/views/spree/admin/payments/index.html.erb
spree_backend-3.1.0.rc1 app/views/spree/admin/payments/index.html.erb