diff --git a/app/main/static/js/style_tables.js b/app/main/static/js/style_tables.js new file mode 100644 index 0000000..edddc7d --- /dev/null +++ b/app/main/static/js/style_tables.js @@ -0,0 +1,6 @@ +$('#charge_table').DataTable({ + "paginate": false, + "searching": true, + "ordering": true, + "info": false +}); diff --git a/app/main/templates/agent.html b/app/main/templates/agent.html index 4277796..76ec6bd 100644 --- a/app/main/templates/agent.html +++ b/app/main/templates/agent.html @@ -1,7 +1,8 @@ {% extends "base_page.html" %} {% block more_heads %} - + {% endblock %} @@ -100,10 +101,13 @@ {% block more_scripts %} {% include 'd3js-includes.html' %} {% include 'charges-includes.html' %} +{% include 'datatables-includes.html' %} + + {% endblock %} diff --git a/app/main/templates/project.html b/app/main/templates/project.html index b99c875..f17bd53 100644 --- a/app/main/templates/project.html +++ b/app/main/templates/project.html @@ -1,6 +1,7 @@ {% extends "base_page.html" %} {% block more_heads %} + {% endblock %} @@ -63,6 +64,8 @@ {% block more_scripts %} {% include 'd3js-includes.html' %} {% include 'charges-includes.html' %} +{% include 'datatables-includes.html' %} + + -- libgit2 0.21.2