login: Focus the username field on load
[patchwork] / patchwork / templates / patchwork / login.html
1 {% extends "base.html" %}
2
3 {% block title %}Login{% endblock %}
4 {% block heading %}Login{% endblock %}
5
6 {% block headers %}
7   <script type="text/javascript">
8     $(function() {
9         $('#id_username').focus()
10     });
11   </script>
12 {% endblock %}
13
14 {% block body %}
15 <form method="post">
16 {% csrf_token %}
17 <table class="form loginform">
18  <tr>
19   <th colspan="2" class="headerrow">login</th>
20  </tr>
21  {% if error %}
22   <tr>
23    <td colspan="2">{{ error }}</td>
24   </tr>
25  {% endif %}
26  {{ form }}
27  <tr>
28   <td colspan="2" class="submitrow">
29    <input type="submit" value="Login"/>
30   </td>
31  </tr>
32 </table>
33 </form>
34 {% endblock %}