{% extends 'layout.html' %}
{% import '_macros.html' as macros %}
{% block content %}
<table id="inventory_table" class='ui fixed compact very basic sortable table'>
  <thead>
    <tr>
      {% for head in fact_headers %}
      <th>{{head}}</th>
      {% endfor %}
    </tr>
  </thead>
  <tbody class="searchable">
  </tbody>
</table>
{% endblock content %}
{% block onload_script %}
{% macro extra_options(caller) %}
  'serverSide': false,
{% endmacro %}
{{ macros.datatable_init(table_html_id="inventory_table", ajax_url=url_for('inventory_ajax', env=current_env), default_length=config.NORMAL_TABLE_COUNT, length_selector=config.TABLE_COUNT_SELECTOR, extra_options=extra_options) }}
{% endblock onload_script %}
