Skip to content

Commit

Permalink
list view
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Jul 31, 2017
1 parent 3aa859a commit 6a36cbc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data_wizard/mustache/run_detail.html
Expand Up @@ -5,7 +5,7 @@
{{>head}}
</head>
<body>
<div data-role="page">
<div data-role="page" data-url="{{svc}}/datawizard/{{id}}">
<div data-role="header">
{{>home}}
<h1>{{label}}</h1>
Expand Down
25 changes: 25 additions & 0 deletions data_wizard/mustache/run_list.html
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<title>Data Wizard Runs</title>
{{>head}}
</head>
<body>
<div data-role="page">
<div data-role="header">
{{>home}}
<h1>Data Wizard Runs</h1>
</div>
<div role="main" class="ui-content">
<ul data-role="listview" data-filter="true" data-inset="true">
{{#list}}
<li>
<a href="{{rt}}/datawizard/{{id}}">{{label}}</a>
</li>
{{/list}}
</ul>
</div>
{{>paginator}}
</div>
</body>
</html>
6 changes: 4 additions & 2 deletions data_wizard/rest.py
Expand Up @@ -53,8 +53,10 @@ def user_filter(qs, request):
url='datawizard',
modes=[],
server_modes=[
'detail', 'serializers', 'columns', 'ids', 'data', 'auto', 'records',
'list', 'detail',
'serializers', 'columns', 'ids', 'data', 'auto', 'records',
],
fields="__all__",
cache_filter=user_filter
filter=user_filter,
cache='none',
)

0 comments on commit 6a36cbc

Please sign in to comment.