Revision 13858d75 astakos/im/templates/login.html

b/astakos/im/templates/login.html
1
{% extends 'base.html'%}
1
{% extends 'base_two_cols.html'%}
2 2

  
3
{% block title%}
4
        <h2>Welcome</h2>
5
        <p>Choose how to login. Or move on to <a href="admin">admin</a>.</p>
6
        <p>Don't have an account? <a href="{% url astakos.im.views.signup %}">Sign up</a>.</p>
7
{% endblock title%}
3
{% block signup_class %}hidden{% endblock %}
4
{% block page.title %}
5
Login
6
{% endblock %}
7

  
8
{% block body %}
9
<div class="section">
10
    <img class="pic" src="{{ IM_MEDIA_URL }}images/pictures/login_pic.png" />
11
</div>
12
{% include "services_description.html" %}
13
{% endblock body %}
8 14
    
9
{% block body%}
10
    <div class="row">
11
    {% if "local" in im_modules %}
12
      <div class="span4">
13
        <h4>Local account</h4>
14
        <form action="{% url astakos.im.target.local.login %}" method="post" class="form-stacked">{% csrf_token %}
15
          {{ form.as_p }}
16
         <div>
17
            <a href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a>
18
         </div>
19
         <br>
20
          <div class="">
15
{% block body.right %}
16
     {% if "local" in im_modules %}
17
        <form action="{% url astakos.im.target.local.login %}" method="post"
18
            class="login innerlabels">{% csrf_token %}
19
            <h2 class="formheader"><span>LOGIN</span></h2>
20
            {% include "form_render.html" %}
21 21
            <input type="hidden" name="next" value="{{ next }}">
22
            <button type="submit" class="btn primary">Go</button>
23
          </div>
22
            <div class="form-row submit">
23
                <input type="submit" class="submit altcol" value="SUBMIT" />
24
                <a class="extra-link" href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a>
25
            </div>
24 26
        </form>
25
      </div>
26
    {% endif %}
27
      <div class="span8">
28
        {% for o in im_modules %}
27
      {% endif %}
28

  
29
          <div class="section">
30
              {% for o in im_modules %}
31
              <div>
29 32
            {% if o != 'local' %}
30
                <a href="/im/login/{{ o }}{% ifnotequal next "" %}?next={{ next|urlencode }}{% endifnotequal %}" alt="{{ o|title }}"><img src="/im/static/{{ o }}.png" width="120" height="120"></a>
33
            LOGIN using 
34
            <a href="/im/login/{{ o }}{% ifnotequal next "" %}?next={{ next|urlencode }}{% endifnotequal %}" 
35
                alt="{{ o|title }}">{{ o }}</a>
31 36
            {% endif %}
32
        {% endfor %}
33
      </div>
34
    </div>
35
{% endblock body%}
37
            </div>
38
            {% endfor %}
39
        </div>
40
            <div class="section">
41
                <a href="{% url astakos.im.views.signup %}" class="action">SIGN UP</a>
42
            </div>
43
        </div>
44

  
45
{% endblock %}

Also available in: Unified diff