mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Import payments/index from spree_backend
This commit is contained in:
24
app/views/spree/admin/payments/index.html.erb
Normal file
24
app/views/spree/admin/payments/index.html.erb
Normal file
@@ -0,0 +1,24 @@
|
||||
<%= 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), :icon => 'icon-plus' %>
|
||||
</li>
|
||||
<% end %>
|
||||
<li><%= button_link_to Spree.t(:back_to_orders_list), admin_orders_path, :icon => 'icon-arrow-left' %></li>
|
||||
<% end %>
|
||||
|
||||
<% content_for :page_title do %>
|
||||
<i class="icon-arrow-right"></i> <%= Spree.t(:payments) %>
|
||||
<% end %>
|
||||
|
||||
<% 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? %>
|
||||
<%= render :partial => 'list', :locals => { :payments => @payments } %>
|
||||
<% else %>
|
||||
<div class="alpha twelve columns no-objects-found"><%= Spree.t(:order_has_no_payments) %></div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user