-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclients.html
162 lines (150 loc) · 5.85 KB
/
clients.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE HTML>
<html lang="en"><head>
<meta charset="utf-8">
<title>The Pill Wizard</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="static/css/bootstrap.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<link href="static/css/bootstrap-responsive.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="../assets/ico/favicon.png">
<style type="text/css"></style></head>
<body class=" hasGoogleVoiceExt">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="index.html">Pill Wizard</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="simulation.html">Simulation</a></li>
</ul>
<p class="navbar-text pull-right">
Welcome, Mr. Caretaker!
</p>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<div id="client-page">
<!-- Example row of columns -->
<div class="row">
<div class="span12">
<div class="pull-right" style="margin-bottom: 10px;">
<button class="btn btn-primary" type="button" >Add Pill Wizard Client</button>
<button class="btn btn-primary" type="button" >Add Prescription</button>
</div>
</div>
</div>
<div class="row">
<div class="span4">
<table class="table">
<thead>
<tr><th>Client</th></tr>
</thead>
<tbody data-bind="foreach: clients">
<tr data-bind="css: { success: $data == $root.currentClient() }">
<td><a href="#" data-bind="text: name, click: $root.newClient"></a></td>
</tr>
</tbody>
</table>
</div>
<div class="span8" data-bind="with: currentClient">
<dl class="dl-horizontal">
<dt>Name</dt>
<dd data-bind="text: name"></dd>
<dt>Age</dt>
<dd data-bind="text: personal_info.age"></dd>
<dt>Address</dt>
<dd data-bind="text: personal_info.address"></dd>
<dt>Doctor</dt>
<dd data-bind="text: personal_info.caretaker"></dd>
</dl>
<ul class="nav nav-tabs">
<li class="active"><a href="#prescriptions" data-toggle="tab">Prescriptions</a></li>
<li><a href="#medication-log" data-toggle="tab">Medication Log</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="prescriptions">
<table class="table">
<thead>
<tr>
<th>Medicine</th>
<th>Canister</th>
<th>Schedule</th>
<th>Dosage</th>
<th>Information</th>
</tr>
</thead>
<tbody data-bind="foreach: prescriptions">
<tr>
<td data-bind="text: medicine"></td>
<td data-bind="text: canister"></td>
<td data-bind="text: schedule"></td>
<td data-bind="text: dosage"></td>
<td data-bind="text: information"></td>
</tr>
</tbody>
</table>
</div>
<div class="tab-pane" id="medication-log">
<table class="table">
<thead>
<tr>
<th>Medicine<th>
<th>Date<th>
<th>Time<th>
<th>Drug Taken?<th>
</tr>
</thead>
<tbody data-bind="foreach: medication_log">
<tr data-bind="css: { error: !medicine_taken }">
<td data-bind="text: medicine">d<td>
<td data-bind="text: date">d<td>
<td data-bind="text: time">d<td>
<td><i data-bind="css: { 'icon-ok': medicine_taken, 'icon-ban-circle': !medicine_taken }"></i><td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<hr>
<footer>
<p>© 2013 Phillips Healthcare</p>
</footer>
</div>
</div>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="static/js/jquery.js"></script>
<script src="static/js/knockout.js"></script>
<script src="static/js/bootstrap.min.js"></script>
<script src="static/js/data.js"></script>
<script src="static/js/clients.js"></script>
</body></html>