blob: 6e9115ae4ab44ee6f016bae8a3419b26608cbbec (
plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
{% extends "index_page.html" %}
{% block title %}Register{% endblock %}
{% block content %}
{{ header("Register", "It's fast and easy to make an account.") }}
<div class="container">
<div class="page-header">
<h1>Registration</h1>
</div>
<div class="security_box">
<h4>Already have an account?</h4>
<a href="/n/login"
class="btn btn-info modalize">Sign in using existing account</a>
<hr />
<h4>Don't have an account?</h4>
<h5>Register here</h5>
{% if errors %}
<div class="alert alert-error">
<strong>Please note:</strong>
<ul>
{% for error in errors %}
<li>{{error}}</li>
{% endfor %}
</ul>
</div>
{% endif %}
<form class="form-horizontal" action="/n/register" data-validate="parsley"
method="POST" name="login_user_form">
<fieldset>
<div class="control-group">
<label class="control-label" for="email_address">Email Address</label>
<div class="controls">
<input id="email_address" name="email_address" class="focused" type="text" size="50" value="{{values.email_address}}"
data-trigger="change" data-required="true" data-type="email" data-maxlength="50">
</div>
</div>
<div class="control-group">
<label class="control-label" for="full_name">Full Name</label>
<div class="controls">
<input id="full_name" name="full_name" type="text" size="50" value="{{values.full_name}}"
data-trigger="change" data-required="true" data-minlength="5" data-maxlength="50">
</div>
</div>
<div class="control-group">
<label class="control-label" for="organization">Organization</label>
<div class="controls">
<input id="organization" name="organization" type="text" size="50" value="{{values.organization}}" data-minlength="3" data-maxlength="50">
</div>
</div>
<div class="control-group">
<label class="control-label" for="password">Password</label>
<div class="controls">
<input id="password" name="password" type="password" size="50" value=""
data-trigger="change" data-required="true" data-minlength="6">
</div>
</div>
<div class="control-group" style="display: none" id="password_alert">
<div class="controls"">
<span id="password_strength" class="alert"></span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="password_confirm">Confirm Password</label>
<div class="controls">
<input id="password" name="password_confirm" type="password" size="50" value=""
data-trigger="change" data-required="true" data-equalto="#password">
</div>
</div>
<div class="control-group">
<div class="controls" style="margin-top: 10px;">
<input class="btn btn-primary" id="submit" name="submit" type="submit" value="Create account">
</div>
</div>
</fieldset>
</form>
</div>
</div>
{% endblock %}
{% block js %}
<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='zxcvbn/zxcvbn.js') }}"></script>
<script type="text/javascript" src="/static/new/javascript/password_strength.js"></script>
{% endblock %}
|