-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
381 lines (371 loc) · 17.6 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
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
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<!DOCTYPE html>
<html lang='en' ng-app="admin-console">
<head>
<title> Admin Panel </title>
<meta charset="UTF-8">
<link href="node_modules/materialize-css/dist/css/materialize.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="node_modules/angular/angular.min.js"></script>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/materialize-css/dist/js/materialize.min.js"></script>
<script src="js/app.js"></script>
</head>
<body ng-controller='AdminController'>
<!-- Modal Structure -->
<div id="modal1" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Edit Hacker</h4>
<section>
<div class="row">
<div class="col l3">
<label for="edit-fname"> First Name </label>
<input type="text" ng-model="active_hacker.user_data.first_name" id="edit-fname">
</div>
<div class="col l3">
<label for="edit-lname"> Last Name </label>
<input type="text" ng-model="active_hacker.user_data.last_name" id="edit-lname">
</div>
<div class="col l3">
<label for="edit-email"> Email </label>
<input type="email" ng-model="active_hacker.user_data.email" id="edit-email">
</div>
<div class="col l3">
<label for="edit-pnum"> Phone Number </label>
<input type="text" ng-model="active_hacker.user_data.phone_number" id="edit-pnum">
</div>
</div>
<div class="row">
<div class="col l3">
<label for="edit-major"> Major </label>
<input type="text" ng-model="active_hacker.user_data.major" id="edit-major">
</div>
<div class="col l6">
<label for="edit-school"> School </label>
<input type="text" ng-model="active_hacker.user_data.school_name" id="edit-school">
</div>
<div class="col l3">
<label for="edit-shirt"> Shirt Size </label>
<input type="text" ng-model="active_hacker.user_data.shirt_size" id="edit-shirt">
</div>
</div>
<div class="row">
<div class="col l4">
<label for="edit-apply-date">Apply Date</label>
<input type="datetime-local" id="edit-apply-date" ng-model="active_hacker.user_data.apply_date">
</div>
<div class="col l3">
<label for="edit-dob"> Date of Birth </label>
<input type="date" id="edit-dob" ng-model="active_hacker.user_data.date_of_birth">
</div>
<div class="col l2">
<label for="edit-gh">Github</label>
<input type="url" id="edit-gh" ng-model="active_hacker.user_data.github">
</div>
<div class="col l3">
<label for="edit-web">Website</label>
<input type="url" id="edit-web" ng-model="active_hacker.user_data.website">
</div>
</div>
<div class="row">
<div class="col l3">
<label for="edit-rsvp-date">RSVP By Date </label>
<input type="date" id="edit-rsvp-date" ng-model="active_hacker.user_data.rsvp_by">
</div>
<div class="col l3">
<label for="edit-grad-date"> Graduation Date </label>
<input type="date" id="edit-grad-date" ng-model="active_hacker.user_data.graduation">
</div>
<div class="col l3">
<label for="edit-gender"> Gender </label>
<input type="text" id="edit-gender" ng-model="active_hacker.user_data.gender">
</div>
<div class="col l3">
<label for="edit-resume"> Resume Location </label>
<input type="url" id="edit-resume" ng-model="active_hacker.user_data.resume_location">
</div>
</div>
<div class="row">
<div class="col l3">
<label for="edit-travel-method"> Travel Method </label>
<input type="text" id="edit-travel-method" ng-model="active_hacker.user_data.preferred_travel_method">
</div>
<div class="col l3">
<label for="edit-travel-cost">Travel Cost</label>
<input type="number" id="edit-travel-cost" ng-model="active_hacker.user_data.travel_cost">
</div>
<div class="col l3 center-align">
<h7> Admin Status </h7>
<div class="switch">
<label>
<input id="edit-admin" type="checkbox" ng-model="active_hacker.user_data.is_admin">
<span class="lever"></span>
</label>
</div>
</div>
<div class="col l3 center-align">
<h7> Travel Reimbursement </h7>
<div class="switch">
<label>
<input id="edit-reimbursement" type="checkbox" ng-model="active_hacker.user_data.needs_reimbursement">
<span class="lever"></span>
</label>
</div>
</div>
</div>
<div class="row">
<div class="col l3 center-align">
<h7> MLH Code of Conduct </h7>
<div class="switch">
<label>
<input id="edit-mlh-conduct" type="checkbox" ng-model="active_hacker.user_data.accepts_mlh_code">
<span class="lever"></span>
</label>
</div>
</div>
<div class="col l3 center-align">
<h7> MLH Media Release </h7>
<div class="switch">
<label>
<input id="edit-mlh-media" type="checkbox" ng-model="active_hacker.user_data.accepts_mlh_release">
<span class="lever"></span>
</label>
</div>
</div>
<div class="col l3 center-align">
<h7> Checked In </h7>
<div class="switch">
<label>
<input id="edit-check-in-stat" type="checkbox" ng-model="active_hacker.user_data.checked_in">
<span class="lever"></span>
</label>
</div>
</div>
<div class="col l3 center-align">
<h7> RSVP'd </h7>
<div class="switch">
<label>
<input id="edit-rsvp-stat" type="checkbox" ng-model="active_hacker.user_data.rsvp">
<span class="lever"></span>
</label>
</div>
</div>
</div>
<div class="row">
<div class="col l4">
<label for="edit-dietary">Dietary Restrictions</label>
<textarea id="edit-dietary" ng-model=" active_hacker.user_data.dietary_restrictions">
</textarea>
</div>
<div class="col l4">
<label for="edit-notes">Notes</label>
<textarea id="edit-notes" ng-model=" active_hacker.user_data.notes">
</textarea>
</div>
<div class="col l4">
<label for="edit-disability">Special Needs</label>
<textarea id="edit-disability" ng-model=" active_hacker.user_data.special_needs">
</textarea>
</div>
</div>
<div class="row">
<div class="input-field col l6">
<select class="browser-default">
<option selected>Choose your option</option>
</select>
</div>
<div class="input-field col l6">
<select class="browser-default">
<option selected>Choose your option</option>
</select>
</div>
</div>
</section>
</div>
<div class="modal-footer">
<a href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">Save</a>
</div>
</div>
<style>
li {
padding: 5 !important;
}
h5,
h6,
h4,
h7 {
margin: 0.4rem !important;
}
h7 {
font-size: 10pt;
line-height: 1.5;
display: block;
text-indent: 1rem;
}
textarea {
resize: none;
}
ul.collection:first-of-type {
margin-bottom: 0px;
}
ul.collection:last-of-type {
margin-top: 0px;
border-top: none;
}
nav div.col.l2 div.switch label {
color: white;
}
li.collection-item.row.center-align button.link {
color:blue;
background: transparent;
border: none
}
</style>
<div class="row">
<nav class="valign-wrapper">
<div class="col l10">
<h3 style="margin:0;" class="valign">Admin Panel</h3>
</div>
<div class="col l2 center-align">
<div class="switch">
<label>
Accept
<input id="edit-mode" type="checkbox">
<span class="lever"></span> Check In
</label>
</div>
</div </nav>
</div>
<div class="container" style="width: 95%">
<div id="filter-label-row" class="row">
<div class="col l1">
<label for="uid-filter"> User ID </label>
<input id="uid-filter" type="number" ng-model="user_id" ng-change="filter_by_propery('user_id')">
</div>
<div class="col l2">
<label for="name-filter"> Name </label>
<input id="name-filter" type="text" ng-model='first_name' ng-change="filter_by_property('first_name');">
</div>
<div class="col l2">
<label for="phone-filter"> Phone </label>
<input id="phone-filter" type="text" ng-model="phone_number" ng-change="filter_by_property('phone_number')">
</div>
<div class="col l3">
<label for="school-filter"> School </label>
<input id="School-filter" type="text" ng-model="school_name" ng-change="filter_by_property('school_name')">
</div>
<div class="col l2">
<label for="email-filter"> Email </label>
<input id="email-filter" type="text" ng-model="email" ng-change="filter_by_property('email')">
</div>
</div>
<ul class="collection">
<li class="collection-item row center-align valign-wrapper">
<div class="col l1 valign">
<button class="link" ng-click="sort_by_property('user_id')">
<h6>ID</h6>
</button>
</div>
<div class="col l2 valign">
<button class="link" ng-click="sort_by_property('first_name')">
<h6> Name </h6>
</button>
</div>
<div class="col l2 valign">
<button class="link" ng-click="sort_by_property('phone_number')">
<h6> Phone Number </h6>
</button>
</div>
<div class="col l3 valign">
<button class="link" ng-click="sort_by_property('school_name')">
<h6> School Name </h6>
</button>
</div>
<div class="col l2 valign">
<button class="link" ng-click="sort_by_property('email')">
<h6> Email </h6>
</button>
</div>
<div class="col l2">
<h6> Deny | Accept | Edit | Info </h6>
</div>
</li>
</ul>
<section style="overflow-y:auto; height:38.5rem;">
<ul class="collection">
<li class="collection-item row center-align valign-wrapper" ng-repeat="hacker in visible_hackers">
<div class="col l1 valign">
{{hacker.user_data.user_id}}
</div>
<div class="col l2 valign">
{{hacker.user_data.first_name}} {{hacker.user_data.last_name}}
</div>
<div class="col l2 valign">
{{hacker.user_data.phone_number}}
</div>
<div class="col l3 valign">
{{hacker.user_data.school_name}}
</div>
<div class="col l2 valign">
{{hacker.user_data.email}}
</div>
<div class="col l2">
<button class="btn-collapse btn-floating waves-effect waves-light red" disabled><i class="material-icons">close</i></button>
<button class="btn-floating waves-effect waves-light red"><i class="material-icons">done</i></button>
<button ng-click="openEditModal(hacker)" class="btn-floating waves-effect waves-light modal-trigger"><i class="material-icons">mode_edit</i></button>
<button ng-click="openSideBar(hacker)" class="btn-floating waves-effect waves-light red"><i class="material-icons">info_outline</i></button>
</div>
</li>
</ul>
</section>
<a href="#" data-activates="slide-out" class="button-collapse"></a>
<ul id="slide-out" class="side-nav">
<li>
<div class="userView">
<h4>{{active_hacker.user_data.first_name}} {{active_hacker.user_data.last_name}}</h4>
<h5> {{active_hacker.user_data.school_name}} </h5>
<h6> {{active_hacker.user_data.email}}</h6>
<h6> {{active_hacker.user_data.phone}} </h6>
<h6> Visible Status : {{active_hacker.user_data.visible_status}} </h6>
<h6> Pending Status : {{active_hacker.user_data.pending_status}}</h6>
<hr>
<h5> General Info: </h5>
<h6> T-Shirt : {{active_hacker.user_data.shirt_size}}</h6>
<h6> Age : {{active_hacker.user_data.age}}</h6>
<h6> DOB: {{active_hacker.user_data.date_of_birth}}</h6>
<h6> Gender: {{active_hacker.user_data.gender}}</h6>
<h6> Checked In: {{active_hacker.user_data.checked_in}}</h6>
<h6> Graduation : {{active_hacker.user_data.graduation}}</h6>
<h6> Website : {{active_hacker.user_data.website}}</h6>
<h6> Major : {{active_hacker.user_data.major}}</h6>
<hr>
<h5> RSVP </h5>
<h6> RSVP Status: {{active_hacker.user_data.rsvp_status}} </h6>
<h6> RSVP Date: {{active_hacker.user_data.rsvp_date}}</h6>
<h6> RSVP By: {{active_hacker.user_data.rsvp_by}}</h6>
<hr>
<h5> Travel Stuff: </h5>
<h6> Reimbursement: {{active_hacker.user_data.needs_reimbursement}}</h6>
<h6> Travel Method: {{active_hacker.user_data.preferred_travel_method}}</h6>
<h6> Travel Cost : {{active_hacker.user_data.travel_cost}}</h6>
<hr>
<h5> Team Stuff </h5>
<h6> Team Name: {{active_hacker.user_data.team_name}}</h6>
<h6> Team Mates: </h6>
<h7 ng-repet> {{teammate.first_name}} {{teammate.last_name}} </h7>
<hr>
<h5> House Keeping: </h5>
<h6> MLH Code of Conduct: {{active_hacker.user_data.accepts_mlh_code}} </h6>
<h6> MLH Media Release: {{active_hacker.user_data.accepts_mlh_release}}</h6>
</div>
</li>
</ul>
</div>
</body>
<script>
// Initialize collapse button
$(".button-collapse").sideNav({
menuWidth: 350,
edge: 'left'
});
</script>
</html>