From 0b5be72725ffd6cd10490fbd202388e22c7f8522 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Tue, 12 Nov 2024 15:27:12 +0100 Subject: commit edits for new feature --- server/templates/server/data_download.html | 102 +++++++++++++++++++++++++++++ server/templates/server/doc_type.html | 2 +- 2 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 server/templates/server/data_download.html (limited to 'server/templates') diff --git a/server/templates/server/data_download.html b/server/templates/server/data_download.html new file mode 100644 index 0000000..59b180d --- /dev/null +++ b/server/templates/server/data_download.html @@ -0,0 +1,102 @@ +{% extends 'registration/base_admin.html' %} + +{% block title %}Admin - Richiesta dati{% endblock %} + +{% block breadcrumb %} + Admin + Richiesta dati +{% endblock %} + +{% block content %} + +
+
+
+
+
+
+ +
+
+
+
+

+ +

+

+ +

+

+ +

+
+
+
+ +
+ +
+
+
+
+{% endblock %} + +{% block script %} +$(document).ready(function(){ + {% if error %} + M.toast({html: '{{ error }}', classes: 'orange'}) + {% endif %} +}); + +document.addEventListener('DOMContentLoaded', function() { + var options = { + placeholder: 'Documento', + autocompleteOptions: { + data: { + {% for doc in docs %} + '{{ doc.name }}': null, + {% endfor %} + }, + }, + limit: 1, + }; + + var elems = document.querySelectorAll('.chips'); + var instances = M.Chips.init(elems, options); +}); + +function send() { + var chips = M.Chips.getInstance(document.getElementById('doc_search')); + var personal = document.getElementsByName('personal')[0].checked; + var medic = document.getElementsByName('medic')[0].checked; + var attachments = document.getElementsByName('attachments')[0].checked; + + var loadbox = document.getElementById('loading'); + var progress = document.getElementById('progress_bar'); + var progress_text = document.getElementById('progress_text'); + var under_text = document.getElementById('under_text'); + + loadbox.hidden = false; + +} +{% endblock%} \ No newline at end of file diff --git a/server/templates/server/doc_type.html b/server/templates/server/doc_type.html index 35dd9f3..023ea5e 100644 --- a/server/templates/server/doc_type.html +++ b/server/templates/server/doc_type.html @@ -147,7 +147,7 @@