diff --git a/tailbone/templates/products/view.mako b/tailbone/templates/products/view.mako index db73208f..6836c974 100644 --- a/tailbone/templates/products/view.mako +++ b/tailbone/templates/products/view.mako @@ -1,57 +1,17 @@ ## -*- coding: utf-8; -*- <%inherit file="/master/view.mako" /> -############################## -## page body -############################## - -
Seq | +Code | + + + % for code in instance._codes: +
---|---|
${code.ordinal} | +${code.code} | +
Seq | -Code | - - - % for code in instance._codes: -
---|---|
${code.ordinal} | -${code.code} | -
${costs_label_preferred} | +${costs_label_vendor} | +${costs_label_code} | +${costs_label_case_size} | +Case Cost | +Unit Cost | +Status | + + + % for i, cost in enumerate(instance.costs, 1): +
---|---|---|---|---|---|---|
${'X' if cost.preference == 1 else ''} | ++ % if request.has_perm('vendors.view'): + ${h.link_to(cost.vendor, request.route_url('vendors.view', uuid=cost.vendor_uuid))} + % else: + ${cost.vendor} + % endif + | +${cost.code or ''} | +${h.pretty_quantity(cost.case_size)} | +${'$ %0.2f' % cost.case_cost if cost.case_cost is not None else ''} | +${'$ %0.4f' % cost.unit_cost if cost.unit_cost is not None else ''} | +${"discontinued" if cost.discontinued else "available"} | +
${costs_label_preferred} | -${costs_label_vendor} | -${costs_label_code} | -${costs_label_case_size} | -Case Cost | -Unit Cost | -Status | - - - % for i, cost in enumerate(instance.costs, 1): -
---|---|---|---|---|---|---|
${'X' if cost.preference == 1 else ''} | -- % if request.has_perm('vendors.view'): - ${h.link_to(cost.vendor, request.route_url('vendors.view', uuid=cost.vendor_uuid))} - % else: - ${cost.vendor} - % endif - | -${cost.code or ''} | -${h.pretty_quantity(cost.case_size)} | -${'$ %0.2f' % cost.case_cost if cost.case_cost is not None else ''} | -${'$ %0.4f' % cost.unit_cost if cost.unit_cost is not None else ''} | -${"discontinued" if cost.discontinued else "available"} | -