-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit-appointment.html
180 lines (154 loc) · 6.18 KB
/
edit-appointment.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Freaking awesome appointment editor</title>
<link href="css/bootstrap-3.3.2.min.css" rel="stylesheet">
<script type="text/javascript" src="js/knockout-3.2.0.js"></script>
<script type="text/javascript" src="js/appointment.js"></script>
<style type="text/css">
table {margin-top: 10px}
table#matrix { width:auto; }
table.table tr td {border-top: 0px;}
.glyphicon-remove {color: red;}
th.patient-header {width: 225px;}
th.employee-remove { width: 30px; }
th.employee-info { width: 240px; }
th.employee-benefitcode { width: 250px; }
</style>
</head>
<body>
<form class="">
<div class="jumbotron">
<div class="container">
<div class="row">
<div class="col-md-11">
<p>Freaking awesome appointment editor</p>
</div>
<div class="col-md-1">
<input type="submit" class="btn btn-danger" value="Bewaren" data-bind="click: Save">
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="form-group col-md-4 ">
<label for="plandatum">Datum</label>
<input type="text" class="form-control" id="plandatum" data-bind="value: PlanningDate">
</div>
<div class="form-group col-md-4">
<label for="beginuur">Begint om</label>
<input type="text" class="form-control" id="beginuur" data-bind="value: BeginTime">
</div>
<div class="form-group col-md-4">
<label for="einduur">Eindigt om</label>
<input type="text" class="form-control" id="einduur" data-bind="value: EndTime">
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label for="appLabel">Label</label>
<input type="text" class="form-control" id="appLabel" data-bind="value: Label">
</div>
</div>
<h3>Therapeuten</h3>
<div class="row">
<div class="col-md-1">
<button class="btn btn-danger" data-bind="click: AddEmployee">Voeg toe</button>
</div>
<div class="col-md-3">
<select class="form-control" data-bind="options: AvailableEmployees,
value: SelectedEmployee,
optionsText: function (item) {
return item.Number + ' | ' + item.FirstName + ' ' + item.LastName;
},
optionsCaption: ''">
</select>
</div>
<div class="col-md-3" data-bind="if: SelectedEmployee">
<select id="employeeBenefitcodes" class="form-control" data-bind="options: SelectedEmployee().Benefitcodes,
value: SelectedEmployee().SelectedBenefitcode,
optionsText: function (item) {
return item.Code + ' - ' + item.Description;
},
optionsCaption: ''">
</select>
</div>
<div class="col-md-3" data-bind="if: SelectedEmployee">
<p>Gekozen: <span data-bind="text: SelectedEmployee().FirstName"></span>
<span data-bind="if: SelectedEmployee().SelectedBenefitcode">
(<span data-bind="text: SelectedEmployee().SelectedBenefitcode().Code"></span>)
</span>
</p>
</div>
</diV>
<table class="table" id="matrix">
<thead>
<tr>
<th class="employee-remove"> </th>
<th class="employee-info" > </th>
<th class="employee-benefitcode"> </th>
<!-- ko foreach: Patients -->
<th class="patient-header" data-bind="text: $data.Number + ' | ' + $data.FirstName + ' ' + $data.LastName"></th>
<!-- /ko -->
</tr>
</thead>
<tbody data-bind="foreach: Employees">
<tr>
<td><a href="#" data-bind="click: $parent.removeEmployee"><span class="glyphicon glyphicon-remove"></span></a></td>
<td data-bind="text: $data.Number + ' | ' + $data.FirstName + ' ' + $data.LastName"></td>
<td>
<select class="form-control" data-bind="options: $data.Benefitcodes,
value: $data.SelectedBenefitcode,
optionsText: function (item) {
return item.Code + ' - ' + item.Description;
},
optionsCaption: ''">
</select>
</td>
<!-- ko foreach: $data.AppointmentPatientInfos -->
<td>
<select class="form-control" data-bind="options: $data.Benefitcodes,
value: $data.SelectedBenefitcode,
optionsText: function (item) {
return item.Code + ' - ' + item.Description;
},
optionsCaption: ''">
</select>
</td>
<!-- /ko -->
</tr>
</tbody>
</table>
<h3>Revalidanten</h3>
<div class="row">
<div class="col-md-1">
<button class="btn btn-danger" data-bind="click: AddPatient">Voeg toe</button>
</div>
<div class="col-md-3">
<select class="form-control" data-bind="options: AvailablePatients,
value: SelectedPatient,
optionsText: function (item) {
return item.Number + ' | ' + item.FirstName + ' ' + item.LastName;
},
optionsCaption: ''">
</select>
</div>
</diV>
<div class="row">
<div class="col-md-5">
<table class="table" data-bind="if: Patients">
<tbody data-bind="foreach: Patients">
<tr>
<td><a href="#" data-bind="click: $parent.removePatient"><span class="glyphicon glyphicon-remove"></span></a></td>
<td data-bind="text: $data.Number + ' | ' + $data.FirstName + ' ' + $data.LastName"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div> <!-- container -->
</form>
</body>
</html>