|
|
|
|
|
<!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 'navbar.html' %} |
|
|
|
|
|
|
|
|
{% 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 %} |
|
|
|
|
|
|
|
|
<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.html' %} |
|
|
</body> |
|
|
</html> |