-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
86 lines (82 loc) · 2.79 KB
/
index.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<html>
<head>
<title>Doctors</title>
</head>
<body>
<h1>Your Doctor Guide!</h1>
<h2>Doctors:</h2>
<div id="listing">
{% for doctor in doctors %}
<div id="item">
<ul>
<li><b>Name:</b> Dr. {{ doctor.name }}</li>
<li><b>Specialization:</b> {{ doctor.specialization }}</li>
<li><b>Sits from</b> {{ doctor.sits_from_string }} </b>up to</b> {{ doctor.sits_upto_string }}</li>
<li><b>Fee:</b> {{ doctor.fee }}</li>
<li><b>Address:</b> {{ doctor.address }}</li>
<li><b>Phone:</b> {{ doctor.phone }}</li>
<li><b>Email:</b> {{ doctor.email }}</li>
<li><b>Rating:</b> {{ doctor.rating }}</li>
</ul>
</div>
{% endfor %}
</div>
<h2>Add new doctor:</h2>
<form action="/newdoctor", method="post">
<p><label for="id_name">Name:</label> <input type="text" name="name" id="id_name" /></p>
<p><label for="id_specialization">Specialization:</label> <select name="specialization" id="id_specialization">
<option value="Neurology,">Neurology,</option>
<option value="Dental">Dental</option>
<option value="Psychology">Psychology</option>
<option value="General" selected="selected">General</option>
</select></p>
<p>
<label for="id_sits_from">From:</label>
<select name="sits_from_hour" id="id_sits_from_hour">
{% for h in hours %}
<option value="{{ h }}">{{ h }}</option>
{% endfor %}
</select>
<select name="sits_from_min" id="id_sits_from_min">
{% for m in mins %}
<option value="{{ m }}">{{ m }}</option>
{% endfor %}
</select>
<select name="sits_from_ampm" id="id_sits_from_ampm">
<option value="AM">AM</option>
<option value="PM">PM</option>
</select>
</p>
<p>
<label for="id_sits_upto">Up to:</label>
<select name="sits_upto_hour" id="id_sits_upto_hour">
{% for h in hours %}
<option value="{{ h }}">{{ h }}</option>
{% endfor %}
</select>
<select name="sits_upto_min" id="id_sits_upto_min">
{% for m in mins %}
<option value="{{ m }}">{{ m }}</option>
{% endfor %}
</select>
<select name="sits_upto_ampm" id="id_sits_upto_ampm">
<option value="AM">AM</option>
<option value="PM">PM</option>
</select>
</select>
</p>
<p><label for="id_address">Address:</label> <input type="text" name="address" id="id_address" /></p>
<p><label for="id_fee">Fee:</label> <input type="text" name="fee" id="id_fee" /></p>
<p><label for="id_phone">Phone:</label> <input type="text" name="phone" id="id_phone" /></p>
<p><label for="id_email">Email:</label> <input type="text" name="email" id="id_email" /></p>
<input type="submit">
</form>
<h3>TODO</h3>
<ul>
<li>Proper data types for doctors model</li>
<li>Error handling in case of invalid data</li>
<li>Search bar on the panel above! There should not be any text search atm. ready-made questions will fulfill the purpose initially.</li>
<li>Themeing</li>
</ul>
</body>
</html>