Statistics
| Branch: | Tag: | Revision:

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

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
        {% 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
              {% if provider.is_available_for_create %}
32
                  {% include provider.signup_prompt_template %}
33
              {% endif %}
34
          {% endfor %}
35
        {% endblock body.signup %}
36
        </div>
37
    </div>
38
    </div>
39
    <script>
40
      $(document).ready(function(){
41
        if (window.location.toString().match(/#other-login-methods/)) {
42
            $(".extralogin").show();
43
        }
44

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

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