-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsveglia.html
More file actions
97 lines (88 loc) · 2.17 KB
/
sveglia.html
File metadata and controls
97 lines (88 loc) · 2.17 KB
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
<head>
<link href='/favicon.ico' rel='icon' type='image/x-icon' />
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">
Sveglia
</a>
</div>
</div>
</div>
</head>
<body>
<div class="container">
<div class="row">
<div class="span6">
{{> timers}}
</div>
<div class="span6">
{{> timer_templates}}
</div>
</div>
</div>
</body>
<template name="timers">
<h2>Timers</h2>
<div class="well">
<form class="form-inline">
<input type="text" id="name" placeholder="Name"></input>
<input type="text" id="date" placeholder="Date"></input>
<input type="button" id="create" class="submit btn" value="Create"></input>
</form>
<p id="parsed_date">Date: {{parsed_date}}</p>
</div>
<div class="timers">
<table class="table-striped">
<thead>
<tr>
<th>Name</th>
<th>Time Left</th>
</tr>
</thead>
<tbody>
{{#each timers}}
{{> timer}}
{{/each}}
</tbody>
</table>
</div>
</template>
<template name="timer">
<tr>
<td><a href="/{{_id}}">{{name}}</a></td>
<td>{{expires_in}}</td>
</tr>
</template>
<template name="timer_templates">
<h2>Timer templates</h2>
<div class="well">
<form id="timer_template_form" class="form-inline">
<input type="text" id="name" placeholder="Name"></input>
<input type="text" id="date" placeholder="Duration"></input>
<input type="button" id="create" class="submit btn create-template-timer" value="Create"></input>
</form>
</div>
<div class="timer_templates">
<table class="table-striped">
<thead>
<tr>
<th>Name</th>
<th>Duration</th>
</tr>
</thead>
<tbody>
{{#each timer_templates}}
{{> timer_template}}
{{/each}}
</tbody>
</table>
</div>
</template>
<template name="timer_template">
<tr>
<td>{{name}}</td>
<td>{{parsed_duration}}</td>
<td><input type="button" id="{{_id}}" class="submit btn create-timer" value="Create timer"></input></td>
</tr>
</template>