labels on register page

This commit is contained in:
Sanj 2011-10-23 23:48:58 +01:00
parent 93985d13c1
commit 4f860154f4
2 changed files with 17 additions and 0 deletions

15
itf/static/js/register.js Normal file
View File

@ -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]);
}
}
}
});

View File

@ -1,6 +1,8 @@
{% extends "noel/base.html" %}
{% block extra_head %}
<link rel="stylesheet" href="/static/css/register.css" />
<script type="text/javascript" src="/static/js/register.js"></script>
{% endblock %}
{% block content %}