Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (2 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 href="{% url signup %}">Sign up</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
          {% comment %}
23
          style="{% if not last_login_method or last_login_method == master_auth_provider.module %}display:none{% endif %}"
24
          {% endcomment %}
25
          >
26
      {% for provider in auth_providers %}
27
      
28
        {% if not provider == master_auth_provider %}
29
            {% include provider.login_prompt_template %}
30
        {% endif %}
31
      {% endfor %}
32
      {% comment %}
33
        <div class="bottom">
34
        {% block body.signup %}
35
        {% for provider in auth_providers %}
36
              {% if provider.is_available_for_create %}
37
                  {% include provider.signup_prompt_template %}
38
              {% endif %}
39
          {% endfor %}
40
        {% endblock body.signup %}
41
        </div>
42
      {% endcomment %}
43
    </div>
44
    </div>
45
    <script>
46
      $(document).ready(function(){
47
        if (window.location.toString().match(/#other-login-methods/)) {
48
            $(".extralogin").show();
49
        }
50

51
        $(".other-logins").click(function(e){
52
            e.preventDefault();
53
            $(".extralogin").slideToggle();
54
            if (window.location.toString().match(/#other-login-methods/)) {
55
              window.location = window.location.hash = "#"
56
            } else {
57
              window.location = window.location.hash = "#other-login-methods"
58
            }
59
        })
60

61
        });    
62
    </script>
63
 
64
{% endblock body.right%}