diff options
author | Dan McGee <dan@archlinux.org> | 2012-09-05 16:29:38 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-09-05 16:29:38 +0200 |
commit | acf252f7f3c0af95b3e90f07d0e4d878e4d0d776 (patch) | |
tree | 6b4f028a37575d4cba96f2c3975713dfc14be10c /templates/registration/login.html | |
parent | 913eb8c53e35fbba88c62829dde4deb1426df191 (diff) | |
download | archweb-acf252f7f3c0af95b3e90f07d0e4d878e4d0d776.tar.gz archweb-acf252f7f3c0af95b3e90f07d0e4d878e4d0d776.tar.xz |
Add some HTML5-ization in JS of various input attributes
On the login page, give focus to the username box when the page loads as
well as turning autocorrection and auto-capitalization off on the
username box.
For the developer profile page, we can add some minor validation and
typing of certain form fields that allow things like iPhone and Android
to customize the presented keyboard to the user, as well as allowing
browsers to do some client-side validation.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/registration/login.html')
-rw-r--r-- | templates/registration/login.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/registration/login.html b/templates/registration/login.html index ad1ac1e..edbb77e 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -1,4 +1,6 @@ {% extends "base.html" %} +{% load static from staticfiles %} + {% block title %}Arch Linux - Developer Login{% endblock %} {% block content %} @@ -19,4 +21,13 @@ </form> </div> + +{% load cdn %}{% jquery %} +<script type="text/javascript" src="{% static "archweb.js" %}"></script> +<script type="text/javascript"> + modify_attributes({ + '#id_username': {autocorrect: 'off', autocapitalize: 'off'} + }); + $('#id_username').focus(); +</script> {% endblock %} |