-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreate_post.html
337 lines (299 loc) · 15.9 KB
/
create_post.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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<!DOCTYPE html>
<!DOCTYPE html>
<html class="full-height-sm">
<head>
<title>Create Post | Booklr</title>
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Links for javascript APIs we are using -->
<script src="https://cdn.firebase.com/js/client/2.4.2/firebase.js"></script>
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script src='javascript/jquery.ui.widget.js' type='text/javascript'></script>
<script src='javascript/jquery.iframe-transport.js' type='text/javascript'></script>
<script src='javascript/jquery.fileupload.js' type='text/javascript'></script>
<script src='javascript/jquery.cloudinary.js' type='text/javascript'></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.3.2/js/tether.min.js"></script>
<!-- Links for Bootstrap v4 alpha -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/js/bootstrap.min.js" integrity="sha384-vZ2WRJMwsjRMW/8U7i6PWi6AlO1L79snBrmgiDpgIWJ82z8eA5lenwvxbMV1PAh7" crossorigin="anonymous"></script>
<!-- Font-Awesome library (for cool icons) -->
<script src="https://use.fontawesome.com/79ba6194f1.js"></script>
<!-- Link for custom css -->
<!--<link rel="stylesheet" type="text/css" href="index.css">-->
<link rel="stylesheet" type="text/css" href="bootstrap-social.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<nav class="navbar navbar-dark bg-inverse color-1-inverse">
<div class="col-xl-2"></div>
<div class="col-xl-8">
<!-- Brand -->
<a class="navbar-brand" href="../index.html">Booklr <span class="version">v1-alpha</span></a>
<!-- Links -->
<ul class="nav navbar-nav pull-xs-right">
<li class="nav-item"><a class="nav-link login logged-out" href="#">Login / Sign Up</a></li>
<!-- <li class="nav-item"><a class="nav-link" href="#" id="logout">Logout</a></li> -->
<!-- <li class="nav-item"><a class="nav-link" href="#" id="username"></a></li> -->
<!-- User menu -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle logged-in" id="username" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"></a>
<!-- User menu options -->
<div class="dropdown-menu">
<a id="user-profile-link" class="dropdown-item" href="#">Profile</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" id="logout" href="#">Logout</a>
</div>
</li>
</ul>
</div>
</nav>
<div class="container-fluid main-content">
<div class="row full-height-sm">
<div class="col-lg-3"></div>
<div class="col-lg-6 full-height-sm" style="padding: 0px 24px;">
<div class="row full-height-sm">
<!-- Create Post Form -->
<form>
<h1 class="text-xs-center">Create Post</h1>
<!--BOOK TITLE-->
<fieldset class="form-group">
<label>Book Title:</label>
<input id="book_title" type="text" class="form-control notification-required" name="book_title" autofocus required>
</fieldset>
<div class="row">
<!--AUTHORS-->
<fieldset class="form-group col-sm-8">
<label>Author(s):</label>
<input id="author" type="text" class="form-control notification-required" name="author" required>
</fieldset>
<!--ISBN-->
<fieldset class="form-group col-sm-4">
<label for="isbn"> ISBN: </label>
<input id="isbn" type="text" class="form-control notification-required" name="isbn">
</fieldset>
</div>
<div class="row">
<!--SUBJECT DROPDOWN-->
<fieldset class="form-group col-sm-8">
<label> Subject: </label>
<select id="subject" name="subject" class="form-control notification-required" required>
<option label="Subject"> </option>
<option label="Accounting">Accounting</option>
<option label="American Sign Language - Credit">American Sign Language - Credit</option>
<option label="American Sign Language - Noncredit">American Sign Language - Noncredit</option>
<option label="Anatomy">Anatomy</option>
<option label="Anthropology">Anthropology</option>
<option label="Arabic">Arabic</option>
<option label="Art">Art</option>
<option label="Art History">Art History</option>
<option label="Astronomy">Astronomy</option>
<option label="Biological Sciences">Biological Sciences</option>
<option label="Botany">Botany</option>
<option label="Broadcasting">Broadcasting</option>
<option label="Business">Business</option>
<option label="Chemistry">Chemistry</option>
<option label="Chinese">Chinese</option>
<option label="Cinema">Cinema</option>
<option label="Communication">Communication</option>
<option label="Communication Studies">Communication Studies</option>
<option label="Computer Applications">Computer Applications</option>
<option label="Computer Science">Computer Science</option>
<option label="Cosmetology">Cosmetology</option>
<option label="Counseling and Testing">Counseling and Testing</option>
<option label="Counseling - Adult Education">Counseling - Adult Education</option>
<option label="Counseling - Disabled Student Services">Counseling - Disabled Student Services</option>
<option label="Dance">Dance</option>
<option label="Dance History and Appreciation">Dance History and Appreciation</option>
<option label="Early Childhood Education">Early Childhood Education</option>
<option label="Economics">Economics</option>
<option label="Education">Education</option>
<option label="Energy Efficiency">Energy Efficiency</option>
<option label="Engineering">Engineering</option>
<option label="English Composition – Group A">English Composition – Group A</option>
<option label="English Fundamentals – Group B">English Fundamentals – Group B</option>
<option label="English Skills – Group C">English Skills – Group C</option>
<option label="English Literature">English Literature</option>
<option label="English – Creative Writing">English – Creative Writing</option>
<option label="ESL – English for Second Language Speakers">ESL – English for Second Language Speakers</option>
<option label="ESL – Noncredit">ESL – Noncredit</option>
<option label="Entertainment Technology">Entertainment Technology</option>
<option label="Academy of Entertainment & Technology">Academy of Entertainment & Technology</option>
<option label="Environmental Studies">Environmental Studies</option>
<option label="Fashion Design and Merchandising">Fashion Design and Merchandising</option>
<option label="Film Studies">Film Studies</option>
<option label="Foreign Languages">Foreign Languages</option>
<option label="French">French</option>
<option label="Geographic Information Systems">Geographic Information Systems</option>
<option label="Geography">Geography</option>
<option label="Geology">Geology</option>
<option label="German">German</option>
<option label="Global Studies">Global Studies</option>
<option label="Graphic Design">Graphic Design</option>
<option label="Health Education">Health Education</option>
<option label="Health Occupations">Health Occupations</option>
<option label="Hebrew">Hebrew</option>
<option label="History">History</option>
<option label="Independent Studies">Independent Studies</option>
<option label="Interior Architectural Design">Interior Architectural Design</option>
<option label="Internships">Internships</option>
<option label="Italian">Italian</option>
<option label="Japanese">Japanese</option>
<option label="Journalism">Journalism</option>
<option label="Kinesiology Physical Education">Kinesiology Physical Education</option>
<option label="Kinesiology Physical Education Aquatics">Kinesiology Physical Education Aquatics</option>
<option label="Kinesiology Physical Education Professional Courses">Kinesiology Physical Education Professional Courses</option>
<option label="Kinesiology Physical Education Team Sports">Kinesiology Physical Education Team Sports</option>
<option label="Varsity Intercollegiate Sports – Men">Varsity Intercollegiate Sports – Men</option>
<option label="Varsity Intercollegiate Sports – Women">Varsity Intercollegiate Sports – Women</option>
<option label="Korean">Korean</option>
<option label="Library Studies">Library Studies</option>
<option label="Linguistics">Linguistics</option>
<option label="Mathematics">Mathematics</option>
<option label="Media Studies">Media Studies</option>
<option label="Microbiology">Microbiology</option>
<option label="Modern Languages">Modern Languages</option>
<option label="Music">Music</option>
<option label="Music History and Appreciation">Music History and Appreciation</option>
<option label="Nursing">Nursing</option>
<option label="Nursing - Noncredit">Nursing - Noncredit</option>
<option label="Nutrition">Nutrition</option>
<option label="Occupational Therapy">Occupational Therapy</option>
<option label="Office Information Systems">Office Information Systems</option>
<option label="Office Technology">Office Technology</option>
<option label="Persian">Persian</option>
<option label="Philosophy">Philosophy</option>
<option label="Photography">Photography</option>
<option label="Photovoltaic Systems">Photovoltaic Systems</option>
<option label="Physics">Physics</option>
<option label="Physiology">Physiology</option>
<option label="Political Science">Political Science</option>
<option label="Political Science – Noncredit">Political Science – Noncredit</option>
<option label="Portuguese">Portuguese</option>
<option label="Psychology">Psychology</option>
<option label="Recycling and Resource Management">Recycling and Resource Management</option>
<option label="Religious Studies">Religious Studies</option>
<option label="Respiratory Therapy">Respiratory Therapy</option>
<option label="Russian">Russian</option>
<option label="Science - General Studies">Science - General Studies</option>
<option label="Sociology">Sociology</option>
<option label="Spanish">Spanish</option>
<option label="Speech">Speech</option>
<option label="Theatre Arts">Theatre Arts</option>
<option label="Urban Studies">Urban Studies</option>
<option label="Women’s Studies">Women’s Studies</option>
<option label="Zoology">Zoology</option>
</select>
</fieldset>
<!-- will need to add value for each option then use that value to have
the "class" list be specific to that subject (to avoid showing ALL of
smc classes for every subject) -->
<!--CLASS-->
<fieldset class="form-group col-sm-4">
<label> Class: </label>
<input id="subject_class" name="subject_class" class="form-control notification-required" required>
</input>
</fieldset>
</div>
<div class="row">
<!--PRICE-->
<fieldset class="form-group col-sm-8">
<label for="price">Price:</label>
<div class="input-group">
<div class="input-group-addon">$</div>
<input id="price" type="text" class="form-control notification-required" name="price" placeholder="Amount" required>
<div class="input-group-addon">.00</div>
</div>
</fieldset>
<!--CONDITION DROPDOWN-->
<fieldset class="form-group col-sm-4">
<label for="condition_type">Condition Type:</label>
<select id="condition_type" name="condition_type" class="form-control notification-required" required>
<option value="" label="Condition Type"></option>
<option value="new"> New </option>
<option value="like_new"> Like New </option>
<option value="very_good"> Very Good </option>
<option value="good"> Good </option>
<option value="acceptable"> Acceptable </option>
<option value="poor"> Poor </option>
</select>
</fieldset>
</div>
<!--COMMENTS-->
<fieldset class="form-group">
<input type="file" name="file" class="cloudinary_fileupload">
<fieldset class="form-group">
<label for="condition_comment">Comments:</label>
<div>
<textarea id="condition_comment" name="condition_comment" style="width: 100%; height: 100%;"></textarea>
</div>
</fieldset>
</fieldset>
<!--BOOK IMAGE UPLOAD-->
<fieldset class="form-group">
<img class="media-object center-block" width="256" height="256" id="book-picture" src="https://placehold.it/256x256" />
<button type="button" class="btn btn-default upload-button center-block" style="width: 256px; margin-top: 5px;" name="upload">Upload a Picture!</button>
</fieldset>
<!--SUBMIT BUTTON-->
<fieldset class="form-group">
<input type="button" value="Book it" class="btn btn-lg btn-primary center-block" id="create-post-button">
</fieldset>
</form>
</div>
</div>
</div>
</div>
<div class="modal fade" id="signup-modal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close signup-modal-close" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">Log In / Sign Up</h4>
</div>
<div class="modal-body">
<button class="btn btn-social btn-facebook authorizing" id="facebook-signup">
<i class="fa fa-facebook"></i>Connect with Facebook
</button>
<form class="signing-up" id="signup-form">
<fieldset class="form-group">
<label>Name:</label>
<input id="signup-name" type="text" class="form-control" name="signup-name">
</fieldset>
<img id="profile-image" src="https://placehold.it/128x128">
<div class="checkbox">
<label>
<input id="use-image" type="checkbox" checked>
Use your picture?
</label>
</div>
<fieldset class="form-group">
<label>Contact me by</label>
<div class="input-group">
<div class="input-group-btn">
<button type="button" id="contact-type" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown">Email</button>
<ul class="dropdown-menu dropdown-menu-select">
<li class="dropdown-item" href="#">Email</li>
<li class="dropdown-item" href="#">Text</li>
<li class="dropdown-item" href="#">Call</li>
</ul>
</div>
<input type="text" id="contact-field" class="form-control">
</div>
</fieldset>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary signup-modal-close">Cancel</button>
<button type="button" class="btn btn-primary" id="signup-modal-submit">Submit</button>
</div>
</div>
</div>
</div>
<script src="javascript/authManager.js"></script>
<script src="javascript/create_post.js"></script>
<script src="javascript/facebook_login.js"></script>
<script src="javascript/dropdown-select.js"></script>
</body>
</html>