Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (1.9 kB)

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

    
3
{% block signup_class %}hidden{% endblock %}
4

    
5
{% block body.left %}
6
        <img class="pic" src="{{ IM_STATIC_URL }}images/porta.png" />
7
        {% comment %}{% include "im/services_description.html" %}{% endcomment %}
8
{% endblock body.left %}
9
    
10
{% block body.right %} 
11
    
12
    <div class="login-section">
13

    
14
      <h2 class="clearfix"><span class="title">LOGIN</span> <span class="header-actions">
15
              <a class="other-logins" href="#other-login-methods">other login methods</a></span>
16
      </h2>
17
      <div class="main-login-method">
18
        {% include master_auth_provider.login_template %}
19
      </div>
20

    
21
      <div class="extralogin" 
22
          style="{% if not last_login_method or last_login_method == master_auth_provider.module %}display:none{% endif %}">
23
      {% for provider in auth_providers %}
24
      
25
        {% if not provider == master_auth_provider %}
26
            {% include provider.login_prompt_template %}
27
        {% endif %}
28
      {% endfor %}
29
        <div class="bottom">
30
        {% block body.signup %}
31
        {% for provider in auth_providers %}
32
              {% if provider.is_available_for_create %}
33
                  {% include provider.signup_prompt_template %}
34
              {% endif %}
35
          {% endfor %}
36
        {% endblock body.signup %}
37
        </div>
38
    </div>
39
    </div>
40
    <script>
41
      $(document).ready(function(){
42
        if (window.location.toString().match(/#other-login-methods/)) {
43
            $(".extralogin").show();
44
        }
45

46
        $(".other-logins").click(function(e){
47
            e.preventDefault();
48
            $(".extralogin").slideToggle();
49
            if (window.location.toString().match(/#other-login-methods/)) {
50
              window.location = window.location.hash = "#"
51
            } else {
52
              window.location = window.location.hash = "#other-login-methods"
53
            }
54
        })
55

56
        });    
57
    </script>
58
 
59
{% endblock body.right%}