app/views/kaui/payments/show.html.erb in kaui-0.11.0 vs app/views/kaui/payments/show.html.erb in kaui-0.12.0
- old
+ new
@@ -1,3 +1,39 @@
-<%= render :partial => 'kaui/payments/payments_table' %>
+<div class="search">
-<%= link_to 'Go to Account', kaui_engine.account_path(@payments.first.account_id), :class => 'btn', :target => '_blank' %>
+ <div class="column-block">
+
+ <h1>Payment <%= @payment.payment_number %></h1>
+
+ <% if @payment.target_invoice_id.present? %>
+ <div class="row">
+ <div class="col-md-5">
+ <table class="transparent subtitle">
+ <tr>
+ <th>Invoice ID</th>
+ <td><%= link_to @payment.target_invoice_id, account_invoice_path(@account.account_id, @payment.target_invoice_id) %></td>
+ </tr>
+ </table>
+ </div>
+ </div>
+ <% end %>
+
+ <%= render :partial => 'kaui/payments/payment_table',
+ :locals => {:payment => @payment, :account => @account} %>
+
+ </div>
+
+</div>
+
+<div class="column-block">
+
+ <h1>Payment Method Details</h1>
+
+ <div class="fix-position payment-details">
+ <% if @payment_method.nil? %>
+ The Payment method has been deleted.
+ <% else %>
+ <%= render :partial => 'kaui/payment_methods/payment_methods_details_table', :locals => {:payment_method => @payment_method} %>
+ <% end %>
+ </div>
+
+</div>