-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchapters.html
103 lines (100 loc) · 4.28 KB
/
chapters.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/booktype.css">
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<a class="brand" id="brand" href="./" >
Tracker: Principles of Creativity in the Workplace</a>
<!--<div class="pull-right">
<ul class="nav">
<li><a href="#">Dashboard</a></li>
<li><a href="#">Reports</a></li>
<li><a href="#">Help</a></li>
<li><a href="#">Login</a></li>
</ul>
</div>-->
</div>
</div>
</div>
<div></div>
<div class="navbar">
<div class="center-right"><div class="center-left" id="feedback"></div></div>
<div class="navbar-inner">
<div class="container">
<ul class="nav">
<li><a href="./">Tasks</a></li>
<li><a href="users.html">Users</a></li>
<li class="active"><a href="chapters.html">Chapters</a></li>
</ul>
<div class="pull-right"><button id="add" class="btn btn-primary pull-left right-offset1">Add task</button>
</div>
</div>
</div>
</div>
<div class="container-fluid scrollable-x" id="main">
<div class="row">
<script type="text/x-handlebars-template" id="panelTemplate">
<div class="span4 panel" id="{{normalize chaptertitle}}">
<header>{{chaptertitle}}</header>
<div class="list-items">
<div class="accordion-group">
<div class="accordion-heading task-active"><a class="accordion-toggle" data-toggle="collapse" href="#active{{normalize chaptertitle}}">Active</a>
</div>
<div class="accordion-body collapse in" id="active{{normalize chaptertitle}}">
<div class="accordion-inner">
<ul class="unstyled list-items">
</ul>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading task-noactive"><a class="accordion-toggle" data-toggle="collapse" href="#notactive{{normalize chaptertitle}}">Not
Active</a></div>
<div class="accordion-body collapse in" id="notactive{{normalize chaptertitle}}">
<div class="accordion-inner">
<ul class="unstyled list-items">
</ul>
</div>
</div>
</div>
</div>
</div>
</script>
<script type="text/x-handlebars-template" id="collapsedTaskTemplate">
<li class="item {{#if completed}}disabled{{/if}}">
{{#if state}}<span class="pull-right muted">{{state}}</span>{{/if}}
<i class="icon-edit edit-task" {{#if index}}data-id="{{index}}"{{/if}}></i>
<a class="taskdetail" {{#if index}}data-id="{{index}}"{{/if}} href="#">{{title}}{{#if owner}}</a><br/><span class="muted">-{{owner}}-</span>{{/if}}
</li>
</script>
</div>
</div>
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.23.custom.min.js"></script>
<script type="text/javascript" src="js/handlebars-1.0.rc.1.js"></script>
<script type="text/javascript" src="js/tracker.js"></script>
<script type="text/javascript">
(function($, H){
var settings = {
//container set to 100% width
main: $('#main'),
//container with overflowed width
rowClass : '.row',
taskPanelTemplate: $('#panelTemplate').html(),
collapsedTaskTemplate: $('#collapsedTaskTemplate').html(),
//a property in the data, example [{'propertyFilter':value}]
propertyFilter: 'state'
};
UI.setSettings(settings).init();
})(window.jQuery, Handlebars);
</script>
</body>
</html>