Bug fixes and improvements
[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 %}{% endblock %}
13
14 {% block body.left %}
15         <img class="pic" src="{{ IM_STATIC_URL }}images/porta.png" />
16         {% comment %}{% include "im/services_description.html" %}{% endcomment %}
17 {% endblock body.left %}
18     
19 {% block body.right %} 
20         {% if "local" in im_modules %}
21         <form action="{% url astakos.im.target.local.login %}" method="post"class="login innerlabels">{% csrf_token %}
22                     <h2>LOGIN</h2>
23                     {% with login_form as form %}
24                         {% include "im/form_render.html" %}
25                     {% endwith %}
26                     <input type="hidden" name="next" value="{{ next }}">
27                     <div class="form-row submit">
28                         <input type="submit" class="submit altcol" value="SUBMIT" />
29                         <a class="extra-link" href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a>
30                     </div>
31         </form>
32     {% endif %}
33
34     <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 %}
44     </div>
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>
56         {% endblock body.signup %}
57  
58 {% endblock body.right%}