-
Notifications
You must be signed in to change notification settings - Fork 0
/
task-list.jade
34 lines (32 loc) · 946 Bytes
/
task-list.jade
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
.task-list(ng-controller="TaskController")
.row
form(ng-submit="addTask()")
input.form-control.input-task(
type="text"
placeholder="Type your task"
ng-model="newTask"
)
input.btn.add-task(
type="submit"
value="Add"
)
.row
ul#tasks.unstyled
li.task(
ng-repeat="task in tasks"
ng-class="{completed:task.is_completed}"
ui-sref="edit({id:task.id})"
) {{task.description}}
.row
.btn-group.controls(data-toggle="buttons")
label.btn.control(ng-click="filter('active')")
input#active(type="radio", name="options")
|Active
label.btn.control(ng-click="filter('completed')")
input#completed(type="radio", name="options")
|Completed
label.btn.control(ng-click="filter('all')")
input#All(type="radio", name="options")
|All
.row
paginator(page-config="pageConfig")