From 684c019daf76b499417c85e4ea5877a96b0ddb0e Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Tue, 23 Jun 2020 19:05:09 +0200 Subject: Nicer user list, multi group support --- server/templates/server/doc_create.html | 22 ++- server/templates/server/doc_list.html | 87 +++++++--- server/templates/server/doc_type.html | 30 +++- server/templates/server/download_doc.html | 2 +- server/templates/server/index.html | 10 +- server/templates/server/user_list.html | 263 +++++++++++++++++++++++++++--- 6 files changed, 357 insertions(+), 57 deletions(-) (limited to 'server/templates') diff --git a/server/templates/server/doc_create.html b/server/templates/server/doc_create.html index 6454bee..1c469ae 100644 --- a/server/templates/server/doc_create.html +++ b/server/templates/server/doc_create.html @@ -80,14 +80,20 @@
- - + +
- - + + +
+
+
+
+ +
@@ -100,4 +106,12 @@
+{% endblock %} + +{% block script%} +$(document).ready(function(){ + {% if error %} + M.toast({html: '{{ error_text}}', classes: 'orange'}) + {% endif %} +}); {% endblock %} \ No newline at end of file diff --git a/server/templates/server/doc_list.html b/server/templates/server/doc_list.html index 961b9ab..5206d2f 100644 --- a/server/templates/server/doc_list.html +++ b/server/templates/server/doc_list.html @@ -36,8 +36,10 @@
  • archive
  • unarchive
  • -
  • checkDEBUG
  • -
  • deleteDEBUG
  • + {% if settings.DEBUG %} +
  • checkDEBUG
  • +
  • deleteDEBUG
  • + {% endif %}
    - Lista tipo doc - Lista documenti - Approva documento + Lista tipo doc + Lista documenti + Approva documento
    diff --git a/server/templates/server/user_list.html b/server/templates/server/user_list.html index 3837619..8abf5e8 100644 --- a/server/templates/server/user_list.html +++ b/server/templates/server/user_list.html @@ -3,26 +3,251 @@ {% block title %}Admin - Lista Utenti{% endblock %} {% block nav %} - Home - Admin - Lista Utenti + Home + Admin + Lista Utenti {% endblock %} {% block content %} - - - - - - - - - {% for user in users %} - - {% for att in user %} - - {% endfor %} - - {% endfor %} -
    UsernameNomeCognomeCodiceStato
    {{att}}
    +
    +{% csrf_token %} + + +
    +{% endblock %} + +{% block script %} +document.addEventListener('DOMContentLoaded', function() { + var elems = document.querySelectorAll('.collapsible'); + var instances = M.Collapsible.init(elems, {}); +}); + +function send(id) { + var form = document.getElementById('form') + var action = document.getElementById('action') + + action.setAttribute('value', id); + form.submit() +} {% endblock %} \ No newline at end of file -- cgit v1.2.1