-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_tasks.html
70 lines (49 loc) · 1.99 KB
/
user_tasks.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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.6/handlebars.min.js"></script>
<script type="text/javascript" src="vendor/swag/lib/swag.js"></script>
<script type="text/javascript" src="js/data.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="css/user.css" rel="stylesheet">
<script>
$(document).ready(function(){
var template = Handlebars.compile($("#groups-tasks-template").html());
$("#content").append(template(data.groups[0].members[0]));
});
</script>
</head>
<body>
<div class="container">
<a href="./"><h2> <img src="img/logo.png" height="50">Affinity</h2></a>
<hr>
<div id="content"></div>
</div>
</body>
</html>
<script id="groups-tasks-template" type="text/x-handlebars-template">
<h1><i class="fa fa-check-square-o"></i> {{first_name}}'s Tasks</h1>
<br>
{{#each tasks}}
<div class="well">
<div class="pull-right col-md-4">
<textarea placeholder="Task Notes.." rows=2></textarea><br>
<button class="btn btn-success ">Task Completed</button>
</div>
<h4>{{name}}</h4>
{{#if event}}
<i class="fa fa-calendar"></i> Related Event: <a href="{{event.url}}">{{event.name}}: {{event.date}}</a><br><br>
{{/if}}
<p>{{description}}</p>
<strong>Due: {{due_date}}</strong>
<div >
<br><a href="">I am not able to complete this task</a>
</div>
</div>
<br>
{{/each}}
<h4><a href="group_tasks.html"><i class="fa fa-check-square"></i> Find other task to do</a></h4>
</script>