-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·206 lines (166 loc) · 6.86 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Project JS</title>
<script data-main="js/main" type="text/javascript" src="js/lib/require.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
</button>
<a class="navbar-brand" href="#">Project JS</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="#movie">Add Movie</a>
</li>
<li>
<a href="#actor">Add Actor</a>
</li>
</ul>
<form class="navbar-form navbar-right" role="form">
<div class="form-group">
<input type="text" placeholder="search" class="form-control">
</div>
</form>
</div><!--/.navbar-collapse -->
</div>
</div>
<div class="jumbotron">
<div class="container">
<h1>Test App</h1>
<div id="content">
<div class="row">
<div class="col-md-4">
</div>
</div>
</div>
</div>
</div>
<script type="text/x-jquery-tmpl" id="layout">
<div id="header"></div>
</script>
<script type="text/x-jquery-tmpl" id="home">
<div class='page'><div class='container'>
<h3> Movies </h3>
<ul class="nav" data-bind="foreach: movies">
<li> <a data-bind="text: name, attr:{ href: '#movie/'+id() }" > </a> </li>
</ul>
<hr />
<h3> Actors </h3>
<ul class="nav" data-bind="foreach: actors">
<li> <a data-bind="text: firstName() + ' ' + lastName(), attr:{ href: '#actor/'+id() }" > </a></li>
</ul>
</div>
</script>
<script type="text/x-jquery-tmpl" id="movie">
<div class='page'><div class='container'>
<div>
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="inputName">Name</label>
<div class="controls">
<input type="text" id="inputName" data-bind="value: name">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputReleaseYear">Release Year</label>
<div class="controls">
<input type="text" id="inputReleaseYear" data-bind="value: releaseYear">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputDirectorName">Director Name</label>
<div class="controls">
<input type="text" id="inputDirectorName" data-bind="value: directorName">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputGrossIncome">Gross Income</label>
<div class="controls">
<input type="text" id="inputGrossIncome" data-bind="value: grossIncome">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputGenre">Genre</label>
<div class="controls">
<input type="text" id="inputGenre" data-bind="value: genre">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputActors">Actors</label>
<div class="controls">
<select multiple="multiple" id="inputActors" data-bind="options: allActors, optionsText: 'firstName', selectedOptions: actors"></select>
</div>
</div>
<h3>current actors</h3>
<ul data-bind="foreach: actors">
<li> <a data-bind="text: firstName() + ' ' + lastName(), attr:{ href: '#actor/'+id() }" > </a></li>
</ul>
</form>
<div class='span11 pagination-centered'>
<a class='btn btn-success' data-bind="click: onSubmit"><i class="icon-ok icon-white"></i> Submit</a>
<a class='btn btn-danger' data-bind="click: onDelete"><i class="icon-remove icon-white"></i> Delete</a>
<div style="height:10px"></div>
</div>
</div>
</div>
</script>
<script type="text/x-jquery-tmpl" id="actor">
<div class='page'><div class='container'>
<div>
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="inputFirstName">First Name</label>
<div class="controls">
<input type="text" id="inputFirstName" data-bind="value: firstName">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputLastName">Last Name</label>
<div class="controls">
<input type="text" id="inputLastName" data-bind="value: lastName">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputGender">Gender</label>
<div class="controls">
<input type="text" id="inputGender" data-bind="value: gender">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputBirthDate">Birth Date</label>
<div class="controls">
<input type="text" id="inputBirthDate" data-bind="value: birthDate">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputMovies">Movies</label>
<div class="controls">
<select multiple="multiple" id="inputMovies" data-bind="options: allMovies, optionsText: 'name', selectedOptions: movies"></select>
</div>
</div>
<h3>current movies</h3>
<ul data-bind="foreach: movies">
<li> <a data-bind="text: name, attr:{ href: '#movie/'+id() }" > </a></li>
</ul>
</form>
<div class='span11 pagination-centered'>
<a class='btn btn-success' data-bind="click: onSubmit"><i class="icon-ok icon-white"></i> Submit</a>
<a class='btn btn-danger' data-bind="click: onDelete"><i class="icon-remove icon-white"></i> Delete</a>
<div style="height:10px"></div>
</div>
</div>
</div>
</script>
</body>
</html>