-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
144 lines (119 loc) · 5.91 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Queue App">
<meta name="author" content="Ricky Spires">
<title>Ricky Spires Code Test</title>
<!-- Bootstrap core CSS -->
<link href="assets/dist/css/bootstrap.min.css" rel="stylesheet" type="text/css" >
<link href="assets/css/styles.css" rel="stylesheet" type="text/css" >
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="header clearfix">
<h3 class="text-muted text-center">Queue App</h3>
</div>
<div class="row marketing">
<div class="col-md-5">
<div class="panel panel-default">
<div class="panel-heading">New Customer</div>
<div class="panel-body">
<form id="queForm" class="validate" action="" method="post">
<fieldset>
<!-- Form Name -->
<legend> Personal Information </legend>
<div class="form-check">
<div id="optionsList"></div>
<br>
</div>
</fieldset>
<fieldset>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary typeBtn citizen active" data-wat='citizen'>
<input class="typeOption" name='type' type="radio" value="Citizen" checked>Citizen
</label>
<label class="btn btn-primary typeBtn organisation" data-wat='organisation'>
<input class="typeOption" name='type'type="radio" value="Organisation">Organisation
</label>
<label class="btn btn-primary typeBtn anonymous" data-wat='anonymous'>
<input class="typeOption" name='type' type="radio" value="Anonymous">Anonymous
</label>
</div>
</fieldset>
<br>
<fieldset>
<div id="citizenInputs" class="details">
<div class='form-group'>
<label class='control-label'>Title</label>
<div class="input-group"><span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span><input id="title" name="title" placeholder="Mr." class="form-control" type="text"></div>
</div>
<div class='form-group'>
<label class='control-label'>First Name</label>
<div class="input-group"><span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span><input id="first_name" name="first_name" placeholder="First Name" class="form-control" type="text"></div>
</div>
<div class='form-group'>
<label class='control-label'>Last Name</label>
<div class="input-group"><span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span><input id="last_name" name="last_name" placeholder="Last Name" class="form-control" type="text"></div>
</div>
</div>
</fieldset>
<fieldset>
<div id="organisationInputs" class="details">
<div class='form-group'>
<label class='control-label'>Organisation Name</label>
<div class="input-group"><span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span><input id="orgname" name="org_name" placeholder="Organisation Name" class="form-control" type="text"></div>
</div>
</div>
</fieldset>
<fieldset>
<div id="anonymousInputs" class="details"></div>
</fieldset>
<fieldset>
<div class="form-group">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</fieldset>
</form>
</div>
</div>
</div>
<div class="col-md-7">
<div class="panel panel-default">
<div class="panel-heading">Queue</div>
<div class="panel-body">
<table id="queList" class="table">
<caption>List of customers being queued</caption>
<thead>
<th width="1%">#</th>
<th width="59%">Details</th>
<th width="15%">Guest</th>
<th width="15%">Arrived</th>
<th width="10%"></th>
</thead>
<tbody></tbody>
</table>
<p>There are <b id='numInList'>0</b> Items in list</p>
<button id="clearList" onclick="deleterow()">Clear All</button>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<p class="text-center">© 2017 Ricky Spires</p>
</footer>
</div> <!-- /container -->
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/bootstrap-validator/0.4.5/js/bootstrapvalidator.min.js'></script>
<script src="assets/js/site.js"></script>
</body>
</html>