-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcrowdview.html
218 lines (186 loc) · 6.43 KB
/
crowdview.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
207
208
209
210
211
212
213
214
215
216
217
218
<head>
<title>Gatha.us</title>
</head>
<body>
<div class="container">
<div id="loginbuttons">{{> loginButtons}}</div>
<h1>Gatha.us</h1>
<h2>Schedule your viewing</h2>
<div>
<a href="/" class="btn btn-info" role="button">Start a new session</a>
<a href="/showall" class="btn btn-info" role="button">Show sessions</a>
</div>
</div>
</body>
<template name="Home">
{{> insertWatchSessionFormCustom}}
</template>
<template name="showall">
<div class="container">
{{> listWatchSessions}}
</div>
</template>
<template name="insertWatchSessionFormCustom">
<div class="container">
{{#autoForm collection="WatchSessions" id="insertWatchSessionFormCustom" type="insert"}}
<fieldset>
<div class="row">
<div class="col-md-4">
<h2>Who</h2>
<p>Who do you want to watch with?</p>
{{> afQuickField name='People'}}
</div>
<div class="col-md-4">
<h2>What?</h2>
<p> Pick your movie!</p>
{{> filmsearch}}
{{> afQuickField name='Film'}}
</div>
<div class="col-md-4">
<h2>When?</h2>
<p>When are you going to watch it?</p>
{{> afQuickField name='Time' type='datetime-local'}}
</div>
</div></fieldset>
<div class="row">
<div class="col-md-12">
<button type="submit" class="btn btn-primary">Create</button>
</div> </div>
{{/autoForm}}
</div>
</template>
<template name="updateWatchSessionFormCustom">
<div class="container">
{{#autoForm collection="WatchSessions" id="updateWatchSessionFormCustom" doc=this type="update"}}
<fieldset>
<div class="row">
<div class="col-md-4">
<h2>Who</h2>
<p>Who do you want to watch with?</p>
{{> afQuickField name='People'}}
</div>
<div class="col-md-4">
<h2>What?</h2>
<p> Pick your movie!</p>
{{> movieCard}}
{{> afQuickField name='Film'}}
</div>
<div class="col-md-4">
<h2>When?</h2>
<p>When are you going to watch it?</p>
{{> afQuickField name='Time' type='datetime-local'}}
</div>
</div> </fieldset>
<div class="row">
<div class="col-md-12">
<button type="submit" class="btn btn-primary">Update</button>
</div>
</div>
<div class="row">
<div class="col-md-6 sharebuttons">
{{>shareit}}
</div>
<div class="col-md-6 sharebuttons">
<input type="text" id="shareLink" class="form-control" aria-describedby="Sharelink">
</div>
</div>
{{/autoForm}}
</div>
</template>
<template name="listWatchSessions">
<h1>Your scheduled watching sessions</h1>
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>Who</th>
<th>What</th>
<th>When</th>
</tr>
</thead>
{{#each WSList}}
<tr>
<th scope="row"><a href="/display/{{_id}}">Show session</a></th>
<td>{{People}}</td>
<td>{{Film}}</td>
<td>{{Time}}</td>
</tr>
{{/each}}
</table>
</template>
<template name='filmsearch'>
<form id='filmNameForm'>
<div class='btn-group input-group-lg' id="filmNameInput">
<input class='form-control' id='filmName' type='text' name='text' placeholder='Type Film Name'>
<span id="searchclear" class="glyphicon glyphicon-remove-circle"></span>
<!-- <button class='btn btn-default' type='button' id='filmSearchButton'>Search</button> -->
</div>
<div id='searchResults'>
<table class='table'>
<tbody>
<tr class="movieRow">
<td class="poster poster1"><div style="height:50px;"></div></td>
<td class="title title1"></td>
<td class="year year1"></td>
</tr>
<tr class="movieRow">
<td class="poster poster2"><div style="height:50px;"></div></td>
<td class="title title2"></td>
<td class="year year2"></td>
</tr>
<tr class="movieRow">
<td class="poster poster3"><div style="height:50px;"></div></td>
<td class="title title3"></td>
<td class="year year3"></td>
</tr>
</tbody>
</table>
</div>
</form>
<div id='chosenFilm'>
</div>
<div id="recommendedFilms">
<h1 style="center">Recommended</h1>
<div class="row" id="row1">
<div class="col-xs-4">
<img class="img-responsive" src="http://ia.media-imdb.com/images/M/MV5BMTUyMTE0ODcxNF5BMl5BanBnXkFtZTgwODE4NDQzNTE@._V1_SX300.jpg">
</div>
<div class="col-xs-4">
<img class="img-responsive" src="http://ia.media-imdb.com/images/M/MV5BNTgxOTI4NzY2M15BMl5BanBnXkFtZTgwMjY3MTM2NDE@._V1_SX300.jpg">
</div>
<div class="col-xs-4">
<img class="img-responsive" src="http://ia.media-imdb.com/images/M/MV5BMTQ4OTgzNTkwNF5BMl5BanBnXkFtZTgwMzI3MDE3NDE@._V1_SX300.jpg">
</div>
</div>
</div>
</template>
<template name="movieCard">
<form id='filmNameForm'>
<div class='btn-group input-group-lg' id="filmNameInput">
<input class='form-control' id='filmName' type='text' name='text' placeholder='Type Film Name'>
<span id="searchclear" class="glyphicon glyphicon-remove-circle"></span>
<!-- <button class='btn btn-default' type='button' id='filmSearchButton'>Search</button> -->
</div>
<div id='searchResults'>
<table class='table'>
<tbody>
<tr class="movieRow">
<td class="poster poster1"><div style="height:50px;"></div></td>
<td class="title title1"></td>
<td class="year year1"></td>
</tr>
<tr class="movieRow">
<td class="poster poster2"><div style="height:50px;"></div></td>
<td class="title title2"></td>
<td class="year year2"></td>
</tr>
<tr class="movieRow">
<td class="poster poster3"><div style="height:50px;"></div></td>
<td class="title title3"></td>
<td class="year year3"></td>
</tr>
</tbody>
</table>
</div>
</form>
</template>