modified: templates/index.html

modified:   templates/login.html
	modified:   templates/settings.html
This commit is contained in:
SimolZimol
2024-09-02 20:32:19 +02:00
parent e9d1a15c0d
commit 4189fe68b4
3 changed files with 23 additions and 63 deletions

View File

@@ -1,31 +1,17 @@
<!-- web_panel/templates/index.html --> <!-- templates/index.html -->
<!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>Admin Panel</title> <title>Admin Panel</title>
<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"> <h1>Discord Bot Admin Panel</h1>
<h1 class="text-center">Discord Bot Admin Panel</h1> <p>Bot Status: {{ "Running" if bot_running else "Stopped" }}</p>
<div class="card mt-4"> <a href="{{ url_for('start') }}">Start Bot</a>
<div class="card-body"> <a href="{{ url_for('stop') }}">Stop Bot</a>
<h5 class="card-title">Bot Status</h5> <a href="{{ url_for('settings') }}">Settings</a>
<p class="card-text">Status: <a href="{{ url_for('logout') }}">Logout</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('logout') }}" class="btn btn-outline-secondary btn-block">Logout</a>
</div>
</div>
</div>
<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>
</body> </body>
</html> </html>

View File

@@ -1,36 +1,19 @@
<!-- web_panel/templates/login.html --> <!-- templates/login.html -->
<!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>Login</title>
<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"> <h1>Admin Panel Login</h1>
<div class="row justify-content-center"> <form method="POST" action="{{ url_for('login') }}">
<div class="col-md-6"> <label for="username">Username:</label>
<div class="card"> <input type="text" id="username" name="username" required>
<div class="card-body"> <label for="password">Password:</label>
<h1 class="text-center">Admin Panel Login</h1> <input type="password" id="password" name="password" required>
<form method="POST" action="{{ url_for('login') }}"> <button type="submit">Login</button>
<div class="form-group"> </form>
<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>
<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>
</body> </body>
</html> </html>

View File

@@ -1,26 +1,17 @@
<!-- web_panel/templates/settings.html --> <!-- templates/settings.html -->
<!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>Settings</title> <title>Settings</title>
<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"> <h1>Bot Settings</h1>
<h1 class="text-center">Bot Settings</h1> <form method="POST" action="{{ url_for('settings') }}">
<div class="card mt-4"> <!-- Hier kannst du Formulare für Bot-Einstellungen einfügen -->
<div class="card-body"> <button type="submit">Save Settings</button>
<form method="POST" action="{{ url_for('settings') }}"> </form>
<!-- Hier kannst du Formulare für Bot-Einstellungen einfügen --> <a href="{{ url_for('index') }}">Back to Dashboard</a>
<button type="submit" class="btn btn-primary btn-block">Save Settings</button>
</form>
<a href="{{ url_for('index') }}" class="btn btn-secondary btn-block mt-3">Back to Dashboard</a>
</div>
</div>
</div>
<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>
</body> </body>
</html> </html>