Add login_base.html make it easy to override login template
[astakos] / snf-astakos-app / astakos / im / templates / im / login_base.html
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             {% include "im/form_render.html" %}
30             <input type="hidden" name="next" value="{{ next }}">
31             <div class="form-row submit">
32                 <input type="submit" class="submit altcol" value="SUBMIT" />
33                 <a class="extra-link" href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a>
34             </div>
35         </form>
36       {% endif %}
37
38           <div class="extralogin">
39               {% for o in im_modules %}
40               <div>
41             {% if o != 'local' %}
42             LOGIN using 
43             <a href="/im/login/{{ o }}{% ifnotequal next "" %}?next={{ next|urlencode }}{% endifnotequal %}" 
44                 alt="{{ o|title }}">{{ o }}</a>
45             {% endif %}
46             </div>
47             {% endfor %}
48         </div>
49         {% block body.signup %}
50         {% for o in im_modules %}
51             {% if o != 'local' %}
52             <br />
53             {% endif %}
54         {% endfor %}
55         <div class="bottom">
56             {% block body.login.signup %}
57                 new to okeanos ? <a href="{% url astakos.im.views.signup %}">CREATE ACCOUNT</a>
58             {% endblock %}
59             </div>
60         </div>
61         {% endblock %}
62     </div>
63 {% endblock %}