42 lines
1.5 KiB
HTML
42 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Send Update</title>
|
|
<style>
|
|
body { font-family: Arial, sans-serif; margin: 20px; }
|
|
.container { max-width: 800px; margin: 0 auto; }
|
|
textarea { width: 100%; padding: 10px; }
|
|
input { width: 100%; padding: 10px; margin: 10px 0; box-sizing: border-box; }
|
|
button { padding: 10px 20px; background-color: #4CAF50; color: white; border: none; cursor: pointer; }
|
|
button:hover { background-color: #45a049; }
|
|
.message { padding: 10px; margin: 10px 0; border-radius: 4px; }
|
|
.success { background-color: #d4edda; color: #155724; }
|
|
.error { background-color: #f8d7da; color: #721c24; }
|
|
a { margin-right: 10px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Send Newsletter Update</h1>
|
|
<a href="/">Back to Subscribers</a>
|
|
<a href="/logout">Logout</a>
|
|
|
|
{{ if .success }}
|
|
<div class="message success">{{ .success }}</div>
|
|
{{ end }}
|
|
{{ if .error }}
|
|
<div class="message error">{{ .error }}</div>
|
|
{{ end }}
|
|
|
|
<form method="POST">
|
|
<label for="subject">Subject:</label>
|
|
<input type="text" id="subject" name="subject" required>
|
|
|
|
<label for="body">Message:</label>
|
|
<textarea id="body" name="body" rows="10" required></textarea>
|
|
|
|
<button type="submit">Send to All Subscribers</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html> |