modified: templates/index.html
modified: templates/login.html
This commit is contained in:
@@ -1,22 +1,37 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Login</title>
|
<title>Admin Panel</title>
|
||||||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="container mt-5">
|
<div class="container mt-5">
|
||||||
<h1 class="text-center">Login with Discord</h1>
|
<h1 class="text-center">Discord Bot Admin Panel</h1>
|
||||||
<div class="text-center mt-4">
|
<div class="card mt-4">
|
||||||
<a href="{{ url_for('login') }}" class="btn btn-primary">
|
<div class="card-body">
|
||||||
<img src="https://discord.com/assets/847541504914fd33810e70a0ea73177e.svg" width="20" alt="Discord Logo">
|
<h5 class="card-title">Bot Status</h5>
|
||||||
Login with Discord
|
<p class="card-text">Status:
|
||||||
</a>
|
<span class="badge badge-{{ 'success' if bot_running else 'danger' }}">
|
||||||
|
{{ "Running" if bot_running else "Stopped" }}
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
<a href="{{ url_for('start') }}"
|
||||||
|
class="btn btn-primary btn-block {{ 'disabled' if bot_running else '' }}">Start Bot</a>
|
||||||
|
<a href="{{ url_for('stop') }}"
|
||||||
|
class="btn btn-danger btn-block {{ 'disabled' if not bot_running else '' }}">Stop Bot</a>
|
||||||
|
<a href="{{ url_for('settings') }}" class="btn btn-secondary btn-block">Settings</a>
|
||||||
|
<a href="{{ url_for('view_logs') }}" class="btn btn-warning btn-block">View Logs</a>
|
||||||
|
<a href="{{ url_for('users') }}" class="btn btn-info btn-block">User Management</a>
|
||||||
|
<a href="{{ url_for('logout') }}" class="btn btn-outline-secondary btn-block">Logout</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.bundle.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
|
||||||
|
</html>
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
<!-- web_panel/templates/login.html -->
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
@@ -9,25 +8,12 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container mt-5">
|
<div class="container mt-5">
|
||||||
<div class="row justify-content-center">
|
<h1 class="text-center">Login with Discord</h1>
|
||||||
<div class="col-md-6">
|
<div class="text-center mt-4">
|
||||||
<div class="card">
|
<a href="{{ url_for('login') }}" class="btn btn-primary">
|
||||||
<div class="card-body">
|
<img src="https://discord.com/assets/847541504914fd33810e70a0ea73177e.svg" width="20" alt="Discord Logo">
|
||||||
<h1 class="text-center">Admin Panel Login</h1>
|
Login with Discord
|
||||||
<form method="POST" action="{{ url_for('login') }}">
|
</a>
|
||||||
<div class="form-group">
|
|
||||||
<label for="username">Username</label>
|
|
||||||
<input type="text" id="username" name="username" class="form-control" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="password">Password</label>
|
|
||||||
<input type="password" id="password" name="password" class="form-control" required>
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="btn btn-primary btn-block">Login</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user