1
+ {% extends "base/base-full.html" %}
2
+ {% load base_tags %}
3
+ {% load socialaccount %}
4
+
5
+
6
+
7
+ {% load i18n %}
8
+ {% load account socialaccount %}
9
+
10
+ {% block head_title %}
11
+ {% translate "Sign In" %}
12
+ {% endblock head_title %}
13
+
14
+ {% block main-content-body %}
15
+
16
+ {% block inner %}
17
+ < h1 > {% translate "Sign In" %}</ h1 >
18
+ {% get_providers as socialaccount_providers %}
19
+ {% if socialaccount_providers %}
20
+ < p >
21
+ {% translate "Please sign in with one of your existing third party accounts:" %}
22
+ {% if ACCOUNT_ALLOW_REGISTRATION %}
23
+ {% blocktranslate trimmed %}
24
+ Or, < a href ="{{ signup_url }} "> sign up</ a >
25
+ for a {{ site_name }} account and sign in below:
26
+ {% endblocktranslate %}
27
+ {% endif %}
28
+ </ p >
29
+ < div class ="socialaccount_ballot ">
30
+ < ul class ="socialaccount_providers ">
31
+ {% include "socialaccount/snippets/provider_list.html" with process="login" %}
32
+ </ ul >
33
+ < div class ="login-or "> {% translate "or" %}</ div >
34
+ </ div >
35
+ {% include "socialaccount/snippets/login_extra.html" %}
36
+ {% else %}
37
+ {% if ACCOUNT_ALLOW_REGISTRATION %}
38
+ < p >
39
+ {% blocktranslate trimmed %}
40
+ If you have not created an account yet, then please
41
+ < a href ="{{ signup_url }} "> sign up</ a > first.
42
+ {% endblocktranslate %}
43
+ </ p >
44
+ {% endif %}
45
+ {% endif %}
46
+ < form class ="login " method ="post " action ="{% url 'account_login' %} ">
47
+ {% csrf_token %}
48
+ {{ form.as_p }}
49
+ {% if redirect_field_value %}
50
+ < input type ="hidden "
51
+ name ="{{ redirect_field_name }} "
52
+ value ="{{ redirect_field_value }} " />
53
+ {% endif %}
54
+ < a class ="button secondaryAction "
55
+ href ="{% url 'account_reset_password' %} "> {% translate "Forgot Password?" %}</ a >
56
+ < button class ="primaryAction btn btn-primary " type ="submit "> {% translate "Sign In" %}</ button >
57
+ </ form >
58
+ {% endblock inner %}
59
+ {% endblock %}
0 commit comments