From 45512e815acf1c588439dde04740e9f8792c3bfe Mon Sep 17 00:00:00 2001 From: James Polley Date: Wed, 4 Oct 2017 20:37:07 +1100 Subject: [PATCH] Add datatables tools to ticket reports --- pinaxcon/templates/registrasion/report.html | 61 ++++++++++++++----- .../symposion/conference/user_list.html | 1 + .../templates/symposion/reviews/base.html | 20 +++--- .../templates/registrasion/report_.html | 8 ++- 4 files changed, 62 insertions(+), 28 deletions(-) diff --git a/pinaxcon/templates/registrasion/report.html b/pinaxcon/templates/registrasion/report.html index 7d191d79..3bc7deac 100644 --- a/pinaxcon/templates/registrasion/report.html +++ b/pinaxcon/templates/registrasion/report.html @@ -18,23 +18,52 @@
{% for report in reports %} -

{{ report.title }}

- - - {% for heading in report.headings %} - - {% endfor %} - - {% for line in report.rows %} - - {% for item in line %} - +

{{ report.title }}

+
{{ heading }}
- {{ item|safe }} -
+ + + {% for heading in report.headings %} + + {% endfor %} + + + + {% for line in report.rows %} + + {% for item in line %} + + {% endfor %} + {% endfor %} - - {% endfor %} -
{{ heading }}
+ {{ item|safe }} +
+ + {% endfor %} {% endblock %} + +{% block extra_script %} + + + + + +{% endblock %} diff --git a/pinaxcon/templates/symposion/conference/user_list.html b/pinaxcon/templates/symposion/conference/user_list.html index c59587e7..dc7e068f 100644 --- a/pinaxcon/templates/symposion/conference/user_list.html +++ b/pinaxcon/templates/symposion/conference/user_list.html @@ -80,6 +80,7 @@ "sDom": "<'row'<'col-md-3'l><'col-md-3'T><'col-md-4'f>r>t<'row'<'col-md-3'i><'col-md-5'p>>", "sPaginationType": "bootstrap", "bStateSave": true, + "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]], "oTableTools": { "aButtons": [ "copy", diff --git a/pinaxcon/templates/symposion/reviews/base.html b/pinaxcon/templates/symposion/reviews/base.html index 86353f3b..8bf2048a 100644 --- a/pinaxcon/templates/symposion/reviews/base.html +++ b/pinaxcon/templates/symposion/reviews/base.html @@ -108,19 +108,19 @@