-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (52 loc) · 1.94 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
<html>
<head>
<style type="text/css">
</style>
<title>Backbone Tutorial</title>
<script type="text/javascript" src='./javascript/jquery-1.7.2.js'></script>
<script type="text/javascript" src='./javascript/underscore.js'></script>
<script type="text/javascript" src='./javascript/backbone.js'></script>
<script type="text/javascript" src='./javascript/app.js'></script>
<link rel="stylesheet" type="text/css" href="./css/screen.css" />
</head>
<body>
<div id="contacts">
<header>
<div id='filter'><label>Show me</label></div>
<a id="showForm" href="#">Add new contact</a>
<form id='addContact' action='#'>
<label for='photo'>Photo:</label><input id='photo' type='file'/>
<label for='type'>Type:</label><input id='type' type='file'/>
<label for='name'>Name:</label><input id='name' type='file'/>
<label for='address'>Address:</label><input id='address' type='file'/>
<label for='tel'>Tel:</label><input id='tel' type='file'/>
<label for='email'>Email:</label><input id='email' type='file'/>
<button id='add'>Add</button>
</form>
</header>
</div>
<script id="contactTemplate" type="text/template">
<img src="<%= photo %>" alt="<%= name %>" />
<h1><%= name %> <span> <%= type %></span></h1>
<div><%= address %></div>
<dl>
<dt>Tel:</dt> <dd> <%= tel %></dd>
<dt>Email:</dt><dd><a href="mailto:<%= email %>"><%= email %></a></dd>
</dl>
<button class="delete">Delete</button>
<button class='edit'>Edit</button>
</script>
<script id="contactEditTemplate" type='text/template'>
<form action="#">
<input type="file" class='photo' value="<%= photo %>" />
<input class="name" value="<%= name %>" />
<input id="type" type="hidden" value="<%= type %>" />
<input class="address" value="<%= address %>" />
<input class="tel" value="<%= tel %>" />
<input class="email" value="<%= email %>" />
<button class="save">Save</button>
<button class="cancel">Cancel</button>
</form>
</script>
</body>
</html>