-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.html
More file actions
35 lines (34 loc) · 1.73 KB
/
list.html
File metadata and controls
35 lines (34 loc) · 1.73 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
<form class="form-search">
<div class="input-append">
<input type="text" ng-model="query" class="input-midium search-query" placeholder="Search"/>
<button ng-click="reset()" type="submit" class="btn"><i class="icon-search"></i></button>
</div>
</form>
<table class="table table-striped table-condesed table-hover">
<thead>
<th><a ng-click="sort('Text')">Todo</a>
<span ng-show="sort_order=='Text' && is_desc==true"><i class="icon-arrow-down"></i></span>
<span ng-show="sort_order=='Text' && is_desc==false"><i class="icon-arrow-up"></i></span>
</th>
<th><a ng-click="sort('Priotity')">Priority</a>
<span ng-show="sort_order=='Priotity' && is_desc==true"><i class="icon-arrow-down"></i></span>
<span ng-show="sort_order=='Priotity' && is_desc==false"><i class="icon-arrow-up"></i></span>
</th>
<th><a ng-click="sort('DueDate')">DueDate</a>
<span ng-show="sort_order=='DueDate' && is_desc==true"><i class="icon-arrow-down"></i></span>
<span ng-show="sort_order=='DueDate' && is_desc==false"><i class="icon-arrow-up"></i></span>
</th>
<th><a href="#/new"><i class="icon-plus"></i></a></th>
</thead>
<tbody>
<tr ng-repeat="todo in items" id="todo_{{todo.Id}}">
<td>{{todo.Text}}</td>
<td>{{todo.Priotity}}</td>
<td>{{todo.DueDate | date: mediumDate }}</td>
<td>
<a href="#/edit/{{todo.Id}}"><i class="icon-edit"></i></a>
<a ng-click="delete()" href="javascript:void(0);"><i class="icon-remove"></i></a></td>
</tr>
</tbody>
</table>
<a ng-show="has_more()" ng-click="show_more()" >Show more</a>