From 941a3dabc9aa972e97867181299b50bf18284339 Mon Sep 17 00:00:00 2001 From: Cipher Vance Date: Sun, 31 Aug 2025 12:11:56 -0500 Subject: [PATCH] feat(ui): dashboard layout with widgets and modern subscribers table --- templates/admin_index.html | 91 +++++++++++++++++++++----------------- 1 file changed, 50 insertions(+), 41 deletions(-) diff --git a/templates/admin_index.html b/templates/admin_index.html index c4620af..bf57258 100644 --- a/templates/admin_index.html +++ b/templates/admin_index.html @@ -1,44 +1,53 @@ - - - - - - Admin Center - Subscribers - - - +{% extends "base.html" %} +{% block title %}Dashboard{% endblock %} +{% block content %} + -

Subscribers

-

- Send Update Email| - Logout -

+
+
+
Total Subscribers
+
{{ counts.total_subscribers }}
+
+
+
Newsletters Sent
+
{{ counts.total_newsletters }}
+
+
+
Sent Today
+
{{ counts.sent_today }}
+
+
- {% with messages = get_flashed_messages(with_categories=true) %} - {% if messages %} - {% for category, message in messages %} -
{{ message }}
- {% endfor %} - {% endif %} - {% endwith %} - - {% if emails %} - - - - - - - - {% for email in emails %} - - - - {% endfor %} - + {% if emails %} +
+
+
Email Address
{{ email }}
+ + + + + + + {% for email in emails %} + + + + {% endfor %} +
Email Address
{{ email }}
- {% else %} -

No subscribers found.

- {% endif %} - - + + + {% else %} +
+

No subscribers found.

+
+ {% endif %} +{% endblock %} \ No newline at end of file