fix.
This commit is contained in:
Binary file not shown.
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user