Spaces:
Runtime error
Runtime error
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Admin Panel</title> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> | |
<link rel="stylesheet" href="/static/style.css"> | |
</head> | |
<body class="container"> | |
<h1 class="mt-4">Admin Panel</h1> | |
<hr> | |
<div class="mb-4"> | |
<h3>Add Credits to User Account</h3> | |
<form id="addCreditForm"> | |
<div class="mb-3"> | |
<label for="username" class="form-label">Username</label> | |
<input type="text" id="username" class="form-control" required> | |
</div> | |
<div class="mb-3"> | |
<label for="credits" class="form-label">Credits to Add</label> | |
<input type="number" id="credits" class="form-control" required> | |
</div> | |
<button type="submit" class="btn btn-primary">Add Credits</button> | |
</form> | |
</div> | |
<hr> | |
<div class="mb-4"> | |
<h3>Deactivate API Key</h3> | |
<form id="deactivateKeyForm"> | |
<div class="mb-3"> | |
<label for="apiKeyToDeactivate" class="form-label">API Key</label> | |
<input type="text" id="apiKeyToDeactivate" class="form-control" required> | |
</div> | |
<button type="submit" class="btn btn-warning">Deactivate Key</button> | |
</form> | |
</div> | |
<hr> | |
<div> | |
<h3>View All Users</h3> | |
<button id="loadUsers" class="btn btn-secondary">Load Users</button> | |
<pre id="usersList" class="mt-3"></pre> | |
</div> | |
<script src="/static/admin.js"></script> | |
</body> | |
</html> | |