Django 1.1's csrf protection appears to be handled in the middleware component.
[htsworkflow.git] / htsworkflow / frontend / templates / registration / login.html
1 {% extends "base_site.html" %}
2 {% load i18n %}
3
4 {% block additional_css %}{% load adminmedia %}{{ block.super }}
5 <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/base.css" />
6 <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/login.css" />
7 {% endblock %}
8
9 {% block title %}Login{% endblock %}
10 {% block bodyclass %}login{% endblock %}
11
12 {% block content %}
13 {% if error_message %}
14 <p class="errornote">{{ error_message }}</p>
15 {% endif %}
16 <div id="container">
17     <h1>Login</h1>
18 <form action="{{ app_path }}" method="post" id="login-form">
19   <div class="form-row">
20     <label for="id_username">{% trans 'Username:' %}</label> <input type="text" name="username" id="id_username" />
21   </div>
22   <div class="form-row">
23     <label for="id_password">{% trans 'Password:' %}</label> <input type="password" name="password" id="id_password" />
24     <input type="hidden" name="this_is_the_login_form" value="1" />
25   </div>
26   <div class="submit-row">
27     <label>&nbsp;</label><input type="submit" value="{% trans 'Log in' %}" />
28   </div>
29 </form>
30
31 <script type="text/javascript">
32 document.getElementById('id_username').focus()
33 </script>
34 </div>
35 {% endblock %}