Add basic "mobile index" master view, plus support for demo mode

This commit is contained in:
Lance Edgar 2017-03-19 11:21:00 -05:00
parent 9808bb3a91
commit 581a21bd9d
16 changed files with 301 additions and 16 deletions

View 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>

View 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>