Sha256: f6c9b492217ae2b7db5d95b9e67ca8c579a21e3ca5ddc6a1b106a39bc30faac8

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 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": <%= @limit %>,
    "displayStart": <%= @offset %>,
    <% unless @ordering.blank? %>
        "order": [[ 0, "<%= @ordering %>" ]],
    <% end %>
    "processing": true,
    "serverSide": true,
    "search": {"search": "<%= @search_query %>"},
    "ajax": "<%= accounts_pagination_path :format => :json %>"
  });
});
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

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