Skip to content

Commit 6a36cbc

Browse files
committed
list view
1 parent 3aa859a commit 6a36cbc

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

data_wizard/mustache/run_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{>head}}
66
</head>
77
<body>
8-
<div data-role="page">
8+
<div data-role="page" data-url="{{svc}}/datawizard/{{id}}">
99
<div data-role="header">
1010
{{>home}}
1111
<h1>{{label}}</h1>

data_wizard/mustache/run_list.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Data Wizard Runs</title>
5+
{{>head}}
6+
</head>
7+
<body>
8+
<div data-role="page">
9+
<div data-role="header">
10+
{{>home}}
11+
<h1>Data Wizard Runs</h1>
12+
</div>
13+
<div role="main" class="ui-content">
14+
<ul data-role="listview" data-filter="true" data-inset="true">
15+
{{#list}}
16+
<li>
17+
<a href="{{rt}}/datawizard/{{id}}">{{label}}</a>
18+
</li>
19+
{{/list}}
20+
</ul>
21+
</div>
22+
{{>paginator}}
23+
</div>
24+
</body>
25+
</html>

data_wizard/rest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ def user_filter(qs, request):
5353
url='datawizard',
5454
modes=[],
5555
server_modes=[
56-
'detail', 'serializers', 'columns', 'ids', 'data', 'auto', 'records',
56+
'list', 'detail',
57+
'serializers', 'columns', 'ids', 'data', 'auto', 'records',
5758
],
5859
fields="__all__",
59-
cache_filter=user_filter
60+
filter=user_filter,
61+
cache='none',
6062
)

0 commit comments

Comments
 (0)