Spaces:
Sleeping
Sleeping
Update templates/login.html
Browse files- templates/login.html +25 -39
templates/login.html
CHANGED
|
@@ -1,42 +1,28 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
<
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
.form-group { margin-bottom: 20px; }
|
| 12 |
-
label { display: block; margin-bottom: 5px; font-weight: 500; }
|
| 13 |
-
input[type="text"], input[type="password"] { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
|
| 14 |
-
.btn-login { width: 100%; padding: 12px; background-color: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; }
|
| 15 |
-
.btn-login:hover { background-color: #0056b3; }
|
| 16 |
-
.flash-danger { padding: 10px; background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; border-radius: 4px; margin-bottom: 15px; text-align: center;}
|
| 17 |
-
</style>
|
| 18 |
-
</head>
|
| 19 |
-
<body>
|
| 20 |
-
<div class="login-container">
|
| 21 |
-
<h1>Admin Login</h1>
|
| 22 |
-
{% with messages = get_flashed_messages(with_categories=true) %}
|
| 23 |
-
{% if messages %}
|
| 24 |
-
{% for category, message in messages %}
|
| 25 |
-
<div class="flash-{{ category }}">{{ message }}</div>
|
| 26 |
-
{% endfor %}
|
| 27 |
-
{% endif %}
|
| 28 |
-
{% endwith %}
|
| 29 |
-
<form method="post">
|
| 30 |
-
<div class="form-group">
|
| 31 |
-
<label for="username">Username</label>
|
| 32 |
-
<input type="text" id="username" name="username" required>
|
| 33 |
</div>
|
| 34 |
-
<div class="
|
| 35 |
-
<
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
</div>
|
| 38 |
-
|
| 39 |
-
</form>
|
| 40 |
</div>
|
| 41 |
-
</
|
| 42 |
-
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block title %}Login - Telegram to YouTube Uploader{% endblock %}
|
| 4 |
+
|
| 5 |
+
{% block content %}
|
| 6 |
+
<div class="row justify-content-center">
|
| 7 |
+
<div class="col-md-6">
|
| 8 |
+
<div class="card">
|
| 9 |
+
<div class="card-header">
|
| 10 |
+
<h3 class="text-center">Login</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
</div>
|
| 12 |
+
<div class="card-body">
|
| 13 |
+
<form method="POST">
|
| 14 |
+
<div class="mb-3">
|
| 15 |
+
<label for="username" class="form-label">Username</label>
|
| 16 |
+
<input type="text" class="form-control" id="username" name="username" required>
|
| 17 |
+
</div>
|
| 18 |
+
<div class="mb-3">
|
| 19 |
+
<label for="password" class="form-label">Password</label>
|
| 20 |
+
<input type="password" class="form-control" id="password" name="password" required>
|
| 21 |
+
</div>
|
| 22 |
+
<button type="submit" class="btn btn-primary w-100">Login</button>
|
| 23 |
+
</form>
|
| 24 |
</div>
|
| 25 |
+
</div>
|
|
|
|
| 26 |
</div>
|
| 27 |
+
</div>
|
| 28 |
+
{% endblock %}
|