-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.html
More file actions
412 lines (395 loc) · 23.8 KB
/
settings.html
File metadata and controls
412 lines (395 loc) · 23.8 KB
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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
<!--
EVENTMAN (EVN)
-COPYRIGHT NOTICE-
Eventman Copyright (c) 2017 Sean Kee - All Rights Reserved.
Unauthorized copying or reproduction of this file is strictly prohibited.
Visit https://mrskee.github.io/ for more information.
Sean Kee <skee66499@gmail.com>
-->
<!DOCTYPE html>
<html>
<head>
<!-- Meta-Data -->
<meta HTTP-EQUIV="Expires" CONTENT="0">
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<!-- Stylesheets -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<!-- Scripts -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.6.0/Chart.bundle.min.js"></script>
<script src="js/SK.js"></script>
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicons/favicon-16x16.png">
<link rel="manifest" href="favicons/manifest.json">
<link rel="mask-icon" href="favicons/safari-pinned-tab.svg" color="#057aff">
<meta name="theme-color" content="#ffffff">
<!-- Page Data -->
<title>Settings - Hack River Dell Access EVN</title>
</head>
<body>
<header>
<ul id="nav-dropdown" class="uppercase dropdown-content">
<li class="nav-dropdown-registrants"><a href="registrants.html">Registrants</a></li>
<li class="nav-dropdown-staff"><a href="staff.html">Staff</a></li>
<li class="nav-dropdown-settings"><a href="#!">Settings</a></li>
<li class="divider"></li>
<li><a class="ButtonLogOut" href="index.html">Logout</a></li>
</ul>
<ul id="slide-out" class="uppecase side-nav">
<li class="nav-dropdown-registrants"><a href="registrants.html">Registrants</a></li>
<li class="nav-dropdown-staff"><a href="staff.html">Staff</a></li>
<li class="nav-dropdown-settings"><a href="#1">Settings</a></li>
<li class="divider"></li>
<li><a class="ButtonLogOut" href="index.html">Logout</a></li>
</ul>
<div class="navbar-fixed">
<nav class="nav-extended">
<div class="container">
<div class="nav-wrapper">
<a href="#" class="brand-logo center">Hack River Dell Access</a>
<a href="#" data-activates="slide-out" class="button-collapse"><i class="material-icons float-left">menu</i> <span class="mobile-nav-icon-text">SETTINGS</span></a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li class="nav-dropdown-btn"><a class="uppercase dropdown-button waves-effect nav-dropdown-btn" href="#!" data-activates="nav-dropdown">Settings<i class="material-icons right">arrow_drop_down</i></a></li>
</ul>
</div>
</div>
<div class="nav-content">
<ul class="tabs tabs-transparent">
<div class="tabs-center">
<li class="tab"><a href="#account">Account</a></li>
<li class="tab manage-tab disabled"><a href="#manage">Manage</a></li>
<li class="tab about-tab disabled"><a href="#about">About</a></li>
</div>
</ul>
</div>
</nav>
</div>
</header>
<main>
<div id="content">
<div class="container">
<div id="loading-bar-wrapper">
<div id="loading-bar" class="progress">
<div class="indeterminate"></div>
</div>
</div>
</div>
<!-- Account Tab -->
<div id="account" class="container" style="display: none;">
<div id="account-wrapper" class="top-space">
<div class="row">
<div class="col s2"></div>
<div id="update-information" class="card col s8">
<div id="update-information-card" class="card-content">
<h5>Update Profile</h5>
<form id="UpdateInformationForm" action="#">
<div class="row">
<div class="input-field col s5 left">
<input id="UpdateFirstNameField" type="text" class="form-control" name="first_name" required autofocus="">
<label for="UpdateFirstNameField">First Name</label>
</div>
<div class="input-field col s6 right">
<input id="UpdateLastNameField" type="text" class="form-control" name="last_name" required>
<label for="UpdateLastNameField">Last Name</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<input id="UpdateEmailField" type="email" class="form-control" name="email" required disabled>
<label for="UpdateEmail">Email</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<input id="UpdatePhoneNumberField" type="tel" class="form-control" name="phone_number" required>
<label for="UpdatePhoneNumberField">Cell Phone Number (No Spaces or Dashes)</label>
</div>
</div>
<div class="row">
<div class="input-field col s4">
<select id="UpdateSizeField">
<option id="UpdateSizeEmpty" value="" disabled selected>Choose your size</option>
<option id="UpdateSizeSmall" value="Small">Small</option>
<option id="UpdateSizeMedium" value="Medium">Medium</option>
<option id="UpdateSizeLarge" value="Large">Large</option>
<option id="UpdateSizeXLarge" value="XLarge">Extra Large</option>
</select>
<label>T-Shirt Size</label>
</div>
</div>
<div class="row">
<div class="col s12">
<label>Availability<br><span class="italics">Shift times are tentative/subject to change.</span></label>
<p>
<input type="checkbox" id="UpdateShiftOne"><label for="UpdateShiftOne">Saturday Morning Shift: 7:00 AM-3:00 PM</label>
</p>
<p>
<input type="checkbox" id="UpdateShiftTwo"><label for="UpdateShiftTwo">Saturday Afternoon Shift: 3:00 PM-10:00 PM</label>
</p>
<p>
<input type="checkbox" id="UpdateShiftThree"><label for="UpdateShiftThree">Night Shift: 10:00 PM-7:00 AM</label>
</p>
<p>
<input type="checkbox" id="UpdateShiftFour"><label for="UpdateShiftFour">Sunday Shift: 7:00 AM-4:00 PM</label>
</p>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<input id="UpdateDiscordAccountField" type="text" class="form-control\" name="discord_account" required>
<label for="UpdateDiscordAccountField">Discord Account</label>
</div>
</div>
<button id="ButtonUpdateInformation" class="bottom-space waves-effect waves-light btn right" type="button">UPDATE</button>
</form>
</div>
</div>
</div>
<div class="row">
<div class="col s2"></div>
<div id="update-password" class="card col s8">
<div id="update-password-card" class="card-content">
<h5>Update Password</h5>
<form id="UpdatePasswordForm" class="form-signin" method="post">
<div class="input-field">
<input id="NewPasswordField" type="password" class="form-control" name="password" required>
<label for="NewPasswordField" data-error="wrong" data-success="right">New Password</label>
</div>
<div class="input-field">
<input id="ConfirmNewPasswordField" type="password" class="form-control" name="confirm_password" required>
<label for="ConfirmNewPasswordField" data-error="wrong" data-success="right">Confirm Password</label>
</div>
<button id="ButtonUpdatePassword" class="waves-effect waves-light btn right" type="button">CHANGE PASSWORD</button>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Manage Tab -->
<div id="manage" class="container top-space" style="display: none;">
<div id="manage-wrapper" class="">
<div class="row">
<div class="col s3"></div>
<div id="clear-registrants-log-history" class="card col s6">
<div id="clear-registrants-log-history-card" class="card-content">
<h5>Clear history</h5>
<p>This will clear all history</p>
<br />
<ul>
<li><button id="ButtonClearAllRegistrantsHistory" class="waves-effect waves-light btn modal-trigger"
type="button" href="#clear-registrants-warning-modal">CLEAR REGISTRANTS</button></li>
<li><br></li>
<li><button id="ButtonClearAllStaffHistory" class="waves-effect waves-light btn modal-trigger"
type="button" href="#clear-staff-warning-modal">CLEAR STAFF</button></li>
<li><br></li>
<li><button id="ButtonClearAllStaffActionsHistory" class="waves-effect waves-light btn modal-trigger"
type="button" href="#clear-staff-actions-warning-modal">CLEAR STAFF ACTIONS</button></li>
</ul>
</div>
</div>
</div>
</div>
<!-- Clear Warning Modals -->
<div id="clear-registrants-warning-modal" class="modal">
<div class="modal-content">
<h4>Warning</h4>
<p>Your are about to clear the check in/out history for all the registrants. <strong>This action is irreversible</strong>.
Continue?
</p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-grey btn-flat ">Cancel</a>
<a id="clear-registrants-warning-modal-confirm" href="#!" class="warning-modal-confirm modal-action modal-close waves-effect waves-green btn-flat red-btn">CLEAR</a>
</div>
</div>
<div id="clear-staff-warning-modal" class="modal">
<div class="modal-content">
<h4>Warning</h4>
<p>Your are about to clear the check in/out history for all the staff. <strong>This action is irreversible</strong>.
Continue?
</p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-grey btn-flat ">Cancel</a>
<a id="clear-staff-warning-modal-confirm" href="#!" class="warning-modal-confirm modal-action modal-close waves-effect waves-green btn-flat red-btn">CLEAR</a>
</div>
</div>
<div id="clear-staff-actions-warning-modal" class="modal">
<div class="modal-content">
<h4>Warning</h4>
<p>Your are about to clear the action logs for all the staff. <strong>This action is irreversible</strong>.
Continue?
</p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-grey btn-flat ">Cancel</a>
<a id="clear-staff-actions-warning-modal-confirm" href="#!" class="warning-modal-confirm modal-action modal-close waves-effect waves-green btn-flat red-btn">CLEAR</a>
</div>
</div>
</div>
<!-- About Tab -->
<div id="about" class="container tools-tab top-space" style="display: none;">
<div id="about-wrapper" class="">
<div class="row">
<div class="col s4"></div>
<div id="about-evn" class="card col s4">
<div id="about-evn-card" class="card-content">
<h5>Eventman Version</h5>
<p id="eventman-version"></p>
</div>
</div>
</div>
<div class="row">
<div class="col s4"></div>
<div id="copyright" class="card col s4">
<div id="copyright-card" class="card-content">
<h5>Copyrights</h5>
<p>Hack River Dell © 2017 Hack River Dell</p>
</div>
</div>
</div>
<div class="row">
<div class="col s4"></div>
<div class="anti-card col s4">
<p><i class="tiny material-icons">report</i> Please report any issues <a href="https://github.com/hackrd/staff/issues"
target="_blank">here</a>.</p>
</div>
</div>
<div class="row">
<div class="col s4"></div>
<div class="anti-card col s4">
<p>Powered by Eventman. © 2017 Sean Kee</p>
</div>
</div>
</div>
</div>
</div>
<!-- First Login Modal -->
<div id="first-login-modal" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>First time logging in?</h4>
<h5>Glad you could be part of our team! Please take some time to fill out your information.</h5>
<p class="italics">You can always change this later in your account settings.</p>
<div id="first-login-content">
<form id="FirstLoginForm" action="#">
<div class="row">
<div class="input-field col s5 left">
<input id="FirstNameField" type="text" class="form-control" name="first_name" required autofocus="">
<label for="FirstNameField">First Name</label>
</div>
<div class="input-field col s6 right">
<input id="LastNameField" type="text" class="form-control" name="last_name" required>
<label for="LastNameField">Last Name</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<input id="EmailField" type="email" class="form-control" name="email" required disabled>
<label for="Email">Email</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<input id="PhoneNumberField" type="tel" class="form-control" name="phone_number" required>
<label for="PhoneNumberField">Cell Phone Number (No Spaces or Dashes)</label>
</div>
</div>
<div class="row">
<div class="input-field col s4">
<select id="SizeField">
<option value="" disabled selected>Choose your size</option>
<option value="Small">Small</option>
<option value="Medium">Medium</option>
<option value="Large">Large</option>
<option value="Extra Large">Extra Large</option>
</select>
<label>T-Shirt Size</label>
</div>
</div>
<div class="row">
<div class="col s12">
<label>What shift(s) can you work?<br><span class="italics">Please select all shifts you can work. Shift times are tentative/subject to change.</span></label>
<p>
<input type="checkbox" id="ShiftOne"><label for="ShiftOne">Saturday Morning Shift: 7:00 AM-3:00 PM</label>
</p>
<p>
<input type="checkbox" id="ShiftTwo"><label for="ShiftTwo">Saturday Afternoon Shift: 3:00 PM-10:00 PM</label>
</p>
<p>
<input type="checkbox" id="ShiftThree"><label for="ShiftThree">Night Shift: 10:00 PM-7:00 AM</label>
</p>
<p>
<input type="checkbox" id="ShiftFour"><label for="ShiftFour">Sunday Shift: 7:00 AM-4:00 PM</label>
</p>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<input id="DiscordAccountField" type="text" class="form-control\" name="discord_account" required>
<label for="DiscordAccountField">Discord Account</label>
<p class="italics">We use Discord to communicate because it's good. If you have a Discord, drop your tag (example:
@DiscordName#1234) above. If you don't have one, sign up at <a href="https://www.google.com/url?q=http://discordapp.com&sa=D&ust=1504364136485000&usg=AFQjCNFBV7Oc3sjAgpJZCYiP7TkctBDjQA">discordapp.com</a>,
and then put your Discord tag below. It is imperative that you include your ENTIRE tag.</p>
</div>
</div>
<!--div class="divider"></div>
<div class="row top-space">
<div class="input-field col s5 left">
<input id="NewPasswordField" type="password" class="form-control" name="password" placeholder="New Password" required>
<label for="NewPasswordField">New Password</label>
</div>
<div class="input-field col s6 right">
<input id="ConfirmNewPasswordField" type="password" class="form-control" name="password" placeholder="Confirm Password" required>
<label for="ConfirmNewPassword">Confirm Password</label>
</div>
</div-->
</form>
</div>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action waves-effect waves-green btn-flat" id="first-login-submit">Complete</a>
</div>
</div>
</main>
<!-- Scripts -->
<script src="https://www.gstatic.com/firebasejs/4.2.0/firebase.js"></script>
<script src="js/EVN_AuthenticationService.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/js/materialize.min.js"></script>
<script src="js/EVN_User.js"></script>
<script src="js/EVN_Settings.js"></script>
<!--<script src="js/EVN_Load.js"></script>-->
<script>
$(document).ready(function () {
$('.modal').modal();
$('.button-collapse').sideNav({
menuWidth: 500, // Default is 300
edge: 'left', // Choose the horizontal origin
closeOnClick: true, // Closes side-nav on <a> clicks, useful for Angular/Meteor
draggable: true, // Choose whether you can drag to open on touch screens,
onOpen: function (el) { /* Do Stuff */ }, // A function to be called when sideNav is opened
onClose: function (el) { /* Do Stuff */ }, // A function to be called when sideNav is closed
});
$('.collapsible').collapsible();
$('select').material_select();
});
var APP_ID = "";
var SECRET = "";
var EVN_Dash = new EVN_Settings();
AUTH.onAuthStateChanged(firebaseUser => {
if (firebaseUser) {
firebase.database().ref().child('Keys').once('value').then(function (snap) {
EVN_Dash.Load();
});
} else {
IsFailure();
}
})
</script>
</body>
</html>