-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
45 lines (40 loc) · 1.01 KB
/
main.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
<head>
<title>Signup!</title>
</head>
<body>
<div class="container">
<div class="jumbotron">
<h1>Add your email if you're awesome!</h1>
<div class="row">
<div class="col-sm-6">
{{> addEmail}}
</div>
<div class="col-sm-6">
{{> emailList}}
</div>
</div>
</div>
</div>
</body>
<template name="addEmail">
{{#if sent}}
<p>Thanks for sending!</p>
{{else}}
<form class="add-email">
<input type="text" name="name" placeholder="What's your name?" class="form-control">
<input type="email" placeholder="What's your email?" name="email" class="form-control" style="margin-top:10px;"/>
<button class="btn btn-primary" type="submit" style="margin-top:10px;">Submit</button>
</form>
{{/if}}
</template>
<template name="emailList">
<h3 style="margin-top:0;">Who has already signed up?</h3>
<ol>
{{#each emails}}
{{> email}}
{{/each}}
</ol>
</template>
<template name="email">
<li><strong>{{name}}</strong>: {{email}}</li>
</template>