diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-09-03 18:18:03 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-09-03 18:18:03 +0200 |
commit | f4d03e6016950c41836100e97b206a823f7cb090 (patch) | |
tree | a27cc8386d2b15e485aff4e5511f98e8904fd706 /client/templates | |
parent | bug fix: multiple docs same type (diff) | |
download | scout-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.html | 32 | ||||
-rw-r--r-- | client/templates/client/index.html | 11 |
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 è 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> |