-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (50 loc) · 1.41 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Index</title>
</head>
<body>
{% for message in messages %}
<p style="color:red">{{ message }}</p>
{% endfor %}
<h1>Registration</h1>
<form action="/users" method="POST">
{% csrf_token %}
<div>
<label>First Name</label>
<input type="text" name="first_name" />
</div>
<div>
<label>Last Name</label>
<input type="text" name="last_name" />
</div>
<div>
<label>Email</label>
<input type="email" name="email" />
</div>
<div>
<label>Password</label>
<input type="password" name="password" />
</div>
<div>
<label>Confirm PW</label>
<input type="password" name="pw_confirm" />
</div>
<button type="submit">Register</button>
</form>
<h1>Login</h1>
<form action="/login" method="POST">
{% csrf_token %}
<div>
<label>Email</label>
<input type="email" name="email" />
</div>
<div>
<label>Password</label>
<input type="password" name="password" />
</div>
<button type="submit">Login</button>
</form>
</body>
</html>