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:
parent
6ec0ddb94e
commit
652f51d484
7 changed files with 83 additions and 10 deletions
|
@ -5,12 +5,14 @@
|
|||
|
||||
<%def name="page_title()">${h.link_to(index_title, index_url)} » ${h.link_to(parent_title, parent_url)} » ${h.link_to(instance_title, instance_url)} » 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 -->
|
||||
|
|
6
tailbone/templates/mobile/ordering/new_product.mako
Normal file
6
tailbone/templates/mobile/ordering/new_product.mako
Normal 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)} » ${h.link_to(instance_title, instance_url)} » Add Item</%def>
|
||||
|
||||
${parent.body()}
|
Loading…
Add table
Add a link
Reference in a new issue