-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathregistration.html
More file actions
70 lines (65 loc) · 3.13 KB
/
registration.html
File metadata and controls
70 lines (65 loc) · 3.13 KB
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
{% load static %}
<link rel="stylesheet" href="{% static 'css/main.css' %}" type="text/css">
<head>
<meta charset="UTF-8">
<title>Registration</title>
</head>
<div class="page-wrap gradient-primary">
<div class="container">
<div class="panel">
<h2 class="h3">Registration</h2>
<form method="post">
{% csrf_token %}
<div class="form-group">
<label for="username">{{ form.username.label_tag }}</label>
<input autofocus="off" class="form-control" id="username" name="username" :placeholder="Username" type="text" required>
<div class="error">{{ form.username.errors }}</div>
</div>
<div class="form-group">
<label for="password1">{{ form.password1.label_tag }}</label>
<input autofocus="off"
class="form-control"
id="password1"
name="password1"
placeholder="Password"
type="password" required>
<div class="error">{{ form.password1.errors }}</div>
</div>
<div class="form-group">
<label for="password2">{{ form.password2.label_tag }}</label>
<input autofocus="off"
class="form-control" id="password2" name="password2"
placeholder="Confirm password"
type="password" required>
<div class="error">{{ form.password2.errors }}</div>
</div>
<div class="form-group">
<label for="email">{{ form.email.label_tag }}</label>
<input autofocus="off" class="form-control" id="email" name="email"
:placeholder="Email" type="email" required>
<div class="error">{{ form.email.errors }}</div>
</div>
{% if h_captcha_key %}
<style>
.h-captcha iframe {
transform: scaleX(1.22);
}
</style>
<div class="form-group">
<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
<div class="h-captcha" data-sitekey="{{ h_captcha_key }}"></div>
<div class="error">{{ form.h_captcha_token.errors }}</div>
</div>
{% endif %}
<button class="btn btn-primary btn-lg btn-block" id="submit" type="submit">Submit</button>
{% if LEGAL_ENABLED %}
<div class="form-group">
<p class="privacy">
Signing up signifies that you have read and agree to the <a target="_blank" href="https://legal.doopai.com/#/cloud-services-terms">Terms of Service</a> and our <a target="_blank" href="https://legal.doopai.com/#/doopai-privacy-policy">Privacy Policy</a>.
</p>
</div>
{% endif %}
</form>
</div>
</div>
</div>