Add master4, refactor customers view to use it

This commit is contained in:
Lance Edgar 2018-02-03 16:12:36 -06:00
parent ab16ffc823
commit 63290154eb
6 changed files with 348 additions and 18 deletions

View file

@ -1,4 +1,6 @@
## -*- coding: utf-8; -*-
<%inherit file="/mobile/master/create.mako" />
<%def name="title()">New ${model_title} Row</%def>
${parent.body()}

View file

@ -8,5 +8,5 @@
${parent.body()}
% if master.mobile_rows_editable and instance_editable and request.has_perm('{}.edit_row'.format(permission_prefix)):
${h.link_to("Edit", url('mobile.{}.edit_row'.format(route_prefix), uuid=instance.uuid), class_='ui-btn')}
${h.link_to("Edit", url('mobile.{}.edit_row'.format(route_prefix), uuid=instance.batch_uuid, row_uuid=instance.uuid), class_='ui-btn')}
% endif