From f44d1f8b3a3b2323c19ff2e055669f1aef98bc0f Mon Sep 17 00:00:00 2001 From: Iam54r1n4 Date: Sun, 2 Feb 2025 22:44:51 +0000 Subject: [PATCH] Add new templates --- core/scripts/webpanel/templates/base.html | 134 +++++ core/scripts/webpanel/templates/index.html | 91 ++++ core/scripts/webpanel/templates/login.html | 67 +++ core/scripts/webpanel/templates/users.html | 553 +++++++++++++++++++++ 4 files changed, 845 insertions(+) create mode 100644 core/scripts/webpanel/templates/base.html create mode 100644 core/scripts/webpanel/templates/index.html create mode 100644 core/scripts/webpanel/templates/login.html create mode 100644 core/scripts/webpanel/templates/users.html diff --git a/core/scripts/webpanel/templates/base.html b/core/scripts/webpanel/templates/base.html new file mode 100644 index 0000000..a0bf0e7 --- /dev/null +++ b/core/scripts/webpanel/templates/base.html @@ -0,0 +1,134 @@ + + + + + + + {% block title %}Admin Dashboard{% endblock %} + + + + + + + + + {% block stylesheets %}{% endblock %} + + + +
+ + + + + + + + +
+ {% block content %}{% endblock %} +
+ + + +
+ + + + + + + + + + + {% block javascripts %}{% endblock %} + + + \ No newline at end of file diff --git a/core/scripts/webpanel/templates/index.html b/core/scripts/webpanel/templates/index.html new file mode 100644 index 0000000..8fa344d --- /dev/null +++ b/core/scripts/webpanel/templates/index.html @@ -0,0 +1,91 @@ +{% extends "base.html" %} + +{% block title %}Dashboard{% endblock %} + +{% block content %} +
+
+
+
+

Dashboard

+
+
+
+
+ +
+
+
+
+ +
+
+

--%

+

CPU Usage

+
+
+ +
+
+
+
+ +
+
+

--

+

RAM Usage

+
+
+ +
+
+
+
+ +
+
+

--

+

Total Traffic

+
+
+ +
+
+
+
+ +
+
+

--

+

Online Users

+
+
+ +
+
+
+
+
+
+ + +{% endblock %} \ No newline at end of file diff --git a/core/scripts/webpanel/templates/login.html b/core/scripts/webpanel/templates/login.html new file mode 100644 index 0000000..ca1d334 --- /dev/null +++ b/core/scripts/webpanel/templates/login.html @@ -0,0 +1,67 @@ + + + + + + Admin Dashboard - Login + + + + + + + + + + + +
+ + +
+ + +
+
+ + + + + + + + + + \ No newline at end of file diff --git a/core/scripts/webpanel/templates/users.html b/core/scripts/webpanel/templates/users.html new file mode 100644 index 0000000..5d2e8e8 --- /dev/null +++ b/core/scripts/webpanel/templates/users.html @@ -0,0 +1,553 @@ +{% extends "base.html" %} + +{% block title %}Users{% endblock %} + +{% block content %} +
+
+
+
+

Users

+
+
+
+
+ +
+
+
+
+

User List

+
+ +
+ +
+ +
+
+ + +
+
+
+ + + + + + + + + + + + + + + + {% for user in users %} + + + + + + + + + + + + {% endfor %} + +
StatusUsernameQuotaUsedExpiry DateExpiry DaysEnableConfigsActions
+ {% if user['status'] == "Online" %} + Online + {% elif user['status'] == "Offline" %} + Offline + {% else %} + {{ user['status'] }} + {% endif %} + {{ user.username }}{{ user.quota }}{{ user.traffic_used }}{{ user.expiry_date }}{{ user.expiry_days }} + {% if user.enable == "enabled" %} + + {% else %} + + {% endif %} + + + + + + + + + +
+
+
+
+ {# {{ pagination.links }} #} +
+
+
+
+
+
+ +
+ + + + + + + +{% endblock %} + +{% block javascripts %} + + + + + +{% endblock %} \ No newline at end of file