feat(ui): modern send update page with page header and styled form

This commit is contained in:
Cipher Vance 2025-08-31 12:12:11 -05:00
parent f2d225c56a
commit 17fe0bf79f

View file

@ -1,37 +1,32 @@
<!DOCTYPE html> {% extends "base.html" %}
<html lang="en"> {% block title %}Send Update{% endblock %}
{% block content %}
<div class="page-header">
<div>
<h1 class="page-title">Send Update</h1>
<p class="page-subtitle">Send an email update to all subscribers</p>
</div>
<div class="page-actions">
<a href="{{ url_for('index') }}" class="button button-secondary">Dashboard</a>
</div>
</div>
<head> <div class="card">
<meta charset="UTF-8"> <form action="{{ url_for('send_update') }}" method="POST" class="form">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <div class="form-group">
<title>Admin Center - Send Update</title> <label for="subject">Subject</label>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}"> <input type="text" name="subject" id="subject" required />
</head> </div>
<body> <div class="form-group">
<h1>Send Update Email</h1> <label for="body">Body (HTML allowed)</label>
<p> <textarea name="body" id="body" rows="12" required
<a href="{{ url_for('index') }}">Back to Subscribers List</a> | placeholder="<h1>Title</h1><p>Your content...</p>"></textarea>
<a href="{{ url_for('logout') }}">Logout</a> </div>
</p>
{% with messages = get_flashed_messages() %}
{% if messages %}
{% for message in messages %}
<div class="flash">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
<form action="{{ url_for('send_update') }}" method="POST"> <div class="form-actions">
<label for="subject">Subject:</label> <button type="submit" class="button button-primary">Send Update</button>
<input type="text" name="subject" required> </div>
<label for="body">Body (HTML allowed):</label>
<textarea name="body" rows="10" required></textarea>
<button type="submit">Send Update</button>
</form> </form>
</div>
</body> {% endblock %}
</html>