1- {% load static %}
2- < link rel ="stylesheet " href ="{% static 'css/main.css' %} " type ="text/css ">
3- < head >
4- < meta charset ="UTF-8 ">
5- < title > {% if identity_linking %}Identity Linking{% else %}Login{% endif %}</ title >
6- </ head >
7- < div class ="page-wrap gradient-primary ">
8- < div class ="container ">
9- < div class ="panel ">
10- < h2 class ="h3 "> {% if identity_linking %}Identity Linking{% else %}Log in to your account{% endif %}</ h2 >
1+ {% extends 'base/layout.html' %}
2+ {% block title %}{% if identity_linking %}Identity Linking{% else %}Login{% endif %}{% endblock %}
3+ {% block content %}
4+ < div class ="panel ">
5+ < h2 class ="h3 "> {% if identity_linking %}Identity Linking{% else %}Log in to your account{% endif %}</ h2 >
116
12- {% if not identity_linking %}
13- < div class ="oauth2-container " id ="oauth2-container ">
14- < div class ="oauth2-buttons " id ="oauth2-buttons ">
15- </ div >
16- < div class ="oauth2-divider " id ="oauth2-divider ">
17- < span class ="divider-line "> </ span >
18- < span class ="divider-text "> or</ span >
19- < span class ="divider-line "> </ span >
20- </ div >
21- </ div >
22- {% endif %}
7+ {% if not identity_linking %}
8+ < div class ="oauth2-container " id ="oauth2-container ">
9+ < div class ="oauth2-buttons " id ="oauth2-buttons ">
10+ </ div >
11+ < div class ="oauth2-divider " id ="oauth2-divider ">
12+ < span class ="divider-line "> </ span >
13+ < span class ="divider-text "> or</ span >
14+ < span class ="divider-line "> </ span >
15+ </ div >
16+ </ div >
17+ {% endif %}
2318
24- < form method ="post " action ="{% url 'user_login' %} ">
25- {% csrf_token %}
26- {% if form.errors %}
27- {% if identity_linking_error %}
28- < div class ="alert alert-danger ">
29- < strong > {{ identity_linking_error|escape }}</ strong >
30- </ div >
31- {% endif %}
32- {% for error in form.non_field_errors %}
33- < div class ="alert alert-danger ">
34- < strong > {{ error|escape }}</ strong >
35- </ div >
36- {% endfor %}
37- {% endif %}
38- < div class ="form-group ">
39- < label for ="username "> {{ form.username.label_tag }}</ label >
40- < input autofocus ="off " class ="form-control " id ="username " name ="username " :placeholder ="Username " type ="text " required >
41- </ div >
42- < div class ="form-group ">
43- < label for ="password "> {{ form.password.label_tag }}</ label >
44- < input autocomplete ="off " class ="form-control password " id ="password " name ="password " :placeholder ="Password " type ="password " required >
45- </ div >
46- < button class ="btn btn-primary btn-lg btn-block " id ="commit " type ="submit "> Log In</ button >
47- < input type ="hidden " name ="next " value ={{ next }} >
48- {% if identity_linking %}
49- < input type ="hidden " name ="identity_linking " value ="1 ">
50- {% endif %}
51- </ form >
52- {% if registration_enabled %}
53- < a class ="panel-footer " href ="/user/registration/ "> New to Drycc? < span > Sign Up</ span > </ a >
54- {% endif %}
19+ < form method ="post " action ="{% url 'user_login' %} ">
20+ {% csrf_token %}
21+ {% if form.errors %}
22+ {% if identity_linking_error %}
23+ < div class ="alert alert-danger " role ="alert ">
24+ < strong > {{ identity_linking_error|escape }}</ strong >
5525 </ div >
56- {% if password_reset_enabled %}
57- < div >
58- < a href ="/user/password_reset/ " class ="white-link "> Forgot your password?</ a >
26+ {% endif %}
27+ {% for error in form.non_field_errors %}
28+ < div class ="alert alert-danger " role ="alert ">
29+ < strong > {{ error|escape }}</ strong >
5930 </ div >
31+ {% endfor %}
6032 {% endif %}
61- </ div >
62- {% include "base/footer.html" %}
33+ < div class ="form-group ">
34+ < label for ="username "> {{ form.username.label_tag }}</ label >
35+ < input autocomplete ="username " class ="form-control " id ="username " name ="username " placeholder ="Username " type ="text " required >
36+ </ div >
37+ < div class ="form-group ">
38+ < label for ="password "> {{ form.password.label_tag }}</ label >
39+ < input autocomplete ="current-password " class ="form-control password " id ="password " name ="password " placeholder ="Password " type ="password " required >
40+ </ div >
41+ < button class ="btn btn-primary btn-lg btn-block " id ="commit " type ="submit "> Log In</ button >
42+ < input type ="hidden " name ="next " value ="{{ next|escape }} ">
43+ {% if identity_linking %}
44+ < input type ="hidden " name ="identity_linking " value ="1 ">
45+ {% endif %}
46+ </ form >
47+ {% if registration_enabled %}
48+ < a class ="panel-footer " href ="/user/registration/ "> New to Drycc? < span > Sign Up</ span > </ a >
49+ {% endif %}
6350</ div >
51+ {% if password_reset_enabled %}
52+ < div >
53+ < a href ="/user/password_reset/ " class ="white-link "> Forgot your password?</ a >
54+ </ div >
55+ {% endif %}
56+ {% endblock %}
57+ {% block extra_scripts %}
6458< script >
6559{ % if not identity_linking % }
6660fetch ( '/user/identity-providers/' )
@@ -86,3 +80,4 @@ <h2 class="h3">{% if identity_linking %}Identity Linking{% else %}Log in to your
8680 } ) ;
8781{ % endif % }
8882</ script >
83+ {% endblock %}
0 commit comments