-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpatient-record.html
49 lines (35 loc) · 1.08 KB
/
patient-record.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
<head>
<title>Patients</title>
</head>
<body>
<div class="container">
<header>
<span class="account">{{> loginButtons}}</span>
<h1>Patients to visit today</h1>
{{#if currentUser}}
<div class="prompt">Type a patient's name below to add it to the list. There are "{{patientsCount}}" patients waiting to be seen.
</div>
<div class="textbox">
<form class="new-patient">
<input type="name" name="name" placeholder="" />
</form>
</div>
{{else}}
<div class="prompt">Please login to add new patients to the list</div>
{{/if}}
</header>
<p>render current date here</p>
<ul>
{{#each patients}}
{{> patient}}
{{/each}}
</ul>
</div>
</body>
<template name="patient">
<li class="{{#if checked}}checked{{/if}}">
<button class="delete">×</button>
<input type="checkbox" checked="{{checked}}" class="toggle-checked" />
<span class="text"><strong>{{name}}</strong> - <i>created by {{username}} on {{prettifyDate timestamp}}</i></span>
</li>
</template>