-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
179 lines (173 loc) · 9.23 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/css/materialize.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Dosis|Great+Vibes|Tangerine|Josefin+Slab" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<title>gHoodies</title>
</head>
<body>
<nav class="#f7901E orange">
<div class="nav-wrapper #f7901E orange">
<a href="#" class="brand-logo nav-text left">gSwag</a>
<ul id="nav-mobile" class="right">
<li><a href="#!" id="load-requests" class="nav-text">Home</a></li>
<li><a href="#!" id="load-results" class="nav-text">View</a></li>
<li><a href="#!" id="load-about" class="nav-text">About</a></li>
</ul>
</div>
</nav>
<div class="header">
<div class="header-content">
<h2></h2>
</div>
</div>
<main>
<div class="container" id="content">
<div class="row" id="landing">
<div class="col s6 text-align center" id="synopsis-col">
<h4>How To Use gSwag</h4> <p>Incoming and current Galvanize students can search to see if they are currently in the database on the right. Students who are not yet in the database are able to add their information and sizing specifications. Students already existing in the database may make sizing changes if needed. To view all records by cohort please click on the view link in the navigation bar.</p>
</div>
<div class="col s6" id="name-col">
<h4 class="text-align center">Search By Student</h4><br><br>
<div class="row" id="name-form-row">
<form class="col s12" id="name-form">
<div class="row">
<div class="input-field col s12">
<input placeholder="Enter your full first name" id="search-name" type="text" class="validate">
<label for="search-name">First Name</label>
</div>
<div class="input-field col s12">
<input placeholder="Enter your last name" id="search-surname" type="text" class="validate">
<label for="search-surame">Last Name</label>
</div>
</div>
<div class="row center col s12">
<input type="submit" class="btn-large waves-effect waves-light grey valign-wrapper" id="submit-name" value="Submit">
</div>
</form>
</div>
</div>
</div>
<div class="row" id="about" style="display: none">
<div class="col s12">
<p>gSwag is built with HTML, CSS, Materialize, Javascript, jQuery, Node.js, Express, Postgesql and Knex. gSwag was lead on the Front-End by Thomas Stang (@tkstang) and on the Back-End by Daniel Gardner (@danielmarcgardner) with contributions by Randall Spencer (@holdonowgo), Matt Muir (@Mattimus333), and Ryan Thissen (@ryanthissen).</p>
</div>
</div>
<div class="row" id="post-row" style="display: none">
<form class="col s12" id="post-form" action="https://ghoodies.herokuapp.com/students/" method="post" style="">
<div class="input-field col s6">
<input placeholder="Enter your full first name" id="post-name" type="text" class="validate" name="firstName">
<label for="post-name">First Name</label>
</div>
<div class="input-field col s6">
<input placeholder="Enter your last name" id="post-surname" type="text" class="validate" name="lastName">
<label for="post-surname">Last Name</label>
</div> -->
<div class="input-field col s12">
<input id="email" type="email" class="validate" name="email">
<label for="email">Email</label>
</div>
<div class="input-field col s12" id="cohort-input" name="cohort_id">
<select id="cohort-select" name="cohort_id">
<option value="" disabled selected>Select your cohort</option>
</select>
</div>
<!-- <div class="input-field col s12" id="t-size-input" name="t-size">
<select id="t-size-select" name="t-size">
<option value="" disabled selected>Select your t-shirt size</option>
<option value="XS">Extra Small</option>
<option value="Small">Small</option>
<option value="Medium">Medium</option>
<option value="Large">Large</option>
<option value="XL">Extra Large</option>
<option value="XXL">XX Large</option>
</select>
</div> -->
<div class="input-field col s12" id="size-input" name="size">
<select id="size-select" name="size">
<option value="" disabled selected>Select your hoodie size</option>
<option value="Small">Small</option>
<option value="Medium">Medium</option>
<option value="Large">Large</option>
<option value="XL">Extra Large</option>
<option value="XXL">XX Large</option>
</select>
</div>
<div class="row center col s12">
<input type="submit" class="btn-large waves-effect waves-light grey valign-wrapper" id="submit-post" value="Submit">
</div>
</form>
</div>
<div class="row" id="update-row" style="display: none">
<form class="col s12" id="update-form" action="" method="patch" style="">
<div class="input-field col s12" id="update-cohort-input">
<select id="update-cohort-select">
<option value="" disabled selected>Select your cohort</option>
</select>
</div>
<!-- <div class="input-field col s6" id="update-t-size-input" name="update-t-size">
<select id="update-t-size-select" name="update-t-size">
<option value="" disabled selected>Select your t-shirt size</option>
<option value="XS">Extra Small</option>
<option value="Small">Small</option>
<option value="Medium">Medium</option>
<option value="Large">Large</option>
<option value="XL">Extra Large</option>
<option value="XXL">XX Large</option>
</select>
</div> -->
<div class="input-field col s12" id="update-size-input">
<select id="update-size-select">
<option value="" disabled selected>Select your size</option>
<option value="Small">Small</option>
<option value="Medium">Medium</option>
<option value="Large">Large</option>
<option value="XL">Extra Large</option>
<option value="XXL">XX Large</option>
</select>
</div>
<div class="input-field col s6" style="display: none">
<input placeholder="Enter your full first name" id="id-input" type="text" name="id">
</div>
<div class="row center col s12">
<input type="submit" class="btn-large waves-effect waves-light grey valign-wrapper" id="submit-update" value="Update">
</div>
</form>
</div>
<div class="row" id="table-row" style="display: none">
<form class="col s12" id="report-form" style="">
<div class="input-field col s12" id="report-cohort-input">
<select id="report-cohort-select">
<!-- <option value="" disabled selected>Select a cohort</option> -->
</select>
</div>
<div class="row center col s12">
<input type="submit" class="btn-large waves-effect waves-light grey valign-wrapper" id="submit-report" value="View Report">
</div>
</form>
<div class="col s12" id="table-col">
</div>
</div>
</div>
</main>
<footer class="page-footer #f7901E orange" id="foot">
<div class="row">
<div class="col s6">
</div>
<div class="col s6">
<a class="white-text right" id="load-admin" href="#!">Admin</a>
</div>
</div>
<div class="footer-copyright #f7901E orange white-text darken-1" id="footer-copyright">
© 2017 Swag Hackers
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fetch/2.0.2/fetch.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.js"></script>
<script type='text/javascript' src="js/script.js"></script>
</body>
</html>