root / snf-astakos-app / astakos / im / templates / im / login_base.html @ fd2b4e8d
History | View | Annotate | Download (2.3 kB)
1 |
{% extends 'im/base_two_cols.html'%} |
---|---|
2 |
|
3 |
{% block extra_messages %} |
4 |
{% if not messages %} |
5 |
{% for msg_type, msg in LOGIN_MESSAGES.items %} |
6 |
<li class="{{ msg_type }}">{{ msg|safe }}</li> |
7 |
{% endfor %} |
8 |
{% endif %} |
9 |
{% endblock %} |
10 |
|
11 |
{% block signup_class %}hidden{% endblock %} |
12 |
{% block page.title %} |
13 |
Login |
14 |
{% endblock %} |
15 |
|
16 |
{% block body %} |
17 |
<div class="section"> |
18 |
<img class="pic" src="{{ IM_STATIC_URL }}images/pictures/login_pic.png" /> |
19 |
</div>
|
20 |
{% comment %}{% include "im/services_description.html" %}{% endcomment %} |
21 |
{% endblock body %} |
22 |
|
23 |
{% block body.right %} |
24 |
<div class="section"> |
25 |
{% if "local" in im_modules %} |
26 |
<form action="{% url astakos.im.target.local.login %}" method="post" |
27 |
class="login innerlabels">{% csrf_token %} |
28 |
<h2 class="formheader"><span>LOGIN</span></h2> |
29 |
{% with login_form as form %} |
30 |
{% include "im/form_render.html" %} |
31 |
{% endwith %} |
32 |
<input type="hidden" name="next" value="{{ next }}"> |
33 |
<div class="form-row submit"> |
34 |
<input type="submit" class="submit altcol" value="SUBMIT" /> |
35 |
<a class="extra-link" href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a> |
36 |
</div>
|
37 |
</form>
|
38 |
{% endif %} |
39 |
|
40 |
<div class="extralogin"> |
41 |
{% for o in im_modules %} |
42 |
<div>
|
43 |
{% if o != 'local' %} |
44 |
LOGIN using |
45 |
<a href="/im/login/{{ o }}?{% ifnotequal next "" %}&next={{ next|urlencode }}{% endifnotequal %}{% ifnotequal ""%}{% if != "" %}&{% else %}?{% endif %}code={{ code }}{% endifnotequal %}" |
46 |
alt="{{ o|title }}">{{ o }}</a> |
47 |
{% endif %} |
48 |
</div>
|
49 |
{% endfor %} |
50 |
</div>
|
51 |
{% block body.signup %} |
52 |
{% for o in im_modules %} |
53 |
{% if o != 'local' %} |
54 |
<br /> |
55 |
{% endif %} |
56 |
{% endfor %} |
57 |
<div class="bottom"> |
58 |
{% block body.login.signup %} |
59 |
new to okeanos ? <a href="{% url astakos.im.views.signup %}{% ifnotequal code "" %}?code={{ code|urlencode }}{% endifnotequal %}">CREATE ACCOUNT</a> |
60 |
{% endblock %} |
61 |
</div>
|
62 |
</div>
|
63 |
{% endblock %} |
64 |
</div>
|
65 |
{% endblock %} |