aboutsummaryrefslogtreecommitdiffstats
path: root/client/templates
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-06-19 15:05:59 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-06-19 15:05:59 +0200
commit619e0e0f5263875b753334483d9b896194e9a61d (patch)
tree861b970de54b77ad715aa9d4177eaaad384c198a /client/templates
parentinitial commit (diff)
downloadscout-subs-619e0e0f5263875b753334483d9b896194e9a61d.tar.gz
scout-subs-619e0e0f5263875b753334483d9b896194e9a61d.zip
More data for users
Diffstat (limited to 'client/templates')
-rw-r--r--client/templates/client/approve.html33
-rw-r--r--client/templates/client/index.html45
2 files changed, 47 insertions, 31 deletions
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 %}
-<nav>
- <div class="nav-wrapper">
- <div class="col s12">
- <a style="margin-left: 10px;" href="{% url 'index' %}" class="breadcrumb">Home</a>
- <a href="#!" class="breadcrumb">Approva</a>
- </div>
- </div>
-</nav>
+ <a style="margin-left: 10px;" href="{% url 'index' %}" class="breadcrumb">Home</a>
+ <a style="margin-left: 10px;" href="{% url 'approve' %}" class="breadcrumb hide-on-med-and-down">Approva</a>
{% endblock %}
{% block content %}
-{{ code }}
+{% if okay %}
+ <div class="row">
+ <div class="col l4 offset-l4 m8 offset-m2 s12">
+ <div class="card">
+ <div class="card-content">
+ <p>Per approvare l'utente invia il seguente codice al capo branca:</p>
+ <h3 class="center-align">{{code}}<h3>
+ </div>
+ </div>
+ </div>
+ </div>
+{% else %}
+ <div class="row">
+ <div class="col l4 offset-l4 m8 offset-m2 s12">
+ <div class="card">
+ <div class="card-content">
+ <p>Per approvare l'utente inserire prima i propri dati personali cliccando il proprio nome in alto a destra.</p>
+ </div>
+ </div>
+ </div>
+ </div>
+{% 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%}
-<nav>
- <div class="nav-wrapper">
- <a style="margin-left: 10px;" href="{% url 'index' %}" class="breadcrumb">Home</a>
- <ul class="right hide-on-med-and-down">
- <li>{{ user.username}}</li>
- <li><a href="{% url 'logout' %}">Logout</a></li>
- </ul>
- </div>
-</nav>
+ <a style="margin-left: 10px;" href="{% url 'index' %}" class="breadcrumb">Home</a>
{% endblock%}
{% block content %}
{% if user.is_authenticated %}
- {% if user.is_staff %}
- Ciao {{ user.username }}!
- <p><a class="waves-effect waves-light btn" href="{% url 'server' %}">admin</a>
- <a class="waves-effect waves-light btn" href="{% url 'logout' %}">logout</a></p>
- {% elif perms.client.approved %}
- Ciao {{ user.username }}!
- <p><a class="waves-effect waves-light btn" href="{% url 'logout' %}">logout</a></p>
+ {% if user.is_staff or perms.client.approved %}
{% else %}
- Il tuo utente non e` ancora stato approvato.
- <p><a class="waves-effect waves-light btn" href="{% url 'approve' %}">approva</a>
- <a class="waves-effect waves-light btn" href="{% url 'logout' %}">logout</a></p>
+ <div class="row">
+ <div class="col l4 offset-l4 m8 offset-m2 s12">
+ <div class="card">
+ <div class="card-content">
+ <p>Il tuo utente non e` ancora stato approvato.</p>
+ </div>
+ <div class="card-action">
+ <a href="{% url 'approve' %}">Come farsi approvare l'utente</a>
+ </div>
+ </div>
+ </div>
+ </div>
{% endif %}
{% else %}
- <p>Non hai fatto il login</p>
- <p><a class="waves-effect waves-light btn" href="{% url 'login' %}">login</a>
- <a class="waves-effect waves-light btn" href="{% url 'signup' %}">registrazione</a></p>
+ <div class="row">
+ <div class="col l4 offset-l4 m8 offset-m2 s12">
+ <div class="card">
+ <div class="card-content">
+ <p>Se hai gia` un account clicca login in alto a destra. Altrimenti clicca registrazione</p>
+ </div>
+ </div>
+ </div>
+ </div>
{% endif %}
{% endblock %} \ No newline at end of file