Commit 8fb818e3 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou Committed by Georgios D. Tsoukalas
Browse files

A bit of cleanup in login templates

parent 4c50a585
<form action="{% url astakos.im.target.local.login %}#other-login-methods" method="post"
<form action="{% url astakos.im.target.local.login %}" method="post"
class="login-form login innerlabels">{% csrf_token %}
<p>
{{ provider.get_login_prompt_display }}
......
......@@ -18,47 +18,14 @@
{% include master_auth_provider.login_template %}
</div>
<div class="extralogin"
{% comment %}
style="{% if not last_login_method or last_login_method == master_auth_provider.module %}display:none{% endif %}"
{% endcomment %}
>
<div class="extralogin">
{% for provider in auth_providers %}
{% if not provider == master_auth_provider %}
{% include provider.login_prompt_template %}
{% endif %}
{% endfor %}
{% comment %}
<div class="bottom">
{% block body.signup %}
{% for provider in auth_providers %}
{% if provider.is_available_for_create %}
{% include provider.signup_prompt_template %}
{% endif %}
{% endfor %}
{% endblock body.signup %}
</div>
{% endcomment %}
</div>
</div>
<script>
$(document).ready(function(){
if (window.location.toString().match(/#other-login-methods/)) {
$(".extralogin").show();
}
$(".other-logins").click(function(e){
e.preventDefault();
$(".extralogin").slideToggle();
if (window.location.toString().match(/#other-login-methods/)) {
window.location = window.location.hash = "#"
} else {
window.location = window.location.hash = "#other-login-methods"
}
})
});
</script>
{% endblock body.right%}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment