-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (80 loc) · 3.66 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
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
<!DOCTYPE html>
<html lang="en">
<head>
{% load static %}
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login and Registration</title>
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<link rel="stylesheet" href="{% static '/style.css' %}">
</head>
<body>
<div class="container">
<h1>Welcome</h1>
<div class="row">
<div class="col-6">
<h2>Register</h2>
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
<form action="/register" method=POST>
{% csrf_token %}
<table>
<tr>
<td><label class="form-label" for="first_name">First Name</label></td>
<td><input type="text" name="first_name" id="" class="form-control"></td>
</tr>
<tr>
<td><label class="form-label" for="last_name">Last Name</label></td>
<td><input type="text" name="last_name" id="" class="form-control"></td>
</tr>
<tr>
<td><label class="form-label" for="email">Email</label></td>
<td><input type="text" name="email" id="" class="form-control"></td>
</tr>
<tr>
<td><label class="form-label" for="password">Password</label></td>
<td><input type="password" name="password" id="" class="form-control"></td>
</tr>
<tr>
<td><label class="form-label" for="confirm_password">Confirm Password</label></td>
<td><input type="password" name="confirm_password" id="" class="form-control"></td>
</tr>
<tr>
<td></td>
<td><button type="submit" class="btn btn-primary">Register</button></td>
</tr>
</table>
</form>
</div>
<div class="col-6">
<h2>Log In</h2>
<form action="/login" method=POST>
{% csrf_token %}
<table>
<tr>
<td><label class="form-label" for="email">Email</label></td>
<td><input type="text" name="email" id="" class="form-control"></td>
</tr>
<tr>
<td><label class="form-label" for="password">Password</label></td>
<td><input type="password" name="password" id="" class="form-control"></td>
</tr>
<tr>
<td></td>
<td><button type="submit" class="btn btn-primary">Login</button></td>
</tr>
</table>
</form>
</div>
</div>
</div>
</body>
</html>