-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
151 lines (124 loc) · 6.6 KB
/
index.php
File metadata and controls
151 lines (124 loc) · 6.6 KB
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
<!DOCTYPE html>
<html>
<head>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
<link href="css/default.css" rel="stylesheet">
<link href="css/datepicker.css" rel="stylesheet">
</head>
<body>
<div class="page-header">
<h1>Jon Hollingsworth <small>personalised Dashboard</small></h1>
</div>
<div class="row">
<div class="col-md-5">
<div id="linkscontent"></div>
<div class="verticalseparator"></div>
<div id="notes">
</div>
</div>
<div class="col-md-1"></div>
<div id="tasks" class="col-md-5">
<a href="#addTask" role="button" class="btn btn-primary" data-toggle="modal">Add Task</a>
<a href="#" id="cleanTasks" role="button" class="btn btn-primary" data-toggle="modal">Remove completed</a>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Description</th>
<th>Due Date</th>
<th></th>
</tr>
</thead>
<tbody id="taskscontent">
</tbody>
</table>
<!-- Modal -->
<div class="modal fade" id="addTask" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Add Task</h4>
</div>
<div class="modal-body">
<form class="form">
<div class="form-group">
<label for="description">Description</label>
<input type="text" id="description" class="form-control">
<label for="dueDate">Due Date</label>
<input type="text" id="dueDate" placeholder="yyyy-mm-dd" class="form-control datepicker top" data-provide="datepicker" data-date-format="yyyy-mm-dd">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" id="close" data-dismiss="modal">Close</button>
<button type="button" id="saveAndNext" class="btn btn-primary">Save and Next</button>
<button type="button" id="saveAndClose"class="btn btn-primary">Save and Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</div>
</div>
<!-- templates -->
<script type="text/template" id="item-template">
<a href="<%=model.get('url')%>"><%=model.get('description')%></a>
<button type='button' class='close' data-dismiss='alert'>×</button>
</script>
<script type="text/template" id="items-template">
<button class="btn btn-add">Add</button>
</script>
<script type="text/template" id="task-template">
<td <% if (model.get('status') == 2) { %>class="done"<% } %>><%=model.get('description')%></td>
<td <% if (model.get('status') == 2) { %>class="done"<% } %>><%=model.get('dueDate')%></td>
<td><%if (model.get('status')==2) {%>
<span class="glyphicon glyphicon-check">
<%} else {%>
<span class="glyphicon glyphicon-unchecked">
<% } %>
</span></td>
</script>
<script type="text/template" id="notes-template">
<div class="row">
<div class="col-md-4">
<ul class="nav nav-tabs nav-stacked" >
<li><a href="#newNoteContent" id="newNote" class="tablink" data-toggle="tab">New Note</a></li>
</ul>
</div>
<div class="col-md-8">
<div class="tab-content">
<div class="tab-pane active content" id="newNoteContent"></div>
</div>
</div>
</div>
<button id="saveNote" class="hidden btn btn-primary">Save</button>
<button id="deleteNote" class="hidden btn btn-danger">Delete</button>
</script>
<script type="text/template" id="note-template">
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="js/assets/bootbox.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.2.0/js/bootstrap-datepicker.min.js"></script>
<script src="js/links/links_app.js"></script>
<script src="js/links/link_model.js"></script>
<script src="js/links/links_collection.js"></script>
<script src="js/links/links_view.js"></script>
<script src="js/links/link_view.js"></script>
<script src="js/tasks/tasks_app.js"></script>
<script src="js/tasks/task_model.js"></script>
<script src="js/tasks/tasks_collection.js"></script>
<script src="js/tasks/tasks_view.js"></script>
<script src="js/tasks/task_view.js"></script>
<script src="js/notes/notes_app.js"></script>
<script src="js/notes/notes_collection.js"></script>
<script src="js/notes/notes_view.js"></script>
<script src="js/spin.min.js"></script>
<script language="javascript">
ablefutures.app.links.init();
ablefutures.app.tasks.init();
ablefutures.app.notes.init();
</script>
</body>
</html>