forked from arvention/ccapdev-mc03
-
Notifications
You must be signed in to change notification settings - Fork 1
/
home.hbs
36 lines (32 loc) · 1.22 KB
/
home.hbs
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
<!DOCTYPE html>
<html>
<head>
<title> Phonebook </title>
<link href="https://fonts.googleapis.com/css?family=Roboto|Rubik&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/css/home.css">
<script src="https://code.jquery.com/jquery-3.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/home.js"></script>
</head>
<body>
<div id="container">
<h1> phonebook </h1>
<div id="content">
<form>
<input type="text" name="name" id="name" class="field" placeholder="Name"> <br>
<input type="number" name="number" id="number" class="field" placeholder="Number"> <br>
<input type="button" name="submit" id="submit" value="SUBMIT">
</form>
<p id="error"></p>
<!--
TODO: Display all contacts here. Each contact should be retrieved from the database and displayed through rendering `../partials/card.hbs`.
-->
<div id="contacts">
<!-- your code here -->
{{#each data}}
{{> card name=name number=number}}
{{/each}}
</div>
</div>
</div>
</body>
</html>