-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathevents.html
More file actions
224 lines (190 loc) · 9.17 KB
/
Copy pathevents.html
File metadata and controls
224 lines (190 loc) · 9.17 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
<!--
STOP! You should understand how index.html is built first. (check out versions in index_progress)
This page is a prototype of the page that lists all the events of the hackathon.
An unregistered user will not see any buttons.
A registered user (attendee) will see the "star" buttons
An admin user will see the edit, delete, and create buttons
This page has the same nav header and footer as index; the main section is what contains different things.
Of Note:
HTML Tables (https://developer.mozilla.org/en-US/docs/Learn/HTML/Tables/Basics),
With Materialize, tables have nice style options: https://materializecss.com/table.html
Materialize Icons: https://materializecss.com/icons.html
Materialize "buttons": https://materializecss.com/buttons.html
Some relative links that add URL query params, for filtering/searching
Some custom CSS for formatting tables: <link rel="stylesheet" href="/styles/tables.css">
Some custom JS for interactive buttons: <script src="/js/event_utils.js"></script>
Some onclick attributes on certain clickable HTML elements, which trigger a snippet of JS
After this page, check out events/1.html (a sample event page) and eventform.html (a sample add/modify event page)
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HackBCA 20XX</title>
<link rel="shortcut icon" type="image/jpg" href="/images/favicon.ico" />
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="/styles/materialize.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!-- Shared site-wide CSS -->
<link rel="stylesheet" href="/styles/main.css">
<!-- Page specific CSS -->
<link rel="stylesheet" href="/styles/tables.css">
</head>
<body>
<header>
<nav>
<div class="nav-wrapper">
<img class="hide-on-small-and-down" src="/images/bca-logo-transparent.png">
<a href="/" class="brand-logo">HackBCA 20XX</a>
<a href="#" data-target="mobile-nav" class="sidenav-trigger"><i class="material-icons">menu</i></a>
<ul id="desktop-nav" class="right hide-on-med-and-down">
<li><a href="/events.html"><i class="material-icons left">event</i>Events</a></li>
<li><a href="/attendees.html"><i class="material-icons left">people</i>Attendees</a></li>
<li><a href="/projects.html"><i class="material-icons left">build</i>Projects</a></li>
<li><a href="/login.html" class="btn">Login / Register</a></li>
</ul>
</div>
</nav>
<ul id="mobile-nav" class="sidenav">
<li><a href="/events.html"><i class="material-icons left">event</i>Events</a></li>
<li><a href="/attendees.html"><i class="material-icons left">people</i>Attendees</a></li>
<li><a href="/projects.html"><i class="material-icons left">build</i>Projects</a></li>
<li><a href="/login.html" class="btn">Login / Register</a></li>
</ul>
</header>
<main>
<!-- https://materializecss.com/grid.html -->
<div class="container">
<h1>Event Schedule</h1>
<blockquote>
Click on the event name for more details!
Click on <i class="material-icons tiny">sort</i> to sort by that column, or items in <i
class="material-icons tiny">filter_list</i> columns to filter by that item.
</blockquote>
<div class="row">
<div class="col l3 s12 "> <i class="left material-icons">sort</i>Sorted by: Date / Time</div>
<div class="col l3 offset-l6 ">
<!-- Position differently (left) for mobile -->
<div class="right hide-on-small-only"><i class="left material-icons">filter_list</i>Filter: None</div>
<div class="left hide-on-med-and-up"><i class="left material-icons">filter_list</i>Filter: None</div>
</div>
</div>
<!-- https://materializecss.com/table.html -->
<table class="highlight centered responsive-table">
<thead>
<tr>
<!-- USER ONLY-->
<th><i class="material-icons">star</i>
<a href="?sort=starred"><i class="material-icons">sort</i></a>
</th>
<th>Event</th>
<th>Location <a href="?sort=location">
<i class="material-icons">sort</i></a>
<i class="material-icons">filter_list</i>
</th>
<th>Date / Time
<a href="?sort=datetime"><i class="material-icons">sort</i></a>
</th>
<th>Duration</th>
<th>Type
<a href="?sort=type"><i class="material-icons">sort</i></a>
<i class="material-icons">filter_list</i>
</th>
<th>Interest<i class="material-icons">sort</i></th>
<!-- ADMIN ONLY BUTTONS -->
<th>Admin Op</th>
</tr>
</thead>
<tbody>
<tr>
<!-- USER ONLY - Initialize page with appropriate state of button -->
<td>
<a onclick='toggleInterest(this, "{{ event_id }}")'
class="btn-floating btn-small waves-effect waves-light scale-transition scale-in blue"><i
class="material-icons">star_border</i></a>
<!-- If user already "starred" this event, it should be a yellow star -->
<!-- <a onclick='toggleInterest(this, "{{ event_id }}"))'class="btn-floating btn-small waves-effect waves-light scale-transition scale-in yellow"><iclass="material-icons">star</i></a> -->
</td>
<td class="blue-text clickable" onclick="location.href='/events/1.html'">Opening Ceremony</td>
<td> <a href='?filter=location:Auditorium'>Auditorium </a></td>
<td><a href='?filter=date:05-01-2022'>May 1 (Sat)</a> 10:30 AM</td>
<td>30m</td>
<td> <a href='?filter=type:Main'>Main</a></td>
<td>100<i class=material-icons>people</i></td>
<!-- ADMIN ONLY BUTTONS -->
<td nowrap>
<a class="btn-floating btn-small waves-effect waves-light green lighten-1" href="/eventform.html"><i
class="material-icons">edit</i></a>
<a class="btn-floating waves-effect waves-light red"
onclick='confirmDelete("Opening Ceremony","{{ event_id}}", ".")'><i
class="material-icons">delete</i></a>
</td>
</tr>
<tr>
<!-- USER ONLY - Initialize page with appropriate state of button -->
<td>
<a onclick='toggleInterest(this, "{{ event_id }}")'
class="btn-floating btn-small waves-effect waves-light scale-transition scale-in blue"><i
class="material-icons">star_border</i></a>
<!-- If user already "starred" this event, it should be a yellow star -->
<!-- <a onclick='toggleInterest(this, "{{ event_id }}"))'class="btn-floating btn-small waves-effect waves-light scale-transition scale-in yellow"><iclass="material-icons">star</i></a> -->
</td>
<td class="blue-text clickable" onclick="location.href='/events/2.html'">Closing Awards Ceremony</td>
<td> <a href='?filter=location:Auditorium'>Auditorium </a></td>
<td><a href='?filter=date:05-02-2021'>May 2 (Sun)</a> 11:00 AM</td>
<td>30m</td>
<td> <a href='?filter=type:Main'>Main</a></td>
<td>99<i class=material-icons>people</i></td>
<!-- ADMIN ONLY BUTTONS -->
<td nowrap>
<a class="btn-floating btn-small waves-effect waves-light green lighten-1" href="./eventform.html"><i
class="material-icons">edit</i></a>
<a class="btn-floating waves-effect waves-light red"
onclick='confirmDelete("Opening Ceremony","{{ event_id}}")'><i class="material-icons">delete</i></a>
</td>
</tr>
</tbody>
</table>
</div>
<a href="/eventform.html" class="btn-floating btn-large orange fixed-action-btn">
<i class="large material-icons">create</i>
</a>
</main>
<footer class="page-footer">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">Sponsors</h5>
<p>hackBCA is brought to you by:</p>
<ul>
<li>BCA PPO</li>
<li>Tech-Pa</li>
<li><Corporate Sponsors></li>
<li>Wanna join this list? Sponsor us!</li>
</ul>
</div>
<div class="col l4 offset-l2 s12">
<h5 class="white-text">Contact Us</h5>
<ul>
<li>Twitter: @hackbca</li>
<li>Instagram: @hackbca</li>
<li>Facebook: @hackbca</li>
<li>Email: hackbca@_____</li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2021 Copyright Text
<a class="grey-text text-lighten-4 right" href="#!">More Links</a>
</div>
</div>
</footer>
<script src="/js/event_utils.js"></script>
<!-- Compiled and minified JavaScript -->
<script src="/js/materialize.min.js"></script>
<!-- initialize Materialize elements -->
<script> M.AutoInit();</script>
</body>
</html>