File size: 2,047 Bytes
d65b5f7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d50515a
 
d65b5f7
 
 
d50515a
 
d65b5f7
 
 
 
 
 
 
 
 
 
ad0e3b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!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>