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