-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
186 lines (181 loc) · 9.43 KB
/
index.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
<!DOCTYPE html>
<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, maximum-scale=1, minimum-scale=1">
<title>Smart task manager</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.4/css/bootstrap-select.min.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/smalot-bootstrap-datetimepicker/2.3.8/css/bootstrap-datetimepicker.min.css"
rel="stylesheet">
<!-- build:css css/index.css -->
<link rel="stylesheet" type="text/css" href="app/src/css/index.css">
<!-- /build -->
</head>
<body>
<div class="container">
<header class="row header">
<h1 class="text-center">Smart task manager</h1>
<button type="button" class="btn btn-primary btn-lg new-task" data-toggle="modal"
data-target="#task" data-action="create">
<span class="glyphicon glyphicon-plus
"></span> Create task
</button>
</header>
<section id="stm" class="row content">
<div id="task-list" class="container">
<div class="row tasks-header">
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">Title</div>
<div class="col-lg-1 col-md-1 col-sm-2 col-xs-2">Priority</div>
<div class="col-lg-1 col-md-1 col-sm-1 hidden-xs">Status</div>
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">Created at</div>
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">Deadline</div>
<div class="col-lg-4 col-md-4 col-sm-3 col-xs-4">Actions</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="checkbox">
<label>
<input id="archived-tasks" type="checkbox">
Show archived tasks
</label>
</div>
</div>
</div>
<div id="remove-task" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="remove-task">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-body">
Are you sure you want to delete this task?
</div>
<div class="modal-footer">
<button id="proceed-removing" type="button" class="btn btn-danger">Proceed</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
<div id="task" class="modal fade new-task-modal" tabindex="-1" role="dialog" aria-labelledby="new-task">
<div class="modal-dialog modal-sm">
<form role="form" id="task-data" name="task-data" action="" class="modal-content" novalidate>
<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">New task</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="title">Title</label>
<input type="text" class="form-control" id="title" name="title" maxlength="255"
placeholder="Title" aria-describedby="helpTitle" required>
<span id="helpTitle" class="help-block">Please, fill the title field!</span>
</div>
<div class="form-group">
<label for="content">Content</label>
<textarea id="content" name="content" class="form-control" rows="3" maxlength="1000"
placeholder="Content" aria-describedby="helpContent" required></textarea>
<span id="helpContent" class="help-block">Please, fill the content field!</span>
</div>
<div class="form-group">
<label for="priority">Priority</label>
<select name="priority" id="priority" class="form-control selectpicker">
<option data-icon="glyphicon-circle-arrow-down" value="Low">
Low
</option>
<option data-icon="glyphicon-circle-arrow-right" value="Medium" selected>
Medium
</option>
<option data-icon="glyphicon-circle-arrow-up" value="High">High</option>
</select>
</div>
<div class="form-group">
<label for="datetimepicker">Deadline</label>
<input id="datetimepicker" name="deadline" class="form-control" type="text" value=""
readonly>
</div>
<input name="cid" type="hidden" value="">
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">Save</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
</div>
</form>
</div>
</div>
</section>
<footer class="row"></footer>
</div>
<script type="text/template" id="task-template">
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
<a href="#" class="toggle">
<span><%= title %></span>
</a>
</div>
<div class="col-lg-1 col-md-1 col-sm-2 col-xs-2">
<span class="glyphicon glyphicon-circle-arrow-down"></span>
<%= priority %>
</div>
<div class="col-lg-1 col-md-1 col-sm-1 hidden-xs"><%= status %></div>
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2"><%= createdAt %></div>
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2"><%= deadline %></div>
<div class="col-lg-4 col-md-4 col-sm-3 col-xs-4 text-center">
<button class="btn btn-default start">
<span class="glyphicon glyphicon-play-circle"></span>
<span class="hidden-sm hidden-xs">Start</span>
</button>
<button class="btn btn-default complete">
<span class="glyphicon glyphicon-ok"></span>
<span class="hidden-sm hidden-xs">Complete</span>
</button>
<button class="btn btn-default reopen">
<span class="glyphicon glyphicon-repeat"></span>
<span class="hidden-sm hidden-xs">Reopen</span>
</button>
<button class="btn btn-default undo">
<span class="glyphicon glyphicon-circle-arrow-left"></span>
<span class="hidden-sm hidden-xs">Undo</span>
</button>
<button class="btn btn-default edit" data-toggle="modal"
data-target="#task" data-action="edit">
<span class="glyphicon glyphicon-pencil"></span>
<span class="hidden-sm hidden-xs">Edit</span>
</button>
<button class="btn btn-default remove" data-toggle="modal"
data-target="#remove-task">
<span class="glyphicon glyphicon-remove"></span>
<span class="hidden-sm hidden-xs">Remove</span>
</button>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 task-content wrapper">
<div class="well content">
<%= content %>
</div>
</div>
</script>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.2.3/backbone-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone-localstorage.js/1.1.16/backbone.localStorage-min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.4/js/bootstrap-select.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/smalot-bootstrap-datetimepicker/2.3.8/js/bootstrap-datetimepicker.min.js"></script>
<!-- build:js js/app.min.js -->
<script src="./app/src/js/constants/consts.js"></script>
<script src="./app/src/js/model/task.js"></script>
<script src="./app/src/js/model/taskList.js"></script>
<script src="./app/src/js/view/task.js"></script>
<script src="./app/src/js/view/taskList.js"></script>
<script src="./app/src/js/utils/utils.js"></script>
<script src="./app/src/js/index.js"></script>
<!-- /build -->
</body>
</html>