Refactor mobile receiving to use "quick row" feature
plus some other random things thrown in there, for good measure..
This commit is contained in:
parent
3cc8adba86
commit
a34a42d2b2
9 changed files with 177 additions and 156 deletions
|
@ -1,24 +0,0 @@
|
|||
## -*- coding: utf-8; -*-
|
||||
<%inherit file="/mobile/master/view.mako" />
|
||||
|
||||
<%def name="title()">Receiving » ${instance.id_str}</%def>
|
||||
|
||||
<%def name="page_title()">${h.link_to("Receiving", url('mobile.receiving'))} » ${instance.id_str}</%def>
|
||||
|
||||
${form.render()|n}
|
||||
<br />
|
||||
|
||||
% if not instance.executed and not instance.complete:
|
||||
${h.text('upc-search', class_='receiving-upc-search', placeholder="Enter UPC", autocomplete='off', **{'data-type': 'search', 'data-url': url('mobile.receiving.lookup', uuid=batch.uuid)})}
|
||||
<br />
|
||||
% endif
|
||||
|
||||
${grid.render_complete()|n}
|
||||
|
||||
% if not instance.executed and not instance.complete:
|
||||
<br /><br />
|
||||
${h.form(request.route_url('mobile.receiving.mark_complete', uuid=instance.uuid))}
|
||||
${h.csrf_token(request)}
|
||||
${h.hidden('mark-complete', value='true')}
|
||||
<button type="submit">Mark Batch as Complete</button>
|
||||
% endif
|
|
@ -2,9 +2,9 @@
|
|||
<%inherit file="/mobile/master/view_row.mako" />
|
||||
<%namespace file="/mobile/keypad.mako" import="keypad" />
|
||||
|
||||
<%def name="title()">Receiving » ${batch.id_str} » ${row.upc.pretty()}</%def>
|
||||
<%def name="title()">Receiving » ${batch.id_str} » ${master.render_product_key_value(row)}</%def>
|
||||
|
||||
<%def name="page_title()">${h.link_to("Receiving", url('mobile.receiving'))} » ${h.link_to(batch.id_str, url('mobile.receiving.view', uuid=batch.uuid))} » ${row.upc.pretty()}</%def>
|
||||
<%def name="page_title()">${h.link_to("Receiving", url('mobile.receiving'))} » ${h.link_to(batch.id_str, url('mobile.receiving.view', uuid=batch.uuid))} » ${master.render_product_key_value(row)}</%def>
|
||||
|
||||
|
||||
<div class="ui-grid-a">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue