Sha256: aa2e254a8fac591538219a9ffef000b6e0d4c775282b672758e96b4b4cd954b9

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

<div class="search">

  <div class="column-block">

    <h1>Payments</h1>

    <table id="payments-table" class="table table-condensed mobile-data">
      <thead>
      <tr>
        <th>Number</th>
        <th>Date</th>
        <th>Amount</th>
        <th>Refund amount</th>
        <th>Last transaction status</th>
      </tr>
      </thead>
      <tbody>
      <tr>
        <td colspan="1" class="dataTables_empty">Loading data from server</td>
      </tr>
      </tbody>
    </table>

  </div>

</div>

<%= javascript_tag do %>
$(document).ready(function() {
  $('#payments-table').dataTable({
    <% if @account.account_id.blank? %>
        "dom": "<'row'r>t<'row'<'col-md-6'i><'col-md-6'p>>",
        "pagingType": "full_numbers",
        "pageLength": <%= @limit %>,
        "displayStart": <%= @offset %>,
    <% else %>
        // No paging for per-account listings
        "dom": "t",
        "paging": false,
    <% end %>
    <% unless @ordering.blank? %>
        "order": [[ 0, "<%= @ordering %>" ]],
    <% end %>
    "processing": true,
    "serverSide": true,
    "search": {"search": "<%= @search_query %>"},
    "ajax": "<%= payments_pagination_path :format => :json %>"
  });
});
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kaui-0.15.2 app/views/kaui/payments/index.html.erb