- Implemented `send_subscription_confirmation` function to send a confirmation email upon subscription. - Added a default HTML template for the confirmation email in settings. - Updated the newsletter management page to handle subscription and unsubscription actions. - Created new templates for embedding contact and newsletter forms. - Added styles for the new templates and unified CSS styles across the application. - Updated tests to reflect changes in the newsletter management API endpoints.
44 lines
1.1 KiB
HTML
44 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Admin Login</title>
|
|
<link rel="stylesheet" href="/static/css/styles.css" />
|
|
<style>
|
|
.login-form {
|
|
max-width: 300px;
|
|
margin: 40px auto;
|
|
}
|
|
.login-form input {
|
|
margin: 10px 0;
|
|
}
|
|
.flash {
|
|
color: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Admin Login</h1>
|
|
{% with messages = get_flashed_messages() %} {% if messages %}
|
|
<div class="message error">
|
|
{% for message in messages %} {{ message }} {% endfor %}
|
|
</div>
|
|
{% endif %} {% endwith %}
|
|
<form method="post" class="login-form">
|
|
<div class="form-group">
|
|
<input type="text" name="username" placeholder="Username" required />
|
|
</div>
|
|
<div class="form-group">
|
|
<input
|
|
type="password"
|
|
name="password"
|
|
placeholder="Password"
|
|
required
|
|
/>
|
|
</div>
|
|
<button type="submit">Login</button>
|
|
</form>
|
|
</body>
|
|
</html>
|