-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview_record.html
More file actions
24 lines (21 loc) · 1.27 KB
/
view_record.html
File metadata and controls
24 lines (21 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% extends "base.html" %}
{% block content %}
<h1 class="mb-4">View Health Record</h1>
<div class="card">
<div class="card-body">
<h5 class="card-title">{{ record.patient_name }}</h5>
<p class="card-text"><strong>Date of Birth:</strong> {{ record.date_of_birth.strftime('%Y-%m-%d') }}</p>
<p class="card-text"><strong>Medical Condition:</strong> {{ record.medical_condition }}</p>
<p class="card-text"><strong>Treatment:</strong> {{ record.treatment }}</p>
<p class="card-text"><small class="text-muted">Created: {{ record.created_at.strftime('%Y-%m-%d %H:%M:%S') }}</small></p>
<p class="card-text"><small class="text-muted">Last Updated: {{ record.updated_at.strftime('%Y-%m-%d %H:%M:%S') }}</small></p>
<div class="mt-3">
<a href="{{ url_for('edit_record', id=record.id) }}" class="btn btn-warning">Edit</a>
<form action="{{ url_for('delete_record', id=record.id) }}" method="POST" class="d-inline">
<button type="submit" class="btn btn-danger" onclick="return confirm('Are you sure you want to delete this record?')">Delete</button>
</form>
<a href="{{ url_for('index') }}" class="btn btn-secondary">Back to List</a>
</div>
</div>
</div>
{% endblock %}