Sha256: 829eed4d7394f9f66ced3578034a211f8b0dae1fcb0a879e6c89812281a39a82

Contents?: true

Size: 1.04 KB

Versions: 5

Compression:

Stored size: 1.04 KB

Contents

<div class="search">

  <div class="column-block">

    <% if @search_query.present? %>
        <h1>Showing search results for "<%= @search_query %>"</h1>
    <% else %>
        <h1>Showing all accounts</h1>
    <% end %>

    <table id="accounts-table" class="table table-condensed mobile-data">
      <thead>
      <tr>
        <th>Name</th>
        <th>ID</th>
        <th>External key</th>
        <th>Balance</th>
        <th>City</th>
        <th>Country</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() {
  $('#accounts-table').dataTable({
    "dom": "<'row'r>t<'row'<'col-md-6'i><'col-md-6'p>>",
    "pagingType": "full_numbers",
    "pageLength": 50,
    "order": [[ 0, "asc" ]],
    "processing": true,
    "serverSide": true,
    "search": {"search": "<%= @search_query %>"},
    "ajax": "<%= accounts_pagination_path :format => :json %>"
  });
});
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

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