summaryrefslogtreecommitdiffstats
path: root/data/templates/products/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/products/index.html')
-rw-r--r--data/templates/products/index.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/data/templates/products/index.html b/data/templates/products/index.html
index 5e432c0..38d9909 100644
--- a/data/templates/products/index.html
+++ b/data/templates/products/index.html
@@ -1,6 +1,6 @@
<a href="/products/bestbefore">product list with best before dates</a>
-<table class="sortable table table-bordered table-striped table-condensed">
+<table id="producttable" class="table table-bordered table-striped table-condensed">
<thead>
<tr><th>EAN</th></th><th>Name</th><th>Category</th><th>Amount</th><th>Memberprice</th><th>Guestprice</th></tr>
</thead>
@@ -24,3 +24,9 @@
</div>
</form>
</div>
+
+<script type="text/javascript">
+$(document).ready(function() {
+ $('#producttable').DataTable();
+} );
+</script>