Spaces:
Runtime error
Runtime error
Create login.html
Browse files- app/templates/login.html +29 -0
app/templates/login.html
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>Login</title>
|
| 7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" />
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div class="container">
|
| 11 |
+
<h2>Login</h2>
|
| 12 |
+
{% with messages = get_flashed_messages(with_categories=true) %}
|
| 13 |
+
{% if messages %}
|
| 14 |
+
<ul class="messages">
|
| 15 |
+
{% for category, message in messages %}
|
| 16 |
+
<li class="{{ category }}">{{ message }}</li>
|
| 17 |
+
{% endfor %}
|
| 18 |
+
</ul>
|
| 19 |
+
{% endif %}
|
| 20 |
+
{% endwith %}
|
| 21 |
+
<form method="post" action="{{ url_for('login') }}">
|
| 22 |
+
<input type="text" name="username" placeholder="Username" required />
|
| 23 |
+
<input type="password" name="password" placeholder="Password" required />
|
| 24 |
+
<button type="submit">Log In</button>
|
| 25 |
+
</form>
|
| 26 |
+
<p>New user? <a href="{{ url_for('signup') }}">Sign up here</a>.</p>
|
| 27 |
+
</div>
|
| 28 |
+
</body>
|
| 29 |
+
</html>
|