Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (2 kB)

1
{% extends 'im/base_two_cols.html'%}
2

    
3
{% block signup_class %}hidden{% endblock %}
4
{% block page.title %}{% endblock %}
5

    
6
{% block body.left %}
7
        <img class="pic" src="{{ IM_STATIC_URL }}images/porta.png" />
8
        {% comment %}{% include "im/services_description.html" %}{% endcomment %}
9
{% endblock body.left %}
10
    
11
{% block body.right %} 
12
        {% if "local" in im_modules %}
13
            <form action="{% url astakos.im.target.local.login %}" method="post"class="login innerlabels">{% csrf_token %}
14
                    <h2>LOGIN</h2>
15
                    {% with login_form as form %}
16
                            {% include "im/form_render.html" %}
17
                    {% endwith %}
18
                    <input type="hidden" name="next" value="{{ next }}">
19
                    
20
                    {% if key %}
21
                        <input type="hidden" name="key" value="{{key}}">
22
                    {% else %}
23
                        {% if request.GET.key %}
24
                            <input type="hidden" name="key" value="{{request.GET.key}}">
25
                        {% endif %}
26
                    {% endif %}
27
                    
28
                    <div class="form-row submit clearfix">
29
                            <input type="submit" class="submit altcol" value="SUBMIT" />
30
                        <a class="extra-link" href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a>
31
                    </div>
32
            </form>
33
    {% endif %}
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  ""%}{% if  != "" %}&{% else %}?{% endif %}code={{ code }}{% endifnotequal %}"
40
            alt="{{ o|title }}">{{ o }}</a>
41
        {% endif %}
42
        </div>
43
        {% endfor %}
44
    </div><br />
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%}