Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Django Forms</title>
- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
- </head>
- <body>
- <div class="container">
- <h1>Account Registration</h1>
- <form action="" method="POST">
- {% csrf_token %}
- <div class="mb-3 col-3">
- <label for="{{ form.username.id_for_label}}" class="form-label">Username</label>
- <input type="text" class="form-control" id="{{ form.username.id_for_label}}" placeholder="Username">
- </div>
- <div class="mb-3 col-3">
- <label for="{{ form.email.id_for_label}}" class="form-label">Email</label>
- <input type="email" class="form-control" id="{{ form.email.id_for_label}}" placeholder="Email">
- </div>
- <div class="mb-3 col-3">
- <label for="{{ form.password1.id_for_label}}" class="form-label">Password</label>
- <input type="password1" class="form-control" id="{{ form.password1.id_for_label}}" placeholder="Password">
- </div>
- <div class="mb-3 col-3">
- <label for="{{ form.password2.id_for_label}}" class="form-label">Password Confirmation</label>
- <input type="password2" class="form-control" id="{{ form.password2.id_for_label}}" placeholder="Confirm Password">
- </div>
- <input class="btn btn-primary" type="submit" value = "Register">
- </form>
- </div>
- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment