-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoctor_view_patient.html
67 lines (56 loc) · 1.72 KB
/
doctor_view_patient.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{% extends 'hospital/doctor_base.html' %}
{% block content %}
{%load static%}
<head>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<style media="screen">
a:link {
text-decoration: none;
}
h6 {
text-align: center;
}
.row {
margin: 100px;
}
</style>
</head>
<div class="container">
<form action="/search" method="get" style="margin-left:70%;" class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" name="query" id="query" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
{% if patients %}
<div class="panel panel-primary">
<div class="panel-heading">
<h6 class="panel-title">Your Total Patient List</h6>
</div>
<table class="table table-hover" id="dev-table">
<thead>
<tr>
<th>Name</th>
<th>Profile Picture</th>
<th>Symptoms</th>
<th>Mobile</th>
<th>Address</th>
</tr>
</thead>
{% for p in patients %}
<tr>
<td> {{p.get_name}}</td>
<td> <img src="{% static p.profile_pic.url %}" alt="Profile Pic" height="40px" width="40px" /></td>
<td>{{p.symptoms}}</td>
<td>{{p.mobile}}</td>
<td>{{p.address}}</td>
</tr>
{% endfor %}
</table>
</div>
{%else%}
<br><br><br>
<h4 style="text-align: center;color: red;">No Patient Found !!!</h4>
{% endif %}
</div>
{% endblock content %}