From 4f860154f4da73811a7ff7986392017cf2430683 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 23 Oct 2011 23:48:58 +0100 Subject: [PATCH] labels on register page --- itf/static/js/register.js | 15 +++++++++++++++ itf/templates/registration/register_base.html | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 itf/static/js/register.js diff --git a/itf/static/js/register.js b/itf/static/js/register.js new file mode 100644 index 0000000..3a55cca --- /dev/null +++ b/itf/static/js/register.js @@ -0,0 +1,15 @@ +var labelMap = { + 'id_email': 'eMail:', + 'id_password2': 'retype password:' +} + +$(function() { + for (var i in labelMap) { + if (labelMap.hasOwnProperty(i)) { + if ($('label[for=' + i + ']').length > 0) { + $('label[for=' + i + ']').text(labelMap[i]); + } + } + } + +}); diff --git a/itf/templates/registration/register_base.html b/itf/templates/registration/register_base.html index 31db500..294d050 100755 --- a/itf/templates/registration/register_base.html +++ b/itf/templates/registration/register_base.html @@ -1,6 +1,8 @@ {% extends "noel/base.html" %} {% block extra_head %} + + {% endblock %} {% block content %}