Spaces:
Running
Running
Update templates/admin.html
Browse files- templates/admin.html +37 -15
templates/admin.html
CHANGED
@@ -1,23 +1,45 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
<head>
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
7 |
</head>
|
8 |
-
<body>
|
9 |
-
|
|
|
|
|
10 |
<h3>Add Credits to User Account</h3>
|
11 |
<form id="addCreditForm">
|
12 |
-
|
13 |
-
<
|
14 |
-
<
|
15 |
-
|
16 |
-
|
17 |
-
<
|
18 |
-
<
|
|
|
|
|
19 |
</form>
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
</body>
|
23 |
</html>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<title>Admin Panel</title>
|
6 |
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
7 |
+
<link rel="stylesheet" href="/static/style.css">
|
8 |
</head>
|
9 |
+
<body class="container">
|
10 |
+
<h1 class="mt-4">Admin Panel</h1>
|
11 |
+
<hr>
|
12 |
+
<div class="mb-4">
|
13 |
<h3>Add Credits to User Account</h3>
|
14 |
<form id="addCreditForm">
|
15 |
+
<div class="mb-3">
|
16 |
+
<label for="username" class="form-label">Username</label>
|
17 |
+
<input type="text" id="username" class="form-control" required>
|
18 |
+
</div>
|
19 |
+
<div class="mb-3">
|
20 |
+
<label for="credits" class="form-label">Credits to Add</label>
|
21 |
+
<input type="number" id="credits" class="form-control" required>
|
22 |
+
</div>
|
23 |
+
<button type="submit" class="btn btn-primary">Add Credits</button>
|
24 |
</form>
|
25 |
+
</div>
|
26 |
+
<hr>
|
27 |
+
<div class="mb-4">
|
28 |
+
<h3>Deactivate API Key</h3>
|
29 |
+
<form id="deactivateKeyForm">
|
30 |
+
<div class="mb-3">
|
31 |
+
<label for="apiKeyToDeactivate" class="form-label">API Key</label>
|
32 |
+
<input type="text" id="apiKeyToDeactivate" class="form-control" required>
|
33 |
+
</div>
|
34 |
+
<button type="submit" class="btn btn-warning">Deactivate Key</button>
|
35 |
+
</form>
|
36 |
+
</div>
|
37 |
+
<hr>
|
38 |
+
<div>
|
39 |
+
<h3>View All Users</h3>
|
40 |
+
<button id="loadUsers" class="btn btn-secondary">Load Users</button>
|
41 |
+
<pre id="usersList" class="mt-3"></pre>
|
42 |
+
</div>
|
43 |
+
<script src="/static/admin.js"></script>
|
44 |
</body>
|
45 |
</html>
|