File size: 1,553 Bytes
54862ee | 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 | <!-- templates/register.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Register - BookNest</title>
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
</head>
<body class="index-page">
<!-- Include Navigation Bar -->
{% include 'navbar.html' %}
<!-- Flash Messages -->
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="flash-messages">
{% for category, message in messages %}
<div class="alert alert-{{ category }}">{{ message }}</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}
<!-- Registration Form -->
<div class="container">
<h1>Register</h1>
<form action="{{ url_for('register') }}" method="POST" class="auth-form">
<label for="username">Username:</label>
<input type="text" name="username" required>
<label for="email">Email:</label>
<input type="email" name="email" required>
<label for="password">Password:</label>
<input type="password" name="password" required>
<label for="confirm_password">Confirm Password:</label>
<input type="password" name="confirm_password" required>
<button type="submit">Register</button>
</form>
<p>Already have an account? <a href="{{ url_for('login') }}">Log in here</a>.</p>
</div>
<!-- Include Footer -->
{% include 'footer.html' %}
</body>
</html> |