uploadkro2 / templates /admin_login.html
triflix's picture
Update templates/admin_login.html
d50515a verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Login</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background-color: #f5f5f5; }
.form-signin { width: 100%; max-width: 330px; padding: 15px; margin: auto; }
</style>
</head>
<body>
<main class="form-signin text-center">
<form method="post" action="{{ url_for('admin_authenticate') }}">
<h1 class="h3 mb-3 fw-normal">Admin Panel Login</h1>
{% if error %}
<div class="alert alert-danger" role="alert">
{{ error }}
</div>
{% endif %}
{% if request.query_params.get('error') %}
<div class="alert alert-danger" role="alert">
{{ request.query_params.get('error') }}
</div>
{% endif %}
<div class="form-floating mb-2">
<!-- REMOVED value="admin@example.com" from below -->
<input type="email" class="form-control" id="email" name="email" placeholder="name@example.com" required>
<label for="email">Email address</label>
</div>
<div class="form-floating">
<!-- REMOVED value="adminpassword" from below -->
<input type="password" class="form-control" id="password" name="password" placeholder="Password" required>
<label for="password">Password</label>
</div>
<button class="w-100 btn btn-lg btn-primary mt-3" type="submit">Sign in</button>
<p class="mt-3">
<a href="{{ url_for('read_root') }}">Back to main site</a>
</p>
<p class="mt-5 mb-3 text-muted">© File Uploader {{ current_year }}</p>
</form>
</main>
</body>
</html>