Add support for making new product on-the-fly during mobile ordering

let's face it, that will be necessary sometimes.  this feature still needs some
work before can be called complete though...
This commit is contained in:
Lance Edgar 2018-03-06 19:29:15 -06:00
parent 6ec0ddb94e
commit 652f51d484
7 changed files with 83 additions and 10 deletions

View file

@ -5,12 +5,14 @@
<%def name="page_title()">${h.link_to(index_title, index_url)} &raquo; ${h.link_to(parent_title, parent_url)} &raquo; ${h.link_to(instance_title, instance_url)} &raquo; Edit</%def>
<%def name="buttons()">
<br />
${h.submit('create', form.update_label)}
<a href="${form.cancel_url}" class="ui-btn">Cancel</a>
</%def>
## TODO: this should not be necessary, correct?
## <%def name="buttons()">
## <br />
## ${h.submit('create', form.update_label)}
## ${h.link_to("Cancel", form.cancel_url, class_='ui-btn ui-corner-all')}
## </%def>
<div class="form-wrapper">
${form.render(buttons=capture(self.buttons))|n}
## ${form.render(buttons=capture(self.buttons))|n}
${form.render()|n}
</div><!-- form-wrapper -->

View file

@ -0,0 +1,6 @@
## -*- coding: utf-8; -*-
<%inherit file="/mobile/master/create_row.mako" />
<%def name="page_title()">${h.link_to(index_title, index_url)} &raquo; ${h.link_to(instance_title, instance_url)} &raquo; Add Item</%def>
${parent.body()}