Revision 67ee72e3

b/snf-astakos-app/astakos/im/templates/im/auth/local_login_prompt.html
1
<form action="{% url astakos.im.target.local.login %}" method="post"class="login innerlabels">{% csrf_token %}
1
<form action="{% url astakos.im.target.local.login %}" method="post" 
2
  class="login-form login innerlabels">{% csrf_token %}
2 3
  <h2 class="form-toggler"><a href="#">LOGIN USING YOUR LOCAL ACCOUNT</a></h2>
3
  <div class="form" style="display:none">
4
  <div class="login-form" style="display:none">
4 5
    {% with login_form as form %}
5 6
        {% include "im/form_render.html" %}
6 7
    {% endwith %}
......
24 25
    $(document).ready(function(){
25 26
      $("h2.form-toggler a").click(function(e) {
26 27
        e.preventDefault();
27
        $("div.form").slideToggle();
28
        $("div.login-form").slideToggle();
28 29
      });
29
	if ( ( $('div.form .form-row.with-errors').length > 0)  || ( $('ul.errorlist').length > 0 ) )  {
30
		$("div.form").show();
31
	}
32
		
30
      if ($('form.login-form .form-row.with-errors, form.login-form .form-error').length > 0) {
31
        $('div.login-form').css({display:'block'});
32
	  };
33 33
    })
34 34
  </script>

Also available in: Unified diff