From 0a19d5ff7a7b09dbc81f5e4c8ec4fee334505cda Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Sun, 30 Aug 2020 22:38:42 +0200 Subject: custom query and group capi --- server/templates/server/data_request.html | 52 +++++++++++++++++++++++++++++++ server/templates/server/index.html | 21 ++++++++++--- server/templates/server/user_list.html | 15 +++++++-- 3 files changed, 82 insertions(+), 6 deletions(-) create mode 100644 server/templates/server/data_request.html (limited to 'server/templates') diff --git a/server/templates/server/data_request.html b/server/templates/server/data_request.html new file mode 100644 index 0000000..8b0ed7c --- /dev/null +++ b/server/templates/server/data_request.html @@ -0,0 +1,52 @@ +{% extends 'registration/base.html' %} + +{% block title %}Admin - Richiesta dati{% endblock %} + +{% block nav %} + Home + Admin + Richiesta dati +{% endblock %} + +{% block content %} + +
+
+
+
+ {% csrf_token %} +
+
+ + +
+ +
+ +
+
+
+
+{% endblock %} + +{% block script %} +document.addEventListener('DOMContentLoaded', function() { + var elems = document.querySelectorAll('select'); + var options = {}; + var instances = M.FormSelect.init(elems, options); +}); + +function copy() { + var copyText = document.getElementById("data"); + copyText.select(); + copyText.setSelectionRange(0, 99999); /*For mobile devices*/ + document.execCommand("copy"); +} +{% endblock%} \ No newline at end of file diff --git a/server/templates/server/index.html b/server/templates/server/index.html index 2e299d1..83be995 100644 --- a/server/templates/server/index.html +++ b/server/templates/server/index.html @@ -10,7 +10,7 @@ {% block content %}
{% if user.is_staff %} -
+

@@ -31,14 +31,27 @@

{% endif %} {% if user.is_staff %} -
+
{% else %}
{% endif %} @@ -62,14 +75,14 @@
-
+ -
+
Lista tipo doc

diff --git a/server/templates/server/user_list.html b/server/templates/server/user_list.html index 721f284..54b7b77 100644 --- a/server/templates/server/user_list.html +++ b/server/templates/server/user_list.html @@ -45,7 +45,9 @@
  • {% if user.0.is_staff %} - grade + star + {% elif user.6 %} + star_border {% endif %} {{user.0.first_name}} {{user.0.last_name}}
    @@ -64,7 +66,16 @@ Deapprova
  • - remove_circle_outlineDeapprova utente + +

    {% endif %}
      -- cgit v1.2.1