forked from davidsulc/marionette-gentle-introduction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
171 lines (149 loc) · 6.36 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marionette Contact Manager</title>
<link href="./assets/css/bootstrap.css" rel="stylesheet">
<link href="./assets/css/application.css" rel="stylesheet">
<link href="./assets/css/jquery-ui-1.10.0.custom.css" rel="stylesheet">
</head>
<body>
<div id="header-region"></div>
<div id="main-region" class="container">
<p>Here is static content in the web page. You'll notice that it gets replaced by our app as soon as we start it.</p>
</div>
<div id="dialog-region"></div>
<script type="text/template" id="header-template">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#contacts">Contact manager</a>
<div class="nav-collapse collapse">
<ul class="nav"></ul>
</div>
</div>
</div>
</script>
<script type="text/template" id="header-link">
<a href="#<%= url %>"><%= name %></a>
</script>
<script type="text/template" id="contact-list">
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</script>
<script type="text/template" id="contact-list-none">
<td colspan="3">No contacts to display.</td>
</script>
<script type="text/template" id="contact-list-item">
<td><%= firstName %></td>
<td><%= lastName %></td>
<td>
<a href="#contacts/<%= id %>" class="btn btn-small js-show">
<i class="icon-eye-open"></i>
Show
</a>
<a href="#contacts/<%= id %>/edit" class="btn btn-small js-edit">
<i class="icon-pencil"></i>
Edit
</a>
<button class="btn btn-small js-delete">
<i class="icon-remove"></i>
Delete
</button>
</td>
</script>
<script type="text/template" id="missing-contact-view">
<div class="alert alert-error">This contact doesn't exist !</div>
</script>
<script type="text/template" id="contact-view">
<h1><%= firstName %> <%= lastName %></h1>
<a href="#contacts/<%= id %>/edit" class="btn btn-small js-edit">
<i class="icon-pencil"></i>
Edit this contact
</a>
<p><strong>Phone number:</strong> <%= phoneNumber %></p>
</script>
<script type="text/template" id="loading-view">
<h1><%= title %></h1>
<p><%= message %></p>
<div id="spinner"></div>
</script>
<script type="text/template" id="contact-form">
<form>
<div class="control-group">
<label for="contact-firstName" class="control-label">First name:</label>
<input id="contact-firstName" name="firstName" type="text" value="<%= firstName %>"/>
</div>
<div class="control-group">
<label for="contact-lastName" class="control-label">Last name:</label>
<input id="contact-lastName" name="lastName" type="text" value="<%= lastName %>"/>
</div>
<div class="control-group">
<label for="contact-phoneNumber" class="control-label">Phone number:</label>
<input id="contact-phoneNumber" name="phoneNumber" type="text" value="<%= phoneNumber %>"/>
</div>
<button class="btn js-submit">Save</button>
</form>
</script>
<script type="text/template" id="contact-list-layout">
<div id="panel-region"></div>
<div id="contacts-region"></div>
</script>
<script type="text/template" id="contact-list-panel">
<button class="btn btn-primary js-new">New contact</button>
<form class="form-search form-inline pull-right">
<div class="input-append">
<input type="text" class="span2 search-query js-filter-criterion">
<button type="submit" class="btn js-filter">Filter contacts</button>
</div>
</form>
</script>
<script type="text/template" id="about-message">
<h1>About this application</h1>
<p>This application was designed to accompany you during your learning.</p>
<p>Hopefully, it has served you well !</p>
</script>
<script src="./assets/js/vendor/jquery.js"></script>
<script src="./assets/js/vendor/jquery-ui-1.10.3.js"></script>
<script src="./assets/js/vendor/json2.js"></script>
<script src="./assets/js/vendor/underscore.js"></script>
<script src="./assets/js/vendor/backbone.js"></script>
<script src="./assets/js/vendor/backbone.picky.js"></script>
<script src="./assets/js/vendor/backbone.syphon.js"></script>
<script src="./assets/js/vendor/backbone.localstorage.js"></script>
<script src="./assets/js/vendor/backbone.marionette.js"></script>
<script src="./assets/js/vendor/spin.js"></script>
<script src="./assets/js/vendor/spin.jquery.js"></script>
<script src="./assets/js/apps/config/marionette/regions/dialog.js"></script>
<script src="./assets/js/app.js"></script>
<script src="./assets/js/apps/config/storage/localstorage.js"></script>
<script src="./assets/js/entities/common.js"></script>
<script src="./assets/js/entities/header.js"></script>
<script src="./assets/js/entities/contact.js"></script>
<script src="./assets/js/common/views.js"></script>
<script src="./assets/js/apps/contacts/contacts_app.js"></script>
<script src="./assets/js/apps/contacts/common/views.js"></script>
<script src="./assets/js/apps/contacts/list/list_view.js"></script>
<script src="./assets/js/apps/contacts/list/list_controller.js"></script>
<script src="./assets/js/apps/contacts/show/show_view.js"></script>
<script src="./assets/js/apps/contacts/show/show_controller.js"></script>
<script src="./assets/js/apps/contacts/edit/edit_view.js"></script>
<script src="./assets/js/apps/contacts/edit/edit_controller.js"></script>
<script src="./assets/js/apps/contacts/new/new_view.js"></script>
<script src="./assets/js/apps/about/about_app.js"></script>
<script src="./assets/js/apps/about/show/show_view.js"></script>
<script src="./assets/js/apps/about/show/show_controller.js"></script>
<script src="./assets/js/apps/header/header_app.js"></script>
<script src="./assets/js/apps/header/list/list_view.js"></script>
<script src="./assets/js/apps/header/list/list_controller.js"></script>
<script type="text/javascript">
ContactManager.start();
</script>
</body>
</html>