-
Notifications
You must be signed in to change notification settings - Fork 0
/
details.hbs~
74 lines (72 loc) · 2.7 KB
/
details.hbs~
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
<!DOCTYPE html>
<html style="height:100%">
<head>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<link type = "text/css" rel = "stylesheet" href = "css/bootstrap.css" />
<ul class = "nav nav-pills">
<li class="active" style = "width: 25%;"><a href="#" id = Home data-toggle = "tab">Home</a></li>
<li style = "width: 25%;"><a href="#" id = AddTask data-toggle = "tab">Add Task</a></li>
</ul>
<script>
$(document).on("click", "#Home", function(){
window.location = '/';
});
$(document).on("click", "#AddTask", function(){
window.location = '/addtask';
});
</script>
<title>Team Tardis</title>
</head>
<body style="font-family:'Calibri'; text-align: center; height:100%">
<h1 style="color:#000000; font-size:30px;"></h1>
<div class= "panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">Due Date: </h2>
</div>
<p0 class="panel-body" ></div>
</div>
<div class= "panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Location: </h3>
</div>
<p1 class="panel-body"></div>
</div>
<div class= "panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Description: </h4>
</div>
<p2 class="panel-body"></div>
</div>
<button id="ok" style="background:#428bca; color:#FFFFFF; border-radius:10px; font-size:18px; padding-left: 15px; padding-right: 15px; padding-top: 3px; padding-bottom: 3px;">Ok!</button>
<button id="complete" style="background:#428bca; color:#FFFFFF; border-radius:10px; font-size:18px; padding-left: 15px; padding-right: 15px; padding-top: 3px; padding-bottom: 3px;">Mark Task as Complete</button>
<button id="delete" style="background:red; color:#FFFFFF; border-radius:10px; font-size:18px; padding-left: 15px; padding-right: 15px; padding-top: 3px; padding-bottom: 3px;">Delete</button>
<script>
id = 0;
$.get("/report", function( records ) {
$.get("/taskinfo", function( idx ) {
id = records[idx]._id;
console.log(idx);
$('h1').append(records[idx].name);
if( records[idx].due != undefined )
$('p0').append(records[idx].due);
if( records[idx].loc != undefined )
$('p1').append(records[idx].loc);
if( records[idx].des != undefined )
$('p2').append(records[idx].des);
});
});
$(document).on("click", "#ok", function(){
window.location = '/';
});
$(document).on("click", "#complete", function(){
window.location = '/';
$.post("/clear", {id: currIdx});
});
$(document).on("click", "#delete", function(){
window.location = '/';
$.post("/clear", {idx: currIdx});
});
</script>
</body>
</html>