Add basic "mobile index" master view, plus support for demo mode
This commit is contained in:
parent
9808bb3a91
commit
581a21bd9d
16 changed files with 301 additions and 16 deletions
16
tailbone/templates/mobile/master/index.mako
Normal file
16
tailbone/templates/mobile/master/index.mako
Normal file
|
@ -0,0 +1,16 @@
|
|||
## -*- coding: utf-8; -*-
|
||||
## ##############################################################################
|
||||
##
|
||||
## Default master 'index' template for mobile. Features a somewhat abbreviated
|
||||
## data table and (hopefully) exposes a way to filter and sort the data, etc.
|
||||
##
|
||||
## ##############################################################################
|
||||
<%inherit file="/mobile/base.mako" />
|
||||
|
||||
<%def name="title()">${model_title_plural}</%def>
|
||||
|
||||
<ul data-role="listview">
|
||||
% for obj in grid:
|
||||
<li>${grid.render_object(obj)}</li>
|
||||
% endfor
|
||||
</ul>
|
12
tailbone/templates/mobile/master/view.mako
Normal file
12
tailbone/templates/mobile/master/view.mako
Normal file
|
@ -0,0 +1,12 @@
|
|||
## -*- coding: utf-8; -*-
|
||||
## ##############################################################################
|
||||
##
|
||||
## Default master 'view' template for mobile. Features a basic field list, and
|
||||
## links to edit/delete the object when appropriate.
|
||||
##
|
||||
## ##############################################################################
|
||||
<%inherit file="/mobile/base.mako" />
|
||||
|
||||
<%def name="title()">${model_title}: ${instance_title}</%def>
|
||||
|
||||
<p>TODO: display fieldset for object</p>
|
Loading…
Add table
Add a link
Reference in a new issue