This commit is contained in:
2025-11-10 19:39:11 +01:00
commit ff7d0a9137
10 changed files with 1538 additions and 0 deletions

32
templates/login.html Normal file
View File

@@ -0,0 +1,32 @@
<!-- templates/login.html -->
{% extends "base.html" %}
{% block title %}Login - Health History Tracker{% endblock %}
{% block content %}
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<div class="card-header">
<h3 class="text-center">Login to Your Account</h3>
</div>
<div class="card-body">
<form method="POST" action="{{ url_for('login') }}">
<div class="mb-3">
<label for="username" class="form-label">Username</label>
<input type="text" class="form-control" id="username" name="username" required>
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<input type="password" class="form-control" id="password" name="password" required>
</div>
<button type="submit" class="btn btn-primary w-100">Login</button>
</form>
<div class="text-center mt-3">
<p>Don't have an account? <a href="{{ url_for('register') }}">Register here</a></p>
</div>
</div>
</div>
</div>
</div>
{% endblock %}