This commit is contained in:
2025-11-12 10:47:02 +01:00
parent 4b85d12941
commit cbb2dec615
3 changed files with 26 additions and 2 deletions

Binary file not shown.

View File

@@ -1,4 +1,4 @@
<!-- templates/base.html -->
<!-- templates/base.html (updated) -->
<!DOCTYPE html>
<html lang="en">
<head>
@@ -391,7 +391,7 @@
<div class="user-section">
<div class="user-info">
<h3>{{ session.username }}</h3>
<p>Member since {{ user.created_at.strftime('%b %Y') if 'user' in locals() else '' }}</p>
<p>Member since {{ user.created_at.strftime('%b %Y') if 'user' in locals() and user else '' }}</p>
</div>
<a href="{{ url_for('logout') }}" class="btn btn-outline-light">Logout</a>
</div>

View File

@@ -17,4 +17,28 @@
</div>
</div>
</div>
<!-- Disease Prediction Section -->
<div class="row mt-5">
<div class="col-md-8 mx-auto">
<div class="card">
<div class="card-header">
<h3><i class="fas fa-search"></i> Disease Prediction Engine</h3>
</div>
<div class="card-body">
<p class="text-muted">Enter your current illness to get statistical recommendations based on all registered users' health records.</p>
<form id="search-form" method="POST" action="{{ url_for('predict_diseases') }}" class="mt-3">
<div class="input-group mb-3">
<input type="text" class="form-control" id="current-disease" name="current_disease"
placeholder="e.g., Headache, Fever, Chest Pain..." required>
<button class="btn btn-primary" type="submit">
<i class="fas fa-search"></i> Find Related Diseases
</button>
</div>
</form>
</div>
</div>
</div>
</div>
{% endblock %}