-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathapp.html
33 lines (31 loc) · 1.49 KB
/
app.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
<!-- Henu header -->
<!-- ko if: canAddTask || checklist().length > 0 -->
<ul class="menu expandable checklist" data-bind="css:{collapsed:collapsed}">
<li class="menu-header" >
<span data-bind="text:name"></span>
<span class="badge pull-right" data-bind="text:' (' + nbrOfChecked() + '/' + checklist().length + ')'" id="counter"></span>
</li>
<li class="divider" ></li>
<!-- Checklist -->
<!-- ko foreach: checklist -->
<li class='task' data-bind="attr:{title: isChecked() == false ? description : checkedBy() + ': ' + moment(checkedDate()).format('LLL')}">
<span data-bind="click:clicked">
<input type='checkbox' data-bind="checked: isChecked(), attr:{id:'a_' + order}" />
<label data-bind="attr:{for:'a_' + order}"></label>
<span class="taskText" data-bind="text: title"></span>
</span>
<!-- ko if: $parent.allowRemove -->
<span class="icon-remove badge pull-right" data-bind="click:$parent.removeTask, clickBubble: false, icon:'fa-times'"> </span>
<!-- /ko -->
</li>
<!-- /ko -->
<!-- Controls to add new task -->
<!-- ko if: canAddTask -->
<li class="task" data-bind="css: {'notComplete' : !isSelected() && inputValue()}">
<label data-bind="visible:isSelected() || inputValue()"></label>
<input id="new-task" data-bind="value: inputValue, valueUpdate: 'afterkeydown', enterKey: addTask, hasFocus: isSelected" placeholder=" + Lägg till ny" />
</li>
<li id="add-new-task" data-bind="visible: inputValue(), click:addTask">Lägg till</li>
<!-- /ko -->
</ul>
<!-- /ko -->