From a531c5e12a65ac7c216bb3f91e510c1d31fbb06e Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Tue, 21 Jul 2020 21:47:09 +0200 Subject: static files, last improvements --- server/templates/server/approve_doc.html | 2 +- server/templates/server/approve_user.html | 2 +- server/templates/server/doc_create.html | 8 +++--- server/templates/server/doc_list.html | 19 +++++++------ server/templates/server/doc_type.html | 46 ++++++++++++++++++++++++------- server/templates/server/download_doc.html | 27 +++++++++++------- server/views.py | 5 ++++ 7 files changed, 74 insertions(+), 35 deletions(-) (limited to 'server') diff --git a/server/templates/server/approve_doc.html b/server/templates/server/approve_doc.html index 82ecf2a..3657f8f 100644 --- a/server/templates/server/approve_doc.html +++ b/server/templates/server/approve_doc.html @@ -34,7 +34,7 @@
- Invia + Invia
diff --git a/server/templates/server/approve_user.html b/server/templates/server/approve_user.html index 9d4b36c..09afee9 100644 --- a/server/templates/server/approve_user.html +++ b/server/templates/server/approve_user.html @@ -34,7 +34,7 @@
- Invia + Invia
diff --git a/server/templates/server/doc_create.html b/server/templates/server/doc_create.html index 1c469ae..1976967 100644 --- a/server/templates/server/doc_create.html +++ b/server/templates/server/doc_create.html @@ -55,25 +55,25 @@
diff --git a/server/templates/server/doc_list.html b/server/templates/server/doc_list.html index 51cd5e4..fd546c5 100644 --- a/server/templates/server/doc_list.html +++ b/server/templates/server/doc_list.html @@ -59,25 +59,25 @@
@@ -420,10 +420,12 @@ $(document).ready(function(){ $('.collapsible').collapsible(); $('.tooltipped').tooltip(); $('.modal').modal(); + $('.datepicker').datepicker(options); {% if error %} M.toast({html: '{{ error_text}}', classes: 'orange'}) {% endif %} }); + $('.chips').chips(); $('#chips_type').chips({ placeholder: 'Tipo', @@ -511,6 +513,7 @@ function send(id) { groups.setAttribute('value', groups_array.join("^|")) form.submit() } + $('#select-all').click(function(event) { if(this.checked) { // Iterate each checkbox @@ -523,6 +526,7 @@ $('#select-all').click(function(event) { }); } }); + var options = { showClearBtn: true, container: document.getElementById('main'), @@ -545,9 +549,6 @@ var options = { labelMonthPrev: 'Mese precedente', labelMonthSelect: 'Seleziona un mese', labelYearSelect: 'Seleziona un anno' - }} - document.addEventListener('DOMContentLoaded', function() { - var elems = document.querySelectorAll('.datepicker'); - var instances = M.Datepicker.init(elems, options); - }); + } +} {% endblock %} \ No newline at end of file diff --git a/server/templates/server/doc_type.html b/server/templates/server/doc_type.html index b4b7f87..33399bf 100644 --- a/server/templates/server/doc_type.html +++ b/server/templates/server/doc_type.html @@ -7,7 +7,7 @@ @@ -82,25 +91,25 @@
@@ -114,7 +123,7 @@