aboutsummaryrefslogtreecommitdiffstats
path: root/client/templates
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-09-03 18:18:03 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-09-03 18:18:03 +0200
commitf4d03e6016950c41836100e97b206a823f7cb090 (patch)
treea27cc8386d2b15e485aff4e5511f98e8904fd706 /client/templates
parentbug fix: multiple docs same type (diff)
downloadscout-subs-f4d03e6016950c41836100e97b206a823f7cb090.tar.gz
scout-subs-f4d03e6016950c41836100e97b206a823f7cb090.zip
better wording, simpler approve page
Diffstat (limited to 'client/templates')
-rw-r--r--client/templates/client/approve.html32
-rw-r--r--client/templates/client/index.html11
2 files changed, 8 insertions, 35 deletions
diff --git a/client/templates/client/approve.html b/client/templates/client/approve.html
deleted file mode 100644
index 785e719..0000000
--- a/client/templates/client/approve.html
+++ /dev/null
@@ -1,32 +0,0 @@
-{% extends 'registration/base_client.html' %}
-
-{% block title %}Approva{% endblock %}
-
-{% block breadcrumb %}
- <a class="breadcrumb hide-on-med-and-down">Approva</a>
-{% endblock %}
-
-{% block content %}
-{% 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 e medici 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 e0f09db..a62e907 100644
--- a/client/templates/client/index.html
+++ b/client/templates/client/index.html
@@ -351,9 +351,14 @@
<div class="card">
<div class="card-content">
<p>Il tuo utente non &egrave; ancora stato approvato.</p>
- </div>
- <div class="card-action">
- <a href="{% url 'approve' %}">Come farsi approvare l'utente</a>
+ <br>
+ {% if user_code %}
+ <p>Per approvare l'utente invia il seguente codice al capo branca:</p>
+ <h3 class="center-align">{{user_code}}<h3>
+ {% else %}
+ <p class="hide-on-small-only">Per approvare l'utente inserire prima i propri dati personali e medici cliccando il proprio nome in alto a destra. Torna in seguito su questa pagina per i prossimi passaggi.</p>
+ <p class="hide-on-med-and-up">Per approvare l'utente inserire prima i propri dati personali e medici cliccando <i class="material-icons tiny">person</i>. Torna in seguito su questa pagina per i prossimi passaggi.</p>
+ {% endif %}
</div>
</div>
</div>