Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / templates / im / login_base.html @ 1b3398a0

History | View | Annotate | Download (2.2 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 %}{% endblock %}
16

    
17
{% block body.left %}
18
        <img class="pic" src="{{ IM_STATIC_URL }}images/porta.png" />
19
        {% comment %}{% include "im/services_description.html" %}{% endcomment %}
20
{% endblock body.left %}
21
    
22
{% block body.right %} 
23
        {% if "local" in im_modules %}
24
            <form action="{% url astakos.im.target.local.login %}" method="post"class="login innerlabels">{% csrf_token %}
25
                    <h2>LOGIN</h2>
26
                    {% with login_form as form %}
27
                            {% include "im/form_render.html" %}
28
                    {% endwith %}
29
                    <input type="hidden" name="next" value="{{ next }}">
30
                    <div class="form-row submit clearfix">
31
                            
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
    <div class="extralogin">
38
         {% for o in im_modules %}
39
            <div>
40
        {% if o != 'local' %}
41
        LOGIN using
42
            <a href="/im/login/{{ o }}?{% ifnotequal next "" %}&next={{ next|urlencode }}{% endifnotequal %}{% ifnotequal  ""%}{% if  != "" %}&{% else %}?{% endif %}code={{ code }}{% endifnotequal %}"
43
            alt="{{ o|title }}">{{ o }}</a>
44
        {% endif %}
45
        </div>
46
        {% endfor %}
47
    </div><br />
48
    {% block body.signup %}
49
            {% for o in im_modules %}
50
                {% if o != 'local' %}
51
               
52
                {% endif %}
53
            {% endfor %}
54
            <div class="bottom">
55
                {% block body.login.signup %}
56
                    new to okeanos ? <a href="{% url astakos.im.views.signup %}{% ifnotequal code "" %}?code={{ code|urlencode }}{% endifnotequal %}">CREATE ACCOUNT</a>
57
                {% endblock %}
58
            </div>
59
        {% endblock body.signup %}
60
 
61
{% endblock body.right%}