-
Notifications
You must be signed in to change notification settings - Fork 0
/
hapispwa.html
49 lines (41 loc) · 1.1 KB
/
hapispwa.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>Users</title>
</head>
<body>
<div class="container">
<header>
<h1>Users ({{userCount}})</h1>
<h4>Register a new user:</h4>
<form class="new-user">
<input type="text" name="email" placeholder="Enter your email address" />
<input type="password" name="password" placeholder="Password (must be 8 chars and at least 1 numeric)" />
<input type="submit" value="Submit">
</form>
</header>
<ul>
{{#each users}}
{{> user}}
{{#if visible this._id}}
<ul>{{#each tokens this._id}}
{{>token}}
{{/each}}
</ul>
{{/if}}
{{/each}}
</ul>
</div>
</body>
<template name="user">
<li class="toggle-visible" >
<button class="delete">×</button>
<button class="add-token">Add token+</button>
<span class="text">{{username}}</span>
<button class="edit">✎</button>
</li>
</template>
<template name="token">
<li class="token">
<button class="delete">×</button>
<span class="text">{{tokenString}}</span>
</li>
</template>