Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (2 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 %}{% 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
                            <a class="extra-link" href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a>
29
                        <input type="submit" class="submit altcol" value="SUBMIT" />
30
                        
31
                    </div>
32
            </form>
33
    {% endif %}
34

    
35
    <div class="extralogin">
36
         {% for o in im_modules %}
37
            <div>
38
        {% if o != 'local' %}
39
        LOGIN using
40
                <a href="/im/login/{{ o }}{% ifnotequal next "" %}&next={{ next|urlencode }}{% endifnotequal %}{% ifnotequal  ""%}{% if  != "" %}&{% else %}?{% endif %}code={{ code }}{% endifnotequal %}"
41
            alt="{{ o|title }}">{{ o }}</a>
42
        {% endif %}
43
        </div>
44
        {% endfor %}
45
    </div>
46
    {% block body.signup %}
47
            {% for o in im_modules %}
48
                {% if o != 'local' %}
49
               
50
                {% endif %}
51
            {% endfor %}
52
            <div class="bottom">
53
                {% block body.login.signup %}
54
                    new to okeanos ? <a href="{% url astakos.im.views.signup %}{% ifnotequal code "" %}?code={{ code|urlencode }}{% endifnotequal %}">CREATE ACCOUNT</a>
55
                {% endblock %}
56
            </div>
57
        {% endblock body.signup %}
58
 
59
{% endblock body.right%}