From c46671ed9306eebb66322487ab600e070b2a81c6 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Mon, 31 Aug 2020 13:46:00 +0200 Subject: graghics improvement for mobile, and more modular --- server/templates/server/approve_doc.html | 7 +-- server/templates/server/approve_user.html | 7 +-- server/templates/server/data_request.html | 7 +-- server/templates/server/doc_create.html | 7 +-- server/templates/server/doc_list.html | 93 ++++++++++++++----------------- server/templates/server/doc_type.html | 86 +++++++++++----------------- server/templates/server/index.html | 5 +- server/templates/server/upload_doc.html | 7 +-- server/templates/server/user_list.html | 47 +++++----------- 9 files changed, 107 insertions(+), 159 deletions(-) (limited to 'server/templates') diff --git a/server/templates/server/approve_doc.html b/server/templates/server/approve_doc.html index c4bdca4..42f4436 100644 --- a/server/templates/server/approve_doc.html +++ b/server/templates/server/approve_doc.html @@ -1,11 +1,10 @@ -{% extends 'registration/base.html' %} +{% extends 'registration/base_admin.html' %} {% block title %}Admin - Approva Documento{% endblock %} -{% block nav %} - Home +{% block breadcrumb %} Admin - Approva Documento + Approva Documento {% endblock %} {% block content %} diff --git a/server/templates/server/approve_user.html b/server/templates/server/approve_user.html index 09afee9..288b4f9 100644 --- a/server/templates/server/approve_user.html +++ b/server/templates/server/approve_user.html @@ -1,11 +1,10 @@ -{% extends 'registration/base.html' %} +{% extends 'registration/base_admin.html' %} {% block title %}Admin - Approva Utente{% endblock %} -{% block nav %} - Home +{% block breadcrumb %} Admin - Approva Utente + Approva Utente {% endblock %} {% block content %} diff --git a/server/templates/server/data_request.html b/server/templates/server/data_request.html index 8b0ed7c..1f65ff1 100644 --- a/server/templates/server/data_request.html +++ b/server/templates/server/data_request.html @@ -1,11 +1,10 @@ -{% extends 'registration/base.html' %} +{% extends 'registration/base_admin.html' %} {% block title %}Admin - Richiesta dati{% endblock %} -{% block nav %} - Home +{% block breadcrumb %} Admin - Richiesta dati + Richiesta dati {% endblock %} {% block content %} diff --git a/server/templates/server/doc_create.html b/server/templates/server/doc_create.html index b078bc5..a9877a3 100644 --- a/server/templates/server/doc_create.html +++ b/server/templates/server/doc_create.html @@ -1,12 +1,11 @@ -{% extends 'registration/base.html' %} +{% extends 'registration/base_admin.html' %} {% block title %}Admin - Crea Tipo{% endblock %} -{% block nav %} - Home +{% block breadcrumb %} Admin Tipo Doc - Crea Tipo + Crea Tipo {% endblock %} {% block content %} diff --git a/server/templates/server/doc_list.html b/server/templates/server/doc_list.html index 2bdc6c5..b9f1b1b 100644 --- a/server/templates/server/doc_list.html +++ b/server/templates/server/doc_list.html @@ -1,53 +1,34 @@ -{% extends 'registration/base_custom.html' %} +{% extends 'registration/base_admin.html' %} {% block title %}Admin - Documenti{% endblock %} -{% block nav %} - +{% block breadcrumb %} + Admin + Documenti +{% endblock %} +{% block toolbar %} + {% endblock %} {% block content %} @@ -73,6 +54,9 @@

+ @@ -469,8 +453,9 @@ {%block script%} $(document).ready(function(){ $('.collapsible').collapsible(); - $('.tooltipped').tooltip(); - $('.modal').modal(); + $('#modal1').modal(); + $('#modal2').modal(); + $('#modal3').modal({"dismissible": false}); $('.datepicker').datepicker(options); {% if error %} M.toast({html: '{{ error_text}}', classes: 'orange'}) @@ -482,6 +467,13 @@ $(document).ready(function(){ {% endif %} }); +function resetModal() { + $('#modal3').modal('close'); + document.getElementById('progress_bar').className = "indeterminate"; + document.getElementById("modal_close_button").hidden = true; + document.getElementById('progress_text').innerHTML = ""; +} + $('.chips').chips(); $('#chips_type').chips({ placeholder: 'Tipo', @@ -552,7 +544,8 @@ function update() { if (data[2]) { bar.className = "indeterminate"; url = '{% url "progress" %}' + '?job=' + '{{task_id}}' + '&download=true'; - box.innerHTML = "Il download dovrebbe partire automaticamente. Nel caso non succedesse cliccare il seguente link
Clicca lo sfondo per chiudere la finestra"; + box.innerHTML = "Il download dovrebbe partire automaticamente. Nel caso non succedesse cliccare il seguente link"; + document.getElementById("modal_close_button").hidden = false; document.getElementById('downloadLink').click(); } else { bar.style.width = "100%"; diff --git a/server/templates/server/doc_type.html b/server/templates/server/doc_type.html index 01db1be..f621e07 100644 --- a/server/templates/server/doc_type.html +++ b/server/templates/server/doc_type.html @@ -1,58 +1,39 @@ -{% extends 'registration/base_custom.html' %} +{% extends 'registration/base_admin.html' %} {% block title %}Admin - Tipo Documenti{% endblock %} -{% block nav %} - +{% block breadcrumb %} + Admin + Tipo Doc +{% endblock %} +{% block toolbar %} +