Autofocus the login form on the username field

This commit is contained in:
Frédéric Péters 2010-06-01 17:13:14 +02:00
parent 51a837dce8
commit 7b9a43d3d4
1 changed files with 6 additions and 0 deletions

View File

@ -15,4 +15,10 @@
<p>{% trans "Forgot password?" %} <a href="{% url auth_password_reset %}">{% trans "Reset it!" %}</a></p>
<p>{% trans "Not a member?" %} <a href="{% url registration_register %}">{% trans "Register!" %}</a></p>
<script type="text/javascript">
document.getElementById('id_username').focus();
</script>
{% endblock %}