Overhaul product views a little, per customization needs

This commit is contained in:
Lance Edgar 2016-12-15 15:11:15 -06:00
parent f7267597ee
commit 9a6ad16e2f
5 changed files with 94 additions and 54 deletions

View file

@ -63,10 +63,42 @@
${render_field_readonly(form.fieldset.deleted)}
</%def>
<%def name="movement_panel()">
<div class="panel">
<h2>Movement</h2>
<div class="panel-body">
${self.render_movement_fields(form)}
</div>
</div>
</%def>
<%def name="render_movement_fields(form)">
${render_field_readonly(form.fieldset.last_sold)}
</%def>
<%def name="lookup_codes_panel()">
<div class="panel-grid" id="product-codes">
<h2>Additional Lookup Codes</h2>
<div class="grid full hoverable no-border">
<table>
<thead>
<th>Seq</th>
<th>Code</th>
</thead>
<tbody>
% for i, code in enumerate(product._codes, 1):
<tr class="${'odd' if i % 2 else 'even'}">
<td>${code.ordinal}</td>
<td>${code.code}</td>
</tr>
% endfor
</tbody>
</table>
</div>
</div>
</%def>
<div class="form-wrapper">
<ul class="context-menu">
${self.context_menu_items()}
@ -113,12 +145,7 @@
</div>
</div>
<div class="panel">
<h2>Movement</h2>
<div class="panel-body">
${self.render_movement_fields(form)}
</div>
</div>
${self.movement_panel()}
<div class="panel-grid" id="product-costs">
<h2>Vendor Sources</h2>
@ -148,25 +175,7 @@
</div>
</div>
<div class="panel-grid" id="product-codes">
<h2>Additional Lookup Codes</h2>
<div class="grid full hoverable no-border">
<table>
<thead>
<th>Seq</th>
<th>Code</th>
</thead>
<tbody>
% for i, code in enumerate(product._codes, 1):
<tr class="${'odd' if i % 2 else 'even'}">
<td>${code.ordinal}</td>
<td>${code.code}</td>
</tr>
% endfor
</tbody>
</table>
</div>
</div>
${self.lookup_codes_panel()}
${self.extra_right_panels()}