diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2022-01-10 18:40:12 +0100 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2022-01-10 18:40:22 +0100 |
commit | 0d3883fc76751d70871743e3eeb3d83cfe458e39 (patch) | |
tree | 21b2f9cffd3270615460cf4501da124a78537a72 /templates/registration/login.html | |
parent | get version, commit_id and branch only at startup (diff) | |
download | scout-subs-0d3883fc76751d70871743e3eeb3d83cfe458e39.tar.gz scout-subs-0d3883fc76751d70871743e3eeb3d83cfe458e39.zip |
add option to disable oauth
Diffstat (limited to '')
-rw-r--r-- | templates/registration/login.html | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/templates/registration/login.html b/templates/registration/login.html index 9ed5ac4..c9b5362 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -39,20 +39,22 @@ <br> <button class="btn waves-effect waves-light {{color}}" type="submit">Login</button> <br><br><hr><br> - <div class="row"> - <div class="col s12"> - <a href="{% url 'oauth_login' %}?next={{ request.GET.next }}" 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"> - Login con MiData + {% if midata_enabled %} + <div class="row"> + <div class="col s12"> + <a href="{% url 'oauth_login' %}?next={{ request.GET.next }}" 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"> + Login con MiData + </div> </div> - </div> - </a> + </a> + </div> </div> - </div> + {% endif %} <div class="row"> <div class="col s12"> <a href={% url 'signup' %} style="width: 100%" class="btn waves-effect waves-light {{color}}"> |