-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (59 loc) · 1.7 KB
/
index.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!doctype html>
<html lang="en-US">
<head>
<title>View Part 1 Test</title>
<meta charset="UTF-8" />
<link rel="stylesheet" href="stylesheets/cars.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="javascripts/handlebars-v3.0.0.js"></script>
<script src="javascripts/utilities.js"></script>
<script src="javascripts/framework.js"></script>
</head>
<body>
<main>
<ul></ul>
<form action="" method="post">
<h1>Add a Car</h1>
<fieldset>
<dl>
<dt>Make:</dt>
<dd><input type="text" name="make" /></dd>
</dl>
<dl>
<dt>Model:</dt>
<dd><input type="text" name="model" /></dd>
</dl>
<input type="submit" />
<a href="#">Remove cars</a>
</fieldset>
</form>
</main>
<script id="cars" type="text/x-handlebars">
<dl>
<dt>Make:</dt>
<dd>{{make}}</dd>
<dt>Model:</dt>
<dd>{{model}}</dd>
</dl>
<a data-id="{{id}}" href="#">Remove</a>
</script>
<script id="edit" type="text/x-handlebars">
<form action="" method="post">
<fieldset>
<dl>
<dt>Make:</dt>
<dd><input type="text" name="edit_make" value="{{make}}" /></dd>
</dl>
<dl>
<dt>Model:</dt>
<dd><input type="text" name="edit_model" value="{{model}}" /></dd>
</dl>
</fieldset>
<fieldset>
<input type="submit" value="Save" /><a href="#">Cancel</a>
</fieldset>
</form>
</script>
<script src="javascripts/app.js"></script>
</body>
</html>