From 619e0e0f5263875b753334483d9b896194e9a61d Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Fri, 19 Jun 2020 15:05:59 +0200 Subject: More data for users --- client/templates/client/approve.html | 33 ++++++++++++++++++-------- client/templates/client/index.html | 45 ++++++++++++++++++------------------ 2 files changed, 47 insertions(+), 31 deletions(-) (limited to 'client/templates/client') diff --git a/client/templates/client/approve.html b/client/templates/client/approve.html index 026a66d..e00aedc 100644 --- a/client/templates/client/approve.html +++ b/client/templates/client/approve.html @@ -3,16 +3,31 @@ {% block title %}Approva{% endblock %} {% block nav %} - + Home + Approva {% endblock %} {% block content %} -{{ code }} +{% if okay %} +
+
+
+
+

Per approvare l'utente invia il seguente codice al capo branca:

+

{{code}}

+

+
+
+
+{% else %} +
+
+
+
+

Per approvare l'utente inserire prima i propri dati personali cliccando il proprio nome in alto a destra.

+
+
+
+
+{% endif %} {% endblock %} \ No newline at end of file diff --git a/client/templates/client/index.html b/client/templates/client/index.html index 2c55dbc..64b4d42 100644 --- a/client/templates/client/index.html +++ b/client/templates/client/index.html @@ -3,34 +3,35 @@ {% block title %}Home{% endblock %} {%block nav%} - + Home {% endblock%} {% block content %} {% if user.is_authenticated %} - {% if user.is_staff %} - Ciao {{ user.username }}! -

admin - logout

- {% elif perms.client.approved %} - Ciao {{ user.username }}! -

logout

+ {% if user.is_staff or perms.client.approved %} {% else %} - Il tuo utente non e` ancora stato approvato. -

approva - logout

+
+
+
+
+

Il tuo utente non e` ancora stato approvato.

+
+ +
+
+
{% endif %} {% else %} -

Non hai fatto il login

-

login - registrazione

+
+
+
+
+

Se hai gia` un account clicca login in alto a destra. Altrimenti clicca registrazione

+
+
+
+
{% endif %} {% endblock %} \ No newline at end of file -- cgit v1.2.1