Sha256: 782f9ad00ad806cb474f2bc121fb4c067a3b28f7fd250cc02dafebf86d80e09f

Contents?: true

Size: 798 Bytes

Versions: 5

Compression:

Stored size: 798 Bytes

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({
    "dom": "t",
    "paging": false,
    "order": [[ 0, "desc" ]],
    "processing": true,
    "serverSide": true,
    "search": {"search": "<%= @search_query %>"},
    "ajax": "<%= invoices_pagination_path :format => :json %>"
  });
});
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kaui-0.15.0 app/views/kaui/invoices/index.html.erb
kaui-0.14.2 app/views/kaui/invoices/index.html.erb
kaui-0.14.1 app/views/kaui/invoices/index.html.erb
kaui-0.14.0 app/views/kaui/invoices/index.html.erb
kaui-0.12.0 app/views/kaui/invoices/index.html.erb