labels on register page
This commit is contained in:
parent
93985d13c1
commit
4f860154f4
15
itf/static/js/register.js
Normal file
15
itf/static/js/register.js
Normal 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]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
|
@ -1,6 +1,8 @@
|
||||||
{% extends "noel/base.html" %}
|
{% extends "noel/base.html" %}
|
||||||
{% block extra_head %}
|
{% block extra_head %}
|
||||||
<link rel="stylesheet" href="/static/css/register.css" />
|
<link rel="stylesheet" href="/static/css/register.css" />
|
||||||
|
<script type="text/javascript" src="/static/js/register.js"></script>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user