-
Notifications
You must be signed in to change notification settings - Fork 1
/
admin.html
417 lines (371 loc) · 16.3 KB
/
admin.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
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
413
414
415
416
417
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<title>Admin</title>
<!-- Bootstrap core CSS -->
<link href="css/voting-ronnelsanchez.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/datepicker/datepicker.css">
<link href="css/styles.css" rel="stylesheet">
<!-- 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>
<body>
<header id="global-nav" class="navbar navbar-default">
<nav role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<img class="brand-logo" width="125" src="images/school-logo.png">
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul id="right-nav" class="nav navbar-nav navbar-right">
<li>
<div class="user-nav dropdown">
<a data-toggle="dropdown" href="#">
<div class="media">
<div class="media-left media-middle">
<img width="40" class="img-circle" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNDAiIGhlaWdodD0iMTQwIj48cmVjdCB3aWR0aD0iMTQwIiBoZWlnaHQ9IjE0MCIgZmlsbD0iI2VlZSIvPjx0ZXh0IHRleHQtYW5jaG9yPSJtaWRkbGUiIHg9IjcwIiB5PSI3MCIgc3R5bGU9ImZpbGw6I2FhYTtmb250LXdlaWdodDpib2xkO2ZvbnQtc2l6ZToxMnB4O2ZvbnQtZmFtaWx5OkFyaWFsLEhlbHZldGljYSxzYW5zLXNlcmlmO2RvbWluYW50LWJhc2VsaW5lOmNlbnRyYWwiPjE0MHgxNDA8L3RleHQ+PC9zdmc+" alt=".img-circle">
<i class="fa fa-fw hidden-xs" aria-hidden="true" title="Copy to use caret-down"></i>
</div>
<div class="media-body media-middle hidden-sm hidden-md hidden-lg">
<div class="user-company">
<strong>Ronnel Sanchez
<i class="fa fa-fw pull-right" aria-hidden="true"></i>
</strong>
</div><div class="user-email">[email protected]</div>
</div>
</div>
</a>
<ul class="dropdown-menu">
<li>
<div class="user-media media hidden-xs">
<div class="media-left media-middle">
<img width="60" class="img-circle" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNDAiIGhlaWdodD0iMTQwIj48cmVjdCB3aWR0aD0iMTQwIiBoZWlnaHQ9IjE0MCIgZmlsbD0iI2VlZSIvPjx0ZXh0IHRleHQtYW5jaG9yPSJtaWRkbGUiIHg9IjcwIiB5PSI3MCIgc3R5bGU9ImZpbGw6I2FhYTtmb250LXdlaWdodDpib2xkO2ZvbnQtc2l6ZToxMnB4O2ZvbnQtZmFtaWx5OkFyaWFsLEhlbHZldGljYSxzYW5zLXNlcmlmO2RvbWluYW50LWJhc2VsaW5lOmNlbnRyYWwiPjE0MHgxNDA8L3RleHQ+PC9zdmc+" alt=".img-circle">
</div>
<div class="media-body media-middle">
<div class="user-company">
<strong>Ronnel Sanchez</strong>
</div><div class="user-email">[email protected]</div>
</div>
</div>
</li>
<li class="nav-divider"></li>
<li><a href="#">Log Out</a></li>
</ul>
</div>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div>
</nav>
</header>
<div id="banner" class="navbar navbar-secondary">
<nav role="navigation">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<div class="heading">
<h1>Admin Page</h1>
</div>
</div>
</div>
</div>
</nav>
</div>
<main>
<div class="container">
<div class="row">
<div class="col-xs-12">
<button class="btn btn-primary btn-xl btn-float pull-right" data-toggle="modal" data-target="#newElection">New Election</button>
</div>
<div class="col-xs-12">
<div class="section-title in-progress">
<h2 class="h3">Election List</h2>
<div class="in-progress-bar"></div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<div class="thumbnail" onclick="window.location='./admin-election.html';">
<div class="caption">
<a href="./admin-election.html" class="btn btn-primary pull-right">View</a>
<div class="heading">
<h3>Student Council Election 2017</h3>
</div>
</div>
<div class="separator"></div>
<div class="thumbnail-section">
<h3 class="label-title">Election Period</h3>
<ul class="list-inline list-unstyled">
<li>Start: March 27, 2017</li><li><div class="divider"></div></li><li>End: April 12, 2017</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="container">
Footer
</div>
</footer>
<!-- Invite to Project -->
<div class="modal fade" id="inviteProject" tabindex="-1" role="dialog" aria-labelledby="inviteProject">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Invite to Project</h4>
</div>
<div class="modal-body text-center">
<h3 class="section-title">Invite <strong>Translator Name</strong> to your project.</h3>
<p>
<button type="button" class="btn btn-primary btn-lg">Submit Invitation</button>
<br />
</p>
</div>
</div>
</div>
</div>
<!-- View to Data -->
<div class="modal fade" id="viewModal" tabindex="-1" role="dialog" aria-labelledby="viewModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Project Manager</h4>
</div>
<div id="modalDetails" class="modal-body">
<div class="modal-section">
<span class="label-title">
Project Manager
</span>
<h3>Edouard Balde</h3>
</div>
<div class="modal-section">
<span class="label-title">
Translator Member
</span>
<ul class="list list-unstyled">
<li>Ronnel Sanchez</li>
<li>Lyka Labrada</li>
</ul>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- New PM -->
<div class="modal fade" id="newElection" tabindex="-1" role="dialog" aria-labelledby="newElection">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Create New Election</h4>
</div>
<div class="modal-body">
<form class="form-horizontal">
<div class="form-group">
<div class="col-sm-12">
<label for="inputEmail3" class="control-label label-title">Election Title</label>
<input type="" class="form-control input-lg" id="inputEmail3" placeholder="Election Title">
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<label for="inputPassword3" class="control-label label-title">Voting Day</label>
<div class="input-daterange input-group" id="dateOnAdminElection">
<input type="text" class="form-control input-lg" value="" placeholder="Star Date" name="start" />
<span class="input-group-addon">to</span>
<input type="text" class="form-control input-lg" value="" placeholder="End Date" name="end" />
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<label for="inputPassword3" class="control-label label-title">Description</label>
<textarea class="form-control" rows="3"></textarea>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" data-dismiss="modal">Submit</button>
</div>
</div>
</div>
</div>
<!-- New Translator -->
<div class="modal fade" id="newT" tabindex="-1" role="dialog" aria-labelledby="newPM">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Create New Translator</h4>
</div>
<div class="modal-body">
<form class="form-horizontal">
<div class="form-group">
<div class="col-xs-12">
<label for="" class="control-label label-title">Translator Member</label>
<textarea class="form-control" rows="3" placeholder="Translators"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-xs-12">
<label for="" class="control-label label-title">Project Manager Name</label><br />
<select class="selectpicker">
<option>Edouard Balde</option>
<option>Project Manager 1</option>
<option>Project Manager 2</option>
</select>
</div>
</div>
<br>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" data-dismiss="modal">Submit</button>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/bootstrap-select.js"></script>
<script src="js/datepicker.js"></script>
<script src="js/scripts.js"></script>
<script>
$(function () {
$('#viewModal').modal({
keyboard: true,
backdrop: "static",
show: false,
}).on('show', function () {
});
$("#table-member").find('tr[data-id]').on('click', function () {
//let modalDetails = '<span class="label-title">Project Manager</span>';
//do all your operation populate the modal and open the modal now. DOnt need to use show event of modal again
//$('#modalDetails').html($(modalDetails));
$('#viewModal').modal('show');
});
});
</script>
<script>
$.fn.pageMe = function(opts){
var $this = this,
defaults = {
perPage: 7,
showPrevNext: false,
hidePageNumbers: false
},
settings = $.extend(defaults, opts);
var listElement = $this;
var perPage = settings.perPage;
var children = listElement.children();
var pager = $('.pager');
if (typeof settings.childSelector!="undefined") {
children = listElement.find(settings.childSelector);
}
if (typeof settings.pagerSelector!="undefined") {
pager = $(settings.pagerSelector);
}
var numItems = children.size();
var numPages = Math.ceil(numItems/perPage);
pager.data("curr",0);
if (settings.showPrevNext){
$('<li><a href="#" class="prev_link">«</a></li>').appendTo(pager);
}
var curr = 0;
while(numPages > curr && (settings.hidePageNumbers==false)){
$('<li><a href="#" class="page_link">'+(curr+1)+'</a></li>').appendTo(pager);
curr++;
}
if (settings.showPrevNext){
$('<li><a href="#" class="next_link">»</a></li>').appendTo(pager);
}
pager.find('.page_link:first').addClass('active');
pager.find('.prev_link').hide();
if (numPages<=1) {
pager.find('.next_link').hide();
}
pager.children().eq(1).addClass("active");
children.hide();
children.slice(0, perPage).show();
pager.find('li .page_link').click(function(){
var clickedPage = $(this).html().valueOf()-1;
goTo(clickedPage,perPage);
return false;
});
pager.find('li .prev_link').click(function(){
previous();
return false;
});
pager.find('li .next_link').click(function(){
next();
return false;
});
function previous(){
var goToPage = parseInt(pager.data("curr")) - 1;
goTo(goToPage);
}
function next(){
goToPage = parseInt(pager.data("curr")) + 1;
goTo(goToPage);
}
function goTo(page){
var startAt = page * perPage,
endOn = startAt + perPage;
children.css('display','none').slice(startAt, endOn).show();
if (page>=1) {
pager.find('.prev_link').show();
}
else {
pager.find('.prev_link').hide();
}
if (page<(numPages-1)) {
pager.find('.next_link').show();
}
else {
pager.find('.next_link').hide();
}
pager.data("curr",page);
pager.children().removeClass("active");
pager.children().eq(page+1).addClass("active");
}
};
$(document).ready(function(){
$('#sTable').pageMe({pagerSelector:'#cPager',showPrevNext:true,hidePageNumbers:false,perPage:4});
$('#sTable').pageMe({pagerSelector:'#sPager',showPrevNext:true,hidePageNumbers:false,perPage:4});
});
</script>
</body>
</html>