Child: [d7e1c0] (diff)

Download this file

create_account.html    34 lines (29 with data), 899 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% set hide_left_bar = True %}
{% extends g.theme.master %}
{% block title %}Create an Account{% endblock %}
{% block header %}Create an Account{% endblock %}
{% block content %}
<div class="grid-20">
{{ c.form.display() }}
</div>
{% endblock %}
{% block extra_js %}
<script type="text/javascript">
/*<![CDATA[*/
$('#create_account').submit(function () {
if (!$('#username').attr('value').match(/^[a-zA-Z0-9]+$/)) {
alert('Username can only contain numbers and letters.');
return false;
}
if ($('#password').attr('value').length < 8) {
alert('Password must be at least 8 characters long.');
return false;
}
if ($('#password').attr('value') !== $('#confirm_password').attr('value')) {
alert('Password and Confirm Password must match.');
return false;
}
});
/*]]>*/
</script>
{% endblock %}