Sha256: dfd6238998c1238a001ef5cd9172a69a8edd111b24f096a59acc112219664cb2

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 KB

Contents

<div class="page-header">
  <h3>Payments</h3>
</div>
<table class="table table-condensed table-striped data-table">
  <thead>
    <tr>
      <th>Requested date</th>
      <th>Effective date</th>
      <th>Total amount</th>
      <th>Paid amount</th>
      <th>Payment method</th>
      <th>External payment id / Secondary payment id</th>
      <th>Retry count</th>
      <th>Status</th>
    </tr>
  </thead>
  <tbody>
    <% if @payments.present? %>
      <% @payments.each do |payment| %>
        <tr>
          <td><%= format_date(payment.requested_date).html_safe if payment.requested_date.present? %></td>
          <td><%= format_date(payment.effective_date).html_safe if payment.effective_date.present? %></td>
          <td><%= payment.amount %> <%= payment.currency if payment.amount.present? %></td>
          <td><%= payment.paid_amount %> <%= payment.currency if payment.paid_amount.present? %></td>
          <td></td>
          <td><%= payment.ext_first_payment_id_ref %> <%= " / " if payment.ext_second_payment_id_ref.present? %> <%= payment.ext_second_payment_id_ref %></td>
          <td><%= payment.retry_count %></td>
          <td><%= payment.status %> <%=  payment.gateway_error_code unless payment.status == 'SUCCESS' %> <%= payment.gateway_error_msg %></td>
        </tr>
      <% end %>
    <% end %>
  </tbody>
</table>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kaui-0.1.6 app/views/kaui/payments/_payments_table.html.erb
kaui-0.1.5 app/views/kaui/payments/_payments_table.html.erb
kaui-0.1.4 app/views/kaui/payments/_payments_table.html.erb
kaui-0.1.3 app/views/kaui/payments/_payments_table.html.erb
kaui-0.1.2 app/views/kaui/payments/_payments_table.html.erb