aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Lepori <aleporia@gmail.com>2024-10-23 11:32:04 +0200
committerAndrea Lepori <aleporia@gmail.com>2024-10-23 11:32:04 +0200
commitb7cb885ec167bed91b6dc0db83f3ea2fee364c6b (patch)
tree81e907e1f0675eda4abef17071c6c1a35f4af431
parentremove data request button (diff)
downloadscout-subs-b7cb885ec167bed91b6dc0db83f3ea2fee364c6b.tar.gz
scout-subs-b7cb885ec167bed91b6dc0db83f3ea2fee364c6b.zip
add table download for user list
-rw-r--r--server/templates/server/doc_list_table.html1
-rw-r--r--server/templates/server/user_list_table.html5
-rw-r--r--version.txt2
3 files changed, 6 insertions, 2 deletions
diff --git a/server/templates/server/doc_list_table.html b/server/templates/server/doc_list_table.html
index eb9c946..eb0ce8f 100644
--- a/server/templates/server/doc_list_table.html
+++ b/server/templates/server/doc_list_table.html
@@ -26,7 +26,6 @@
<script src="https://unpkg.com/jspdf@latest/dist/jspdf.umd.min.js"></script>
<script src="https://unpkg.com/jspdf-autotable@latest/dist/jspdf.plugin.autotable.js"></script>
<script src="https://cdn.sheetjs.com/xlsx-0.20.1/package/dist/xlsx.full.min.js"></script>
-
{% endblock %}
{% block content %}
diff --git a/server/templates/server/user_list_table.html b/server/templates/server/user_list_table.html
index 98361cc..29ef574 100644
--- a/server/templates/server/user_list_table.html
+++ b/server/templates/server/user_list_table.html
@@ -10,6 +10,8 @@
<div class="nav-wrapper {{color}}">
<ul>
<li><a href="#modal1" data-target="modal1" class="modal-trigger tooltipped" data-position="top" data-tooltip="Seleziona colonne"><i class="material-icons">view_column</i></a></li>
+ <li><a class="tooltipped" data-position="top" data-tooltip="Scarica tabella come Excel" Onclick='table.download("xlsx", "utenti - tabella.xlsx")'><i class="material-icons">table_view</i></a></li>
+ <li><a class="tooltipped" data-position="top" data-tooltip="Scarica tabella come PDF" Onclick='table.downloadToTab("pdf")'><i class="material-icons">picture_as_pdf</i></a></li>
</ul>
</div>
{% endblock %}
@@ -32,6 +34,9 @@
{% block script_import %}
<script src=" https://cdn.jsdelivr.net/npm/luxon@3.4.1/build/global/luxon.min.js "></script>
+<script src="https://unpkg.com/jspdf@latest/dist/jspdf.umd.min.js"></script>
+<script src="https://unpkg.com/jspdf-autotable@latest/dist/jspdf.plugin.autotable.js"></script>
+<script src="https://cdn.sheetjs.com/xlsx-0.20.1/package/dist/xlsx.full.min.js"></script>
{% endblock %}
{% block script %}
diff --git a/version.txt b/version.txt
index 7055842..5241c35 100644
--- a/version.txt
+++ b/version.txt
@@ -1,2 +1,2 @@
version=0.7
-rev=23
+rev=24