Add filter support for mobile row grid; plus mark receiving as complete
This commit is contained in:
parent
f47157102c
commit
98ff71a2dd
7 changed files with 96 additions and 33 deletions
|
@ -9,17 +9,12 @@ ${form.render()|n}
|
|||
${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 />
|
||||
|
||||
<fieldset data-role="controlgroup" data-type="horizontal">
|
||||
## ${h.radio('receiving-row-filter', value='missing', label="Missing", disabled='disabled')}
|
||||
${h.radio('receiving-row-filter', value='incomplete', label="Incomplete", disabled='disabled')}
|
||||
${h.radio('receiving-row-filter', value='damaged', label="Damaged", disabled='disabled')}
|
||||
${h.radio('receiving-row-filter', value='expired', label="Expired", disabled='disabled')}
|
||||
${h.radio('receiving-row-filter', value='all', label="All", checked=True)}
|
||||
</fieldset>
|
||||
<br /><br />
|
||||
${grid.render_complete()|n}
|
||||
|
||||
<ul data-role="listview">
|
||||
% for obj in grid.iter_rows():
|
||||
<li>${grid.listitem.render_readonly()}</li>
|
||||
% endfor
|
||||
</ul>
|
||||
% 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue