root / snf-astakos-app / astakos / im / templates / im / login_base.html @ cb4714e7
History | View | Annotate | Download (1.7 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" style="display:none"> |
22 |
{% for provider in auth_providers %} |
23 |
{% if not provider == master_auth_provider %} |
24 |
{% include provider.login_prompt_template %} |
25 |
{% endif %} |
26 |
{% endfor %} |
27 |
<div class="bottom"> |
28 |
{% block body.signup %} |
29 |
{% for provider in auth_providers %} |
30 |
{% include provider.signup_prompt_template %} |
31 |
{% endfor %} |
32 |
{% endblock body.signup %} |
33 |
</div>
|
34 |
</div>
|
35 |
</div>
|
36 |
<script>
|
37 |
$(document).ready(function(){
|
38 |
if (window.location.toString().match(/#other-login-methods/)) {
|
39 |
$(".extralogin").show();
|
40 |
}
|
41 |
|
42 |
$(".other-logins").click(function(e){
|
43 |
e.preventDefault();
|
44 |
$(".extralogin").slideToggle();
|
45 |
if (window.location.toString().match(/#other-login-methods/)) {
|
46 |
window.location = window.location.hash = "#"
|
47 |
} else {
|
48 |
window.location = window.location.hash = "#other-login-methods"
|
49 |
}
|
50 |
})
|
51 |
|
52 |
});
|
53 |
</script>
|
54 |
|
55 |
{% endblock body.right%} |