Revision 081070a5 snf-astakos-app/astakos/im/templates/im/login_base.html
b/snf-astakos-app/astakos/im/templates/im/login_base.html | ||
---|---|---|
9 | 9 |
{% endblock body.left %} |
10 | 10 |
|
11 | 11 |
{% block body.right %} |
12 |
{% if "local" in im_modules %} |
|
13 |
<form action="{% url astakos.im.target.local.login %}" method="post"class="login innerlabels">{% csrf_token %} |
|
14 |
<h2>LOGIN</h2> |
|
15 |
{% with login_form as form %} |
|
16 |
{% include "im/form_render.html" %} |
|
17 |
{% endwith %} |
|
18 |
<input type="hidden" name="next" value="{{ next }}"> |
|
19 |
|
|
20 |
{% if key %} |
|
21 |
<input type="hidden" name="key" value="{{key}}"> |
|
22 |
{% else %} |
|
23 |
{% if request.GET.key %} |
|
24 |
<input type="hidden" name="key" value="{{request.GET.key}}"> |
|
25 |
{% endif %} |
|
26 |
{% endif %} |
|
27 |
|
|
28 |
<div class="form-row submit clearfix"> |
|
29 |
<input type="submit" class="submit altcol" value="SUBMIT" /> |
|
30 |
<a class="extra-link" href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a> |
|
31 |
</div> |
|
32 |
</form> |
|
33 |
{% endif %} |
|
12 |
|
|
13 |
{% include master_auth_provider.login_template %} |
|
14 |
|
|
34 | 15 |
<div class="extralogin"> |
35 |
{% for o in im_modules %} |
|
36 |
<div> |
|
37 |
{% if o != 'local' %} |
|
38 |
LOGIN using |
|
39 |
<a href="/im/login/{{ o }}?{% ifnotequal next "" %}&next={{ next|urlencode }}{% endifnotequal %}{% ifnotequal code ""%}{% if next != "" %}&{% else %}?{% endif %}code={{ code }}{% endifnotequal %}" |
|
40 |
alt="{{ o|title }}">{{ o }}</a> |
|
41 |
{% endif %} |
|
42 |
</div> |
|
43 |
{% endfor %} |
|
16 |
{% for provider in auth_providers %} |
|
17 |
{% if not provider == master_auth_provider %} |
|
18 |
{% include provider.login_prompt_template %} |
|
19 |
{% endif %} |
|
20 |
{% endfor %} |
|
44 | 21 |
</div><br /> |
45 |
{% block body.signup %} |
|
46 |
{% for o in im_modules %} |
|
47 |
{% if o != 'local' %} |
|
48 |
|
|
49 |
{% endif %} |
|
50 |
{% endfor %} |
|
51 |
<div class="bottom"> |
|
52 |
{% block body.login.signup %} |
|
53 |
new to okeanos ? <a href="{% url astakos.im.views.signup %}{% ifnotequal code "" %}?code={{ code|urlencode }}{% endifnotequal %}">CREATE ACCOUNT</a> |
|
54 |
{% endblock %} |
|
55 |
</div> |
|
22 |
<div class="bottom"> |
|
23 |
{% block body.signup %} |
|
24 |
{% for provider in auth_providers %} |
|
25 |
{% include provider.signup_prompt_template %} |
|
26 |
{% endfor %} |
|
27 |
</div> |
|
56 | 28 |
{% endblock body.signup %} |
57 | 29 |
|
58 | 30 |
{% endblock body.right%} |
Also available in: Unified diff