From fbb4637a77dc5982b4e694dd31a0aa7d11cec17c Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Thu, 18 Jun 2020 23:17:08 +0200 Subject: initial commit --- client/templates/client/approve.html | 18 ++++++++++++++++++ client/templates/client/index.html | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 client/templates/client/approve.html create mode 100644 client/templates/client/index.html (limited to 'client/templates') diff --git a/client/templates/client/approve.html b/client/templates/client/approve.html new file mode 100644 index 0000000..026a66d --- /dev/null +++ b/client/templates/client/approve.html @@ -0,0 +1,18 @@ +{% extends 'registration/base.html' %} + +{% block title %}Approva{% endblock %} + +{% block nav %} + +{% endblock %} + +{% block content %} +{{ code }} +{% endblock %} \ No newline at end of file diff --git a/client/templates/client/index.html b/client/templates/client/index.html new file mode 100644 index 0000000..2c55dbc --- /dev/null +++ b/client/templates/client/index.html @@ -0,0 +1,36 @@ +{% extends 'registration/base.html' %} + +{% block title %}Home{% endblock %} + +{%block nav%} + +{% endblock%} + +{% block content %} +{% if user.is_authenticated %} + {% if user.is_staff %} + Ciao {{ user.username }}! +

admin + logout

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

logout

+ {% else %} + Il tuo utente non e` ancora stato approvato. +

approva + logout

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

Non hai fatto il login

+

login + registrazione

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