diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2022-01-02 21:46:17 +0100 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2022-01-02 21:46:41 +0100 |
commit | 8eff84fe8b00c32efda5e0090f12d02a01367155 (patch) | |
tree | 1c682a4e9f3c13df5c7267a49abdd3a0f88d92b7 /accounts/templates | |
parent | login/register with midata (diff) | |
download | scout-subs-8eff84fe8b00c32efda5e0090f12d02a01367155.tar.gz scout-subs-8eff84fe8b00c32efda5e0090f12d02a01367155.zip |
disconnect oauth check validity
Diffstat (limited to 'accounts/templates')
-rw-r--r-- | accounts/templates/accounts/index.html | 57 |
1 files changed, 38 insertions, 19 deletions
diff --git a/accounts/templates/accounts/index.html b/accounts/templates/accounts/index.html index 874231b..7cd287d 100644 --- a/accounts/templates/accounts/index.html +++ b/accounts/templates/accounts/index.html @@ -12,13 +12,14 @@ <li class="tab"><a class="active" href="#personal">Info Personali</a></li> <li class="tab"><a href="#medic">Info Mediche</a></li> <li class="tab"><a href="#misc">Impostazioni</a></li> + <li class="tab"><a href="#test">Woooo</a></li> </ul> </div> {% endblock%} {% block content %} <form action="{% url 'personal'%}" method="post" id="form1" enctype="multipart/form-data"> -<div id="personal" class="row"> +<div "personal" class="row"> <div class="col l8 offset-l2 s12"> <div class="card-panel"> <div class="row"> @@ -310,10 +311,14 @@ <i class="large material-icons">save</i> </a> </div> - </form> </div> </div> </div> +<div id="test" class="row"> + <div class="col s12"> + Helloooooo + </div> +</div> <div id="misc" class="row"> <div class="col l8 offset-l2 s12"> <div class="card-panel"> @@ -322,29 +327,43 @@ <h6>Collegamento con MiData</h6> </div> </div> - <div class="row"> - <div class="col s12"> - Collega il tuo account con MiData per avere un login unico. Attenzione una volta collegato il - tuo account i dati presenti su MiData dovranno essere modificati sulla piattaforma stessa. + {% if midata_user %} + <div class="row"> + <div class="col s12"> + Il tuo utente è già connesso a MiData + </div> + <div class="col m6 s12"> + <a href={% url 'oauth_disconnect' %} style="width: 100%" class="btn waves-effect waves-light {{color}}"> + Scollega da MiData + </a> + </div> </div> - </div> - <div class="row"> - <div class="col m6 s12"> - <a href={% url 'oauth_login' %} style="width: 100%; background-color: #99BF62" class="btn waves-effect waves-light"> - <div class="row"> - <div class="col s2"> - <img style="height: 30px; padding-top: 3px" src="{% static 'pbs_logo.svg' %}" alt="PBS Logo"> - </div> - <div class="col s10"> - Collega a MiData + {% else %} + <div class="row"> + <div class="col s12"> + Collega il tuo account con MiData per avere un login unico. Attenzione una volta collegato il + tuo account i dati presenti su MiData dovranno essere modificati sulla piattaforma stessa. + </div> + </div> + <div class="row"> + <div class="col m6 s12"> + <a href={% url 'oauth_connect' %} style="width: 100%; background-color: #99BF62" class="btn waves-effect waves-light"> + <div class="row"> + <div class="col s2"> + <img style="height: 30px; padding-top: 3px" src="{% static 'pbs_logo.svg' %}" alt="PBS Logo"> + </div> + <div class="col s10"> + Collega a MiData + </div> </div> - </div> - </a> + </a> + </div> </div> - </div> + {% endif %} </div> </div> </div> +</form> {% endblock %} {% block script %} |