| {% 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 %} |