Sha256: e18b0eb3fce5810f1849b8c6c68ad6b72e29c90c618ca729843e1a294ef1e8e7

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

<div class="search">

  <div class="column-block">

    <h1>Invoices</h1>

    <table id="invoices-table" class="table table-condensed mobile-data">
      <thead>
      <tr>
        <th>Number</th>
        <th>Date</th>
        <th>Amount</th>
        <th>Balance</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() {
  $('#invoices-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": "<%= invoices_pagination_path :format => :json %>"
  });
});
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

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