diff --git a/app/main/static/js/style_tables.js b/app/main/static/js/style_tables.js index 16b562b..9f11c31 100644 --- a/app/main/static/js/style_tables.js +++ b/app/main/static/js/style_tables.js @@ -9,3 +9,15 @@ $('#charge_table').DataTable({ 'csvHtml5', ] }); + +$('#table_datatables').DataTable({ + "paginate": false, + "searching": true, + "ordering": true, + "info": false, + "dom": 'Bfrtip', + buttons: [ + 'excelHtml5', + 'csvHtml5', + ] +}); diff --git a/app/main/templates/agents.html b/app/main/templates/agents.html index 7a561b0..f7a2a85 100644 --- a/app/main/templates/agents.html +++ b/app/main/templates/agents.html @@ -1,10 +1,18 @@ {% extends "base_page.html" %} + + +{% block more_heads %} + + + +{% endblock %} + {% block content %} - +
@@ -25,4 +33,9 @@ {% endfor %}
Nom
-{% endblock %} \ No newline at end of file +{% endblock %} + + +{% block more_scripts %} +{% include 'datatables-includes.html' %} +{% endblock %} diff --git a/app/main/templates/projects.html b/app/main/templates/projects.html index 2fc7c9e..60432b8 100644 --- a/app/main/templates/projects.html +++ b/app/main/templates/projects.html @@ -1,10 +1,17 @@ {% extends "base_page.html" %} + +{% block more_heads %} + + + +{% endblock %} + {% block content %} - +
{% for c_title in projects[0][1:] %} @@ -28,3 +35,7 @@
{% endblock %} + +{% block more_scripts %} +{% include 'datatables-includes.html' %} +{% endblock %} -- libgit2 0.21.2