Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / templates / im / auth / local_login_prompt.html @ 081070a5

History | View | Annotate | Download (1 kB)

1
<form action="{% url astakos.im.target.local.login %}" method="post"class="login innerlabels">{% csrf_token %}
2
  <h2 class="form-toggler"><a href="#">LOGIN USING YOUR LOCAL ACCOUNT</a></h2>
3
  <div class="form" style="display:none">
4
    {% with login_form as form %}
5
        {% include "im/form_render.html" %}
6
    {% endwith %}
7
    <input type="hidden" name="next" value="{{ next }}">
8
    
9
    {% if key %}
10
        <input type="hidden" name="key" value="{{key}}">
11
    {% else %}
12
        {% if request.GET.key %}
13
            <input type="hidden" name="key" value="{{request.GET.key}}">
14
        {% endif %}
15
    {% endif %}
16
    
17
    <div class="form-row submit clearfix">
18
        <input type="submit" class="submit altcol" value="SUBMIT" />
19
        <a class="extra-link" href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a>
20
      </div>
21
    </div>
22
  </form>
23
  <script>
24
    $(document).ready(function(){
25
      $("h2.form-toggler a").click(function(e) {
26
        e.preventDefault();
27
        $("div.form").slideToggle();
28
      })
29
    })
30
  </script>