Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (1.8 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
      {% if not provider == master_auth_provider %}
25
        {% include provider.login_prompt_template %}
26
      {% endif %}
27
      {% endfor %}
28
        <div class="bottom">
29
        {% block body.signup %}
30
          {% for provider in auth_providers %}
31
              {% include provider.signup_prompt_template %}
32
          {% endfor %}
33
        {% endblock body.signup %}
34
        </div>
35
    </div>
36
    </div>
37
    <script>
38
      $(document).ready(function(){
39
        if (window.location.toString().match(/#other-login-methods/)) {
40
            $(".extralogin").show();
41
        }
42

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

53
        });    
54
    </script>
55
 
56
{% endblock body.right%}